ich möchte bei der Installation die Auto Update Funktion vom Adobe Reader X abschalten.
Ich habe dazu herausgefunden, dass dies in der Registry geschieht.
Ich importiere nach dem Setup vom Adobe Reader X eine Reg-Datei per
Code: Alles auswählen
regedit /s "%ScriptPath%\disable_updater_x64.reg"
Hier meine Setup.ins:
Code: Alles auswählen
[Initial]
ExitOnError=true
StayOnTop = true
[Actions]
requiredWinstVersion >= "4.10.5"
DefVar $ProductId$
DefVar $ExitCode$
DefVar $NTVersioninfo$
DefVar $32bitfile$
DefVar $64bitfile$
DefVar $uninstallstring$
DefVar $Parameter$
DefVar $PictureFile$
SetLogLevel=6
Set $32bitfile$ ="Setup.exe"
Set $64bitfile$ ="Setup.exe"
; ----------------------------------------------------------------
Set $ProductId$ = "adobereader"
Set $PictureFile$ = "adobereader.png"
; ----------------------------------------------------------------
ShowBitmap "%ScriptPath%\" + $PictureFile$ $ProductId$
Message "Installiert " + $ProductId$ + " ..."
if not (HasMinimumSpace ("%SYSTEMDRIVE%", "50 MB"))
LogError "Es ist nicht genügend freien Speicherplatz auf dem Laufwerk : %SYSTEMDRIVE% vorhanden."
isFatalError
endif
; OS Version ermitteln > Win2000
Set $NTVersioninfo$ = GetMsVersionInfo
if not ( $NTVersioninfo$ >= "5.1" )
LogError "Kein Komp. Betriebssystem vorhanden."
isFatalError
endif
; 64 Bit OS
if GetSystemType = "64 Bit System"
comment " 64 Bit System"
Winbatch_64bit
comment $ProductId$ + " wird installiert"
Sub_check_exitcode
endif
; 32 Bit OS
if GetSystemType = "x86 System"
comment " 32 Bit System"
Winbatch_32bit
comment $ProductId$ + " wird installiert"
Sub_check_exitcode
endif
[Winbatch_32bit]
"%ScriptPath%\$32bitfile$" /sAll /rs
regedit /s "%ScriptPath%\disable_updater_x86.reg"
[Winbatch_64bit]
"%ScriptPath%\$64bitfile$" /sAll /rs
regedit /s "%ScriptPath%\disable_updater_x64.reg"
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
Hat jemand damit Erfahrungen, dass wenn ein Key nicht in der Registry vorhanden ist, man ihn nicht erstellen kann und wenn er vorhanden ist, man ihn plötzlich ändern kann?
MfG
Edit: Oder wie habt ihr die Updatefunktion vom Adobe Reader X abgeschaltet?