redesign the pack integrate the mirror driver better into the package with its own winbatch section
This commit is contained in:
@@ -7,8 +7,12 @@
|
||||
requiredWinstVersion >= "4.11.2.6"
|
||||
|
||||
DefVar $MsiIdOld32$
|
||||
DefVar $UninstallProgram32$
|
||||
DefVar $UninstallProgramOld32$
|
||||
DefVar $IniFile32$
|
||||
DefVar $MsiIdOld64$
|
||||
DefVar $UninstallProgram64$
|
||||
DefVar $UninstallProgramOld64$
|
||||
DefVar $IniFile64$
|
||||
DefVar $IniCfgFile$
|
||||
DefVar $LogDir$
|
||||
@@ -23,8 +27,6 @@ DefVar $OLD_VERSION$
|
||||
DefVar $OLD_CREATOR_TAG$
|
||||
DefVar $OLD_RELEASE$
|
||||
|
||||
DefVar $Reboot$
|
||||
|
||||
Set $INST_SystemType$ = GetSystemType
|
||||
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
||||
|
||||
@@ -52,6 +54,8 @@ Set $MinimumSpace$ = "1 MB"
|
||||
; the path were we find the product after the installation
|
||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\TightVNC"
|
||||
Set $InstallDir64$ = "%ProgramFiles64Dir%\TightVNC"
|
||||
Set $InstallDirMirage32$ = "%ProgramFiles32Dir%\DemoForge\Mirage Driver for TightVNC"
|
||||
Set $InstallDirMirage64$ = "%ProgramFiles64Dir%\DemoForge\Mirage Driver for TightVNC"
|
||||
; ----------------------------------------------------------------
|
||||
|
||||
Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"
|
||||
@@ -63,27 +67,30 @@ if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
||||
else
|
||||
comment "Show product picture"
|
||||
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$
|
||||
|
||||
|
||||
comment "Stop TightVNC Server"
|
||||
DosInAnIcon_stop_server
|
||||
|
||||
if FileExists("%ScriptPath%\delsub3264.ins")
|
||||
comment "Start uninstall sub section"
|
||||
Sub "%ScriptPath%\delsub3264.ins"
|
||||
endif
|
||||
|
||||
|
||||
if FileExists("%ScriptPath%\passwd3264.ins")
|
||||
comment "Start set passwords section"
|
||||
Sub "%ScriptPath%\passwd3264.ins"
|
||||
endif
|
||||
|
||||
|
||||
comment "installing"
|
||||
|
||||
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_Mirage_32
|
||||
Sub_check_exitcode
|
||||
Winbatch_install_32
|
||||
Sub_check_exitcode
|
||||
DosInAnIcon_stop_server
|
||||
Winbatch_install_DemoForge
|
||||
comment "Copy files"
|
||||
Files_install_32 /32Bit
|
||||
comment "Patch Registry"
|
||||
@@ -93,13 +100,13 @@ 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$ + " " + $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
|
||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_Mirage_64
|
||||
Sub_check_exitcode
|
||||
Winbatch_install_64
|
||||
Sub_check_exitcode
|
||||
DosInAnIcon_stop_server
|
||||
Winbatch_install_DemoForge
|
||||
comment "Copy files"
|
||||
Files_install_64 /64Bit
|
||||
comment "Patch Registry"
|
||||
@@ -107,33 +114,22 @@ else
|
||||
comment "Create shortcuts"
|
||||
LinkFolder_install
|
||||
endif
|
||||
|
||||
|
||||
if FileExists("%ScriptPath%\config3264.ins")
|
||||
comment "Start set config section"
|
||||
Sub "%ScriptPath%\config3264.ins"
|
||||
endif
|
||||
|
||||
comment "Reboot"
|
||||
; ExitWindows /Reboot
|
||||
DosInAnIcon_start_server
|
||||
comment "Start TightVNC Server"
|
||||
DosInAnIcon_start_server
|
||||
endif
|
||||
|
||||
[Winbatch_install_DemoForge]
|
||||
"$InstallExe$" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES
|
||||
set $ExitCode$ = "0"
|
||||
|
||||
[DosInAnIcon_start_server]
|
||||
net start tvnserver
|
||||
|
||||
[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_install_32]
|
||||
msiexec /i "$Install32Msi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress ADDLOCAL=Server SERVER_REGISTER_AS_SERVICE=$server_register_as_service$ SERVER_ADD_FIREWALL_EXCEPTION=$server_add_firewall_exception$ SERVER_ALLOW_SAS=$server_allow_sas$ SET_CONTROLPASSWORD=$server_controlpassword_set$ VALUE_OF_CONTROLPASSWORD=$server_controlpassword_value_of$ SET_PASSWORD=$server_password_set$ VALUE_OF_PASSWORD=$server_password_value_of$ SET_VIEWONLYPASSWORD=$server_viewonlypassword_set$ VALUE_OF_VIEWONLYPASSWORD=$server_viewonlypassword_value_of$
|
||||
|
||||
[Winbatch_install_Mirage_32]
|
||||
"$InstallExe$" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES
|
||||
|
||||
[Files_install_32]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir32$"
|
||||
@@ -141,10 +137,14 @@ copy "$IniCfgFile$" "$InstallDir32$"
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
; copy -s "%ScriptPath%\files\*.*" "$InstallDir32$"
|
||||
copy "%ScriptPath%\mirage_uninstall.exe" "$InstallDirMirage32$"
|
||||
|
||||
[Winbatch_install_64]
|
||||
msiexec /i "$Install64Msi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress ADDLOCAL=Server SERVER_REGISTER_AS_SERVICE=$server_register_as_service$ SERVER_ADD_FIREWALL_EXCEPTION=$server_add_firewall_exception$ SERVER_ALLOW_SAS=$server_allow_sas$ SET_CONTROLPASSWORD=$server_controlpassword_set$ VALUE_OF_CONTROLPASSWORD=$server_controlpassword_value_of$ SET_PASSWORD=$server_password_set$ VALUE_OF_PASSWORD=$server_password_value_of$ SET_VIEWONLYPASSWORD=$server_viewonlypassword_set$ VALUE_OF_VIEWONLYPASSWORD=$server_viewonlypassword_value_of$
|
||||
|
||||
[Winbatch_install_Mirage_64]
|
||||
"$InstallExe$" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES
|
||||
|
||||
[Files_install_64]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir64$"
|
||||
@@ -152,16 +152,17 @@ copy "$IniCfgFile$" "$InstallDir64$"
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
; copy -s "%ScriptPath%\files\*.*" "$InstallDir64$"
|
||||
copy "%ScriptPath%\mirage_uninstall.exe" "$InstallDirMirage64$"
|
||||
|
||||
|
||||
[Registry_install]
|
||||
; Example of setting some values of an registry key:
|
||||
;
|
||||
; openkey [HKEY_LOCAL_MACHINE\Software\TightVNC\Server]
|
||||
; openkey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
|
||||
; set "name1" = "some string value"
|
||||
; set "name2" = REG_DWORD:0001
|
||||
; set "name3" = REG_BINARY:00 af 99 cd
|
||||
|
||||
|
||||
[LinkFolder_install]
|
||||
; Example of deleting a folder from AllUsers startmenu:
|
||||
;
|
||||
@@ -225,5 +226,3 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user