This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:tightvnc [2012/10/12 07:15] tobias |
userspace:tightvnc [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
== TightVNC with the new MSI installer == | == TightVNC with the new MSI installer == | ||
Since TightVNC 2.5.2 the developer changed to an MSI Installation. | Since TightVNC 2.5.2 the developer changed to an MSI Installation. | ||
- | Now you can choose if you want to install only the Viwer or only the Server. | + | If you want you can install only the Viwer or only the Server. |
I created a Winst script with some Productproperties to modify the installer. | I created a Winst script with some Productproperties to modify the installer. | ||
I think it's beta, so some Properties may not work correctly. For example the product property to install the Server in non Service Mode. | I think it's beta, so some Properties may not work correctly. For example the product property to install the Server in non Service Mode. | ||
- | But you can set the Server Password and you can install only the Viewer | + | But you can set the Server Password and you can install only the viewer |
For more Information about the new MSI Installer please read this PDF: [[http:// | For more Information about the new MSI Installer please read this PDF: [[http:// | ||
Line 21: | Line 21: | ||
Tree:\\ | Tree:\\ | ||
- | < | + | < |
- | CLIENT_DATA | + | ├ CLIENT_DATA |
- | --------- | + | │ ├ delsub3264.ins |
- | --------- | + | │ ├ setup3264.ins |
- | --------- | + | │ ├ tightVNC.png |
- | --------- | + | │ ├ uninstall3264.ins |
- | --------- | + | │ ├ vncX86.msi |
- | --------- | + | │ └ vncX64.msi |
- | OPSI | + | ├ OPSI |
- | --------- | + | │ └ control |
- | </ | + | </ |
==== Steps ==== | ==== Steps ==== | ||
Line 39: | Line 39: | ||
==== setup.ins ==== | ==== setup.ins ==== | ||
<code winst> | <code winst> | ||
+ | [Actions] | ||
+ | requiredWinstVersion >= " | ||
+ | |||
+ | 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(" | ||
+ | |||
+ | |||
+ | Set $LogDir$ = " | ||
+ | |||
+ | ; ---------------------------------------------------------------- | ||
+ | ; - Please edit the following values | ||
+ | ; ---------------------------------------------------------------- | ||
+ | ; | ||
+ | ; therefore please: only lower letters, no umlauts, | ||
+ | ; no white space use ' | ||
+ | Set $ProductId$ | ||
+ | Set $MinimumSpace$ | ||
+ | ; the path were we find the product after the installation | ||
+ | Set $InstallDir32$ | ||
+ | Set $InstallDir64$ | ||
+ | Set $LicenseRequired$ = " | ||
+ | Set $LicensePool$ | ||
+ | ; ---------------------------------------------------------------- | ||
+ | |||
+ | if not(HasMinimumSpace (" | ||
+ | LogError "Not enough space on %SystemDrive%, | ||
+ | isFatalError | ||
+ | ; Stop process and set installation status to failed | ||
+ | else | ||
+ | comment "Show product picture" | ||
+ | ShowBitmap " | ||
+ | |||
+ | if FileExists(" | ||
+ | comment "Start uninstall sub section" | ||
+ | Sub " | ||
+ | endif | ||
+ | |||
+ | comment " | ||
+ | |||
+ | if (($INST_SystemType$ = "x86 System" | ||
+ | Message " | ||
+ | sub_generate_setupcommand | ||
+ | comment "Start setup program" | ||
+ | Winbatch_install_32 | ||
+ | Sub_check_exitcode | ||
+ | |||
+ | endif | ||
+ | |||
+ | if ($INST_SystemType$ = "64 Bit System" | ||
+ | Message " | ||
+ | sub_generate_setupcommand | ||
+ | comment "Start setup program" | ||
+ | Winbatch_install_64 | ||
+ | Sub_check_exitcode | ||
+ | |||
+ | endif | ||
+ | |||
+ | endif | ||
+ | |||
+ | [Winbatch_install_32] | ||
+ | |||
+ | ; === MSI package ======================================================================================= | ||
+ | msiexec /i %scriptpath%\vncX86.msi /passive /norestart $setupMSI$ | ||
+ | |||
+ | |||
+ | |||
+ | [Winbatch_install_64] | ||
+ | ; === MSI package ======================================================================================= | ||
+ | msiexec /i %scriptpath%\vncX64.msi /passive /norestart $setupMSI$ | ||
+ | |||
+ | |||
+ | [Sub_check_exitcode] | ||
+ | comment "Test for installation success via exit code" | ||
+ | set $ExitCode$ = getLastExitCode | ||
+ | ; informations to exit codes see | ||
+ | ; http:// | ||
+ | ; http:// | ||
+ | if ($ExitCode$ = " | ||
+ | comment "Looks good: setup program gives exitcode zero" | ||
+ | else | ||
+ | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
+ | if ($ExitCode$ = " | ||
+ | comment " | ||
+ | comment " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 1641" | ||
+ | comment " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 3010" | ||
+ | comment " | ||
+ | else | ||
+ | logError " | ||
+ | isFatalError | ||
+ | endif | ||
+ | endif | ||
+ | endif | ||
+ | endif | ||
+ | |||
+ | |||
+ | ; | ||
; Generating the Setup command | ; Generating the Setup command | ||
; | ; | ||
Line 132: | Line 250: | ||
;------- End ------------------------------------------------------------------- | ;------- End ------------------------------------------------------------------- | ||
; | ; | ||
- | </ | + | |
+ | |||
+ | |||
+ | </ | ||
==== uninstall.ins ==== | ==== uninstall.ins ==== | ||
Line 215: | Line 336: | ||
Set $UninstallProgram32$ = $InstallDir32$ + " | Set $UninstallProgram32$ = $InstallDir32$ + " | ||
- | Set $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}' | + | Set $MsiId64$ = '{BC994A59-6E98-4203-8A35-819938DD5ED1}' |
Set $UninstallProgram64$ = $InstallDir64$ + " | Set $UninstallProgram64$ = $InstallDir64$ + " | ||