Seite 1 von 1

Adobe Auto Update abschalten

Verfasst: 01 Aug 2012, 10:18
von comfreak
Hallo zusammen,

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"
Unter Windows XP (X86) funktioniert dies auch - unter Windows 7 (x64) leider nicht.

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
Unter Windows 7 (x64) wird der Adobe Reader X installiert, aber die Eintrag nicht importiert. Der Eintrag ist standardmäßig nach der Installation vom Adobe Reader X nicht in der Registry vorhanden, erst wenn man die Einstellungen im gestarteten Programm öffnet und mit OK bestätigt. Wenn ich dann den Key über Opsi erneut importieren möchte (Setup von Adobe Reader X dann testweise auskommentiert), funktioniert es auch.

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?

Re: Adobe Auto Update abschalten

Verfasst: 01 Aug 2012, 12:18
von d.oertel
Hi,

hiermit könntest Du Dir viel Arbeit sparen:
http://uib.de/www/service_support/suppo ... bonnements

Lies mal:
http://download.uib.de/opsi4.0/doc/html ... inst-64bit
und
http://download.uib.de/opsi4.0/doc/html ... tch-params

Und dann probiermal den regedit im Rahmen von

Code: Alles auswählen

DosInAnIcon_regedit winst /64bit
aufzurufen.

gruss
d.oertel

Re: Adobe Auto Update abschalten

Verfasst: 01 Aug 2012, 14:13
von comfreak
d.oertel hat geschrieben:Hi,

hiermit könntest Du Dir viel Arbeit sparen:
http://uib.de/www/service_support/suppo ... bonnements
Danke für die Info.
d.oertel hat geschrieben: Lies mal:
http://download.uib.de/opsi4.0/doc/html ... inst-64bit
und
http://download.uib.de/opsi4.0/doc/html ... tch-params

Und dann probiermal den regedit im Rahmen von

Code: Alles auswählen

DosInAnIcon_regedit winst /64bit
aufzurufen.

gruss
d.oertel
Wird das so benutzt?

Code: Alles auswählen

DosInAnIcon_regedit winst /64bit
[DosInAnIcon_regedit]
regedit /s "%ScriptPath%\disable_updater_x64.reg"
Was mich halt wunder ist, dass es funktioniert, wenn der Eintrag vorhanden ist...

Edit:

Ich sehe gerade, dass dieser Schlüssel anscheinend die ganze Zeit erstellt wird:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Adobe

Er soll aber hier erstellt/geändert werden:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Adobe

Wie kommt den so etwas zu stande?

Hier die Reg-Datei

Code: Alles auswählen

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Adobe\Adobe ARM\1.0\ARM]
"iCheckReader"=dword:00000000

Re: Adobe Auto Update abschalten

Verfasst: 01 Aug 2012, 15:01
von d.oertel
Hi,

da jeder Zugriff einer 32 Bit Software auf

Code: Alles auswählen

HKEY_LOCAL_MACHINE\SOFTWARE
normalerweise umgelenkt wird auf

Code: Alles auswählen

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
nochmal lesen:
http://download.uib.de/opsi4.0/doc/html ... inst-64bit

gruss
d.oertel

Re: Adobe Auto Update abschalten

Verfasst: 01 Aug 2012, 15:12
von comfreak
So ich habe es nach nun 5 Tagen geschafft...

Regdatei für x86 und x64 sind identisch, da sie ja umgeschrieben wird:

Code: Alles auswählen

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe ARM\1.0\ARM]
"iCheckReader"=dword:00000000
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.reg"

[Winbatch_64bit]
"%ScriptPath%\$64bitfile$" /sAll /rs
regedit /s "%ScriptPath%\disable_updater.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
Der entscheidende Aufruf:

Code: Alles auswählen

[Winbatch_32bit]
"%ScriptPath%\$32bitfile$" /sAll /rs
regedit /s "%ScriptPath%\disable_updater.reg"

[Winbatch_64bit]
"%ScriptPath%\$64bitfile$" /sAll /rs
regedit /s "%ScriptPath%\disable_updater.reg"
Danke nochmal für die Hilfe!