Bin heute zum ersten mal hier im Forum weil ich dringend Hilfe bräuchte. Ich habe ein Opsi Paket für den CCleaner gemacht. Funktioniert auch soweit alles wunderbar sowohl die Installation als auch die Deinstallation klappt alles einwandfrei. Jedoch möchte ich gewisse Einstellungen gleich bei der Installation mit übernehmen. Diese werden in der Registry gesetzt und ich weiß auch wo. Nämlich bei [HKEY_CURRENT_USER\software\piriform\ccleaner] aber jedes mal kommt bei mir eine Fehlermeldung (Warning: Could not be unloaded. Code 5: Zugriff verweigert<)
Ich hoffe mir kann dabei jemand helfen.
Mit freundlichen Grüßen
Braun Philip
Code: Alles auswählen
;
[Initial]
SetLogLevel=6
ExitonError=false
ScriptErrorMessages=on
TraceMode=off
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $MsiId32$
DefVar $UninstallProgram32$
DefVar $MsiId64$
DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $INST_SystemType$
DefVar $INST_architecture$
Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
; $ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "CCleaner"
Set $MinimumSpace$ = "1 MB"
; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFiles32Dir%\CCleaner"
Set $InstallDir64$ = "%ProgramFiles64Dir%\CCleaner"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\CCleaner.png" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
comment "CCleaner wird installiert"
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Message "Installiere CCleaner 32 Bit"
comment "Start setup program"
Winbatch_install_32 /WaitForProcessEnding "CCleaner.exe"
comment "Patch Registry"
Registry_Users /AllNtuserdats
comment "Create shortcuts"
endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installiere CCleaner 64 Bit"
comment "Start setup program"
Winbatch_install_64 /WaitForProcessEnding "CCleaner.exe"
comment "Patch Registry HKCU"
Registry_Users /AllNtuserdats
comment "Patch Registry HKCU"
Registry_install
comment "Create shortcuts"
endif
endif
[Winbatch_install_32]
"%ScriptPath%\CCleaner.exe" /L=1031 /S
[Winbatch_install_64]
"%ScriptPath%\CCleaner.exe" /L=1031 /S
[Registry_Users]
openkey [HKEY_CURRENT_USER:\Software\Piriform\CCleaner]
set "(Default)" = REG_SZ:"(value not set)"
set "BackupPrompt" = REG_SZ:"0"
set "DelayRB" = REG_SZ:"1"
set "Language" = REG_SZ:"1031"
set "SkipUAC" = REG_SZ:"1"
set "UpdateCheck" = REG_SZ:"0"
set "AutoClose" = REG_SZ:"1"
set "HideWarnings" = REG_SZ:"1"
set "UpdateKey" = REG_SZ:"11/26/2012 05:04:29 AM"
set "WINDOW_HEIGHT" = REG_SZ:"450"
set "WINDOW_LEFT" = REG_SZ:"90"
set "WINDOW_MAX" = REG_SZ:"0"
set "WINDOW_TOP" = REG_SZ:"55"
set "WINDOW_WIDTH" = REG_SZ:"620"
[Registry_install]
openkey [HKEY_CLASSES_ROOT\cclaunch\shell\open\command]
set "(Default)" = REG_SZ:"C:\Program Files\CCleaner\ccleaner.exe /auto"
Log-Datei:
Code: Alles auswählen