Updated version and some modification for better workflow

This commit is contained in:
Peter Singer
2013-05-12 16:48:21 +02:00
parent b85ee3ddbd
commit 1a1bcae6fc
9 changed files with 80 additions and 44 deletions

View File

@@ -8,6 +8,13 @@ Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini"
Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini"
; comment stop TightVNC server
DosInAnIcon_stop_server
if (FileExists("%ProgramFiles32Dir%\DemoForge\Mirage Driver for TightVNC\unins000.exe")) OR (FileExists("%ProgramFiles64Dir%\DemoForge\Mirage Driver for TightVNC\unins000.exe"))
set $Reboot$="1"
endif
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
if FileExists($IniFile32$)
Set $OLD_VERSION$ = GetValueFromInifile($IniFile32$,"COMMON","VERSION","")
@@ -67,12 +74,22 @@ endif
comment "Delete program shortcuts"
LinkFolder_uninstall
if $Reboot$="1"
ExitWindows /ImmediateReboot
endif
[DosInAnIcon_stop_server]
net stop tvnserver
ping 127.0.0.1 -n 5 >nul
taskkill /F /IM tvnserver.exe
ping 127.0.0.1 -n 5 >nul
[Winbatch_uninstall_msi_old_32]
%ProgramFiles32Dir%\DemoForge\Mirage Driver\uninst\unins000.exe" /silent
"%ProgramFiles32Dir%\DemoForge\Mirage Driver for TightVNC\unins000.exe" /silent
msiexec /x $MsiIdOld32$ /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_32]
%ProgramFiles32Dir%\DemoForge\Mirage Driver\uninst\unins000.exe" /silent
"%ProgramFiles32Dir%\DemoForge\Mirage Driver for TightVNC\unins000.exe" /silent
msiexec /x $MsiId32$ /qb! REBOOT=ReallySuppress
[Files_uninstall_32]
@@ -81,11 +98,11 @@ msiexec /x $MsiId32$ /qb! REBOOT=ReallySuppress
delete -sf "$InstallDir32$\"
[Winbatch_uninstall_msi_old_64]
%ProgramFiles64Dir%\DemoForge\Mirage Driver\uninst\unins000.exe" /silent
"%ProgramFiles64Dir%\DemoForge\Mirage Driver for TightVNC\unins000.exe" /silent
msiexec /x $MsiIdOld64$ /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_64]
%ProgramFiles64Dir%\DemoForge\Mirage Driver\uninst\unins000.exe" /silent
"%ProgramFiles64Dir%\DemoForge\Mirage Driver for TightVNC\unins000.exe" /silent
msiexec /x $MsiId64$ /qb! REBOOT=ReallySuppress
[Files_uninstall_64]