05.02.2013 Views

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>opsi</strong> <strong>manual</strong> <strong>opsi</strong> <strong>version</strong> <strong>4.0.2</strong><br />

ShowBitmap "%ScriptPath%\\" + $ProductId$ + ".png" $ProductId$<br />

if FileExists("%ScriptPath%\delsub32.ins")<br />

comment "Start uninstall sub section"<br />

Sub "%ScriptPath%\delsub32.ins"<br />

endif<br />

if GetScriptMode = "Machine"<br />

Message "Installing " + $ProductId$ + " ..."<br />

endif<br />

comment "Start setup program"<br />

Winbatch_install<br />

comment "Patch the local Profiles ..."<br />

Registry_currentuser_set /AllNtUserDats<br />

Files_profile_copy /AllNtUserProfiles<br />

Patches_profile_ini "%userprofiledir%\<strong>opsi</strong>-winst-test.ini" /AllNtUserProfiles<br />

if GetScriptMode = "Login"<br />

comment "login part"<br />

Files_profile_copy<br />

Registry_currentuser_set<br />

Patches_profile_ini "%userprofiledir%\<strong>opsi</strong>-winst-test.ini"<br />

endif<br />

[Winbatch_install]<br />

"%ScriptPath%\setup.exe" /sp- /silent /norestart<br />

[Files_profile_copy]<br />

copy "%Scriptpath%\profiles\*.*" "%CurrentProfileDir%\Appdata\ACME"<br />

[Registry_currentuser_set]<br />

openkey [HKCU\Software\ACME]<br />

set "show_greeting_window" = "no"<br />

[Patches_profile_ini]<br />

add [secdummy] dummy1=add1<br />

delsub32.ins:<br />

Message "Uninstalling " + $ProductId$ + " ..."<br />

if GetScriptMode = "Machine"<br />

comment "The machine part ..."<br />

Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"<br />

if FileExists($UninstallProgram$)<br />

comment "Uninstall program found, starting uninstall"<br />

Winbatch_uninstall<br />

endif<br />

; does also work since 4.11.2.1<br />

Registry_currentuser_del /AllNtUserDats<br />

Files_profile_del /AllNtUserProfiles<br />

endif<br />

if GetScriptMode = "Login"<br />

146 / 193

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!