Hallo
ich möchte ein Programm im Rahmen seiner Installation auch automatisch aktivieren lassen. Das Setup des Programms bietet dazu auch eine entsprechende Option zur Übergabe der Lizenzdaten.
Leider schlägt die Aktivierung fehl und ich vermute, es liegt daran, dass das Setup keinen Internetzugang hat. Dafür müsste man bei uns einen Proxy angeben.
Kann mir jemand sagen wie ich das am geschicktesten anstellen soll?
Das müssten ja eigentlich die Proxy-Einstellungen für das jeweilige System-Konto sein, oder?
Proxy Einstellungen während eines Setups
-
- Beiträge: 61
- Registriert: 12 Nov 2013, 15:19
Re: Proxy Einstellungen während eines Setups
Hallo Wollekette,
wir haben ins Paket eine Login.ins integriert. Hier als Beispiel VLC
Da übergeben wir beim Setup, wenn gewollt, die Proxyparameter. Vlt hilft dir das.
Mit freundlichen Grüßen
S.Hom
wir haben ins Paket eine Login.ins integriert. Hier als Beispiel VLC
Da übergeben wir beim Setup, wenn gewollt, die Proxyparameter. Vlt hilft dir das.
Code: Alles auswählen
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib gmbh
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Actions]
requiredWinstVersion >= "4.11.2.6"
setloglevel = 6
DefVar $proxy$
set $proxy$ = GetProductProperty("proxy","")
Message "Profile Patch for VLC ...."
comment "Did we run this script before ? - and set version stamp in profile"
if getValue("installationstate", getProductMap) = "installed"
comment "Product is installed"
if not (scriptWasExecutedBefore)
comment "loginscript was not run yet "
if FileExists("%CurrentAppdataDir%\vlc\")
comment "VLC user profile exist for user " + $UserProfileName$ + ", patching"
Patches_vlcrc "%CurrentAppdataDir%\vlc\vlcrc"
else
comment "Creating new VLC profile for user %Username%"
Files_copy_vlc_profile_template
endif
if not ($proxy$ = "")
Patches_vlcrc_proxy "%CurrentAppdataDir%\vlc\vlcrc"
endif
endif
endif
[Files_copy_vlc_profile_template]
copy -s "%SCRIPTPATH%\profile-template\*.*" "%CurrentAppdataDir%\vlc\"
[Patches_vlcrc]
set [qt4] qt-updates-notif=0
[Patches_vlcrc_proxy]
set [access_http] http-proxy=$proxy$
S.Hom
Re: Proxy Einstellungen während eines Setups
Code: Alles auswählen
» if not (GetMsVersionInfo > "5.2")
» » DosInAnIcon_Register_XP
» » Sub_check_exitcode
» else
» » DosInAnIcon_Register_7
» » Sub_check_exitcode
» endif
[DosInAnIcon_Register_XP]
;Proxy setzen
proxycfg -p proxy.fqdn:8888
;Registrierung
cscript "$InstallDir$\OSPP.VBS" /act
;Proxy entfernen
proxycfg -d
[DosInAnIcon_Register_7]
;Proxy setzen
netsh winhttp set proxy proxy-server="proxy.fqdn:8888"
;Registrierung
cscript "$InstallDir$\OSPP.VBS" /act
;Proxy entfernen
netsh winhttp reset proxy
netsh bei win7