update to new opsi builder temlate
This commit is contained in:
parent
67df9115b7
commit
7a004808f9
Binary file not shown.
Binary file not shown.
|
@ -9,7 +9,12 @@ Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini"
|
|||
Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini"
|
||||
|
||||
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
||||
Message "Uninstalling " + $ProductId$ + " 32 Bit..."
|
||||
if FileExists($IniFile32$)
|
||||
Set $OLD_VERSION$ = GetValueFromInifile($IniFile32$,"COMMON","VERSION","")
|
||||
Set $OLD_CREATOR_TAG$ = GetValueFromInifile($IniFile32$,"COMMON","CREATOR_TAG","")
|
||||
Set $OLD_RELEASE$ = GetValueFromInifile($IniFile32$,"COMMON","RELEASE","")
|
||||
endif
|
||||
Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 32 Bit..."
|
||||
|
||||
if FileExists($IniFile32$)
|
||||
Set $MsiIdOld32$ = GetValueFromInifile($IniFile32$,"X86","MsiId32","{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}")
|
||||
|
@ -19,24 +24,29 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif
|
|||
sub_check_exitcode
|
||||
endif
|
||||
endif
|
||||
|
||||
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId32$ + "] DisplayName") = "")
|
||||
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
|
||||
Winbatch_uninstall_msi_32
|
||||
sub_check_exitcode
|
||||
endif
|
||||
|
||||
comment "Disables the pop-up browser window"
|
||||
Winbatch_killtasks_32
|
||||
|
||||
comment "Delete files"
|
||||
Files_uninstall_32 /32Bit
|
||||
|
||||
comment "Disables the pop-up browser window"
|
||||
Winbatch_killtasks_32
|
||||
|
||||
comment "Cleanup registry"
|
||||
Registry_uninstall /32Bit
|
||||
endif
|
||||
|
||||
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||
Message "Uninstalling " + $ProductId$ + " 64 Bit..."
|
||||
if FileExists($IniFile64$)
|
||||
Set $OLD_VERSION$ = GetValueFromInifile($IniFile64$,"COMMON","VERSION","")
|
||||
Set $OLD_CREATOR_TAG$ = GetValueFromInifile($IniFile64$,"COMMON","CREATOR_TAG","")
|
||||
Set $OLD_RELEASE$ = GetValueFromInifile($IniFile64$,"COMMON","RELEASE","")
|
||||
endif
|
||||
Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..."
|
||||
|
||||
if FileExists($IniFile64$)
|
||||
Set $MsiIdOld64$ = GetValueFromInifile($IniFile64$,"X86_64","MsiId64","{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}")
|
||||
|
@ -46,18 +56,18 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
|
|||
sub_check_exitcode
|
||||
endif
|
||||
endif
|
||||
|
||||
if not (GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId64$ + "] DisplayName") = "")
|
||||
comment "MSI id " + $MsiId64$ + " found in registry, starting msiexec to uninstall"
|
||||
Winbatch_uninstall_msi_64
|
||||
sub_check_exitcode
|
||||
endif
|
||||
|
||||
comment "Disables the pop-up browser window"
|
||||
Winbatch_killtasks_64
|
||||
|
||||
comment "Delete files"
|
||||
Files_uninstall_64 /64Bit
|
||||
|
||||
comment "Disables the pop-up browser window"
|
||||
Winbatch_killtasks_64
|
||||
|
||||
comment "Cleanup registry"
|
||||
Registry_uninstall /64Bit
|
||||
endif
|
||||
|
@ -65,15 +75,6 @@ endif
|
|||
comment "Delete program shortcuts"
|
||||
LinkFolder_uninstall
|
||||
|
||||
[Winbatch_killtasks_32]
|
||||
; %ScriptPath%\X86\closewindow.exe "Before you go" ""
|
||||
taskkill /F /IM iexplore.exe
|
||||
taskkill /F /IM iron.exe
|
||||
taskkill /F /IM firefox.exe
|
||||
taskkill /F /IM chrome.exe
|
||||
taskkill /F /IM opera.exe
|
||||
|
||||
|
||||
[Winbatch_uninstall_msi_old_32]
|
||||
msiexec /x $MsiIdOld32$ /qb! REBOOT=ReallySuppress
|
||||
|
||||
|
@ -83,10 +84,9 @@ msiexec /x $MsiId32$ /qb! REBOOT=ReallySuppress
|
|||
[Files_uninstall_32]
|
||||
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
|
||||
;
|
||||
; delete -sf "$InstallDir32$\"
|
||||
delete -sf "$InstallDir32$\"
|
||||
|
||||
[Winbatch_killtasks_64]
|
||||
; %ScriptPath%\X86_64\closewindow.exe "Before you go" ""
|
||||
[Winbatch_killtasks_32]
|
||||
taskkill /F /IM iexplore.exe
|
||||
taskkill /F /IM iron.exe
|
||||
taskkill /F /IM firefox.exe
|
||||
|
@ -102,7 +102,14 @@ msiexec /x $MsiId64$ /qb! REBOOT=ReallySuppress
|
|||
[Files_uninstall_64]
|
||||
; Example for recursively deleting the installation directory:
|
||||
;
|
||||
; del -sf "$InstallDir64$\"
|
||||
del -sf "$InstallDir64$\"
|
||||
|
||||
[Winbatch_killtasks_64]
|
||||
taskkill /F /IM iexplore.exe
|
||||
taskkill /F /IM iron.exe
|
||||
taskkill /F /IM firefox.exe
|
||||
taskkill /F /IM chrome.exe
|
||||
taskkill /F /IM opera.exe
|
||||
|
||||
[Registry_uninstall]
|
||||
; Example of deleting a registry key:
|
||||
|
|
|
@ -19,6 +19,9 @@ DefVar $InstallDir64$
|
|||
DefVar $ExitCode$
|
||||
DefVar $INST_SystemType$
|
||||
DefVar $INST_architecture$
|
||||
DefVar $OLD_VERSION$
|
||||
DefVar $OLD_CREATOR_TAG$
|
||||
DefVar $OLD_RELEASE$
|
||||
|
||||
Set $INST_SystemType$ = GetSystemType
|
||||
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
||||
|
@ -41,7 +44,7 @@ Set $LogDir$ = "%SystemDrive%\tmp"
|
|||
;$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 $MinimumSpace$ = "200 MB"
|
||||
Set $MinimumSpace$ = "1 MB"
|
||||
; the path were we find the product after the installation
|
||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\Nitro\Reader 3"
|
||||
Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Reader 3"
|
||||
|
@ -55,7 +58,7 @@ if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
|||
; Stop process and set installation status to failed
|
||||
else
|
||||
comment "Show product picture"
|
||||
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
|
||||
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$
|
||||
|
||||
if FileExists("%ScriptPath%\delsub3264.ins")
|
||||
comment "Start uninstall sub section"
|
||||
|
@ -65,7 +68,7 @@ else
|
|||
comment "installing"
|
||||
|
||||
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
||||
Message "Installing " + $ProductId$ + " 32 Bit..."
|
||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_extract_32
|
||||
|
@ -81,7 +84,7 @@ else
|
|||
endif
|
||||
|
||||
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||
Message "Installing " + $ProductId$ + " 64 Bit..."
|
||||
Message "Installing " + $ProductId$ + " " + $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_extract_64
|
||||
|
|
|
@ -18,6 +18,9 @@ DefVar $InstallDir32$
|
|||
DefVar $InstallDir64$
|
||||
DefVar $INST_SystemType$
|
||||
DefVar $INST_architecture$
|
||||
DefVar $OLD_VERSION$
|
||||
DefVar $OLD_CREATOR_TAG$
|
||||
DefVar $OLD_RELEASE$
|
||||
|
||||
Set $INST_SystemType$ = GetSystemType
|
||||
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
||||
|
@ -44,7 +47,7 @@ Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Reader 3"
|
|||
Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"
|
||||
|
||||
comment "Show product picture"
|
||||
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
|
||||
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$
|
||||
|
||||
Message "Uninstalling " + $ProductId$ + " ..."
|
||||
|
||||
|
|
|
@ -14,9 +14,8 @@ ADVICE=""
|
|||
# Valid value: restricted | public
|
||||
TYPE="public"
|
||||
|
||||
|
||||
DL_FILE[0]="image-f300x180-ffffff-C-960e116a-56541229.jpg"
|
||||
DL_SOURCE[0]="http://img2.pc-magazin.de/image-f300x180-ffffff-C-960e116a-56541229.jpg"
|
||||
DL_FILE[0]="nitro7_200x175.gif"
|
||||
DL_SOURCE[0]="http://www.softwarecrew.com/wp-content/uploads/2011/11/nitro7_200x175.gif"
|
||||
|
||||
DL_FILE[1]="nitro_pdf_reader_${VERSION}_x86.exe"
|
||||
DL_SOURCE[1]="http://install.nitropdf.com/reader/de/nitro_pdf_reader.exe"
|
||||
|
|
BIN
closewindow.au3
BIN
closewindow.au3
Binary file not shown.
|
@ -1,10 +0,0 @@
|
|||
closewindow.exe erwartet 2 übergabe parameter in anführungszeichen
|
||||
|
||||
1. Paramater Text der in der Titelzeile des zu schließenden Fensters ist
|
||||
2. Paramater Text der in der im Fenster des zu schließenden Fensters ist
|
||||
|
||||
1. muss angeben sein 2 kann leer sein
|
||||
|
||||
z.b.
|
||||
|
||||
closewindow.exe "Uninstall Feedback" ""
|
|
@ -1,7 +0,0 @@
|
|||
Install browser window Text:
|
||||
|
||||
------------------------------
|
||||
|
||||
Uninstall Browser Window Text:
|
||||
|
||||
Before you go
|
|
@ -1 +0,0 @@
|
|||
c58742505cc309697244e5e845fcf2432a29f1b5 /home/mario/.opsi-dist-cache/nitro.pdfreader-3.0.9.8//image-f300x180-ffffff-C-960e116a-56541229.jpg
|
|
@ -0,0 +1 @@
|
|||
a568387ce2d04216c5631d21f4a8c9e946b5e81a /home/mario/.opsi-dist-cache/nitro.pdfreader-3.5.1.8//nitro7_200x175.gif
|
Loading…
Reference in New Issue