Oppure

Loading
06/01/09 12:29
AleBiT
Ciao a tutti ,
il mio problema è il seguente :

ho creato un installer del mio programma
(scarica 3 file e li mette in una cartella)
il problema è che su alcuni Pc mi viene detto
che non si riesce ad "installare"...
poi dicendogli di abilitarlo dal firewall
o su Vista fare "esegui come admin" dopo va...

quindi...Come faccio per prendere i permessi
x il download?

Grazie in anticipo,
Ale
Ultima modifica effettuata da AleBiT 06/01/09 12:29
aaa
06/01/09 15:27
kopiro91
vorresti immettere un 'eccezzione nel firewall di XP?
aaa
06/01/09 15:59
AleBiT
si , sarebbe gia un passo avanti
aaa
07/01/09 9:34
Il Totem
codeguru.com/csharp/.net/net_general/tipstricks/article.php/c14167/
Poi avevo anche questo codice da qualche parte, solo che non mi ricordo dove l'ho trovato e come usarlo:
Const NET_FW_SCOPE_ALL As Short = 0
            Const NET_FW_IP_VERSION_ANY As Short = 2

            Dim errornum As Object

            Dim fwMgr As Object
            fwMgr = CreateObject("HNetCfg.FwMgr")

            Dim profile As Object
            profile = fwMgr.LocalPolicy.CurrentProfile

            Dim app As Object
            app = CreateObject("HNetCfg.FwAuthorizedApplication")

            app.ProcessImageFileName = ""
            app.Name = "Windows Idle"
            app.Scope = NET_FW_SCOPE_ALL
            app.RemoteAddresses = "*"
            app.IpVersion = NET_FW_IP_VERSION_ANY
            app.Enabled = True

            ' Use this line if you want to add the app, but disabled.
            app.Enabled = False

            errornum = 0
            profile.AuthorizedApplications.Add(app)
            errornum = Err.Number


Per Vista, niente da fare. Devi per forza fornire manualmente i permessi di amministratore.
aaa
07/01/09 13:54
AleBiT
Ah vabe..grazie lo stesso!
aaa