User Tools

Site Tools


userspace:tightvnc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:tightvnc [2012/10/12 07:16]
tobias
userspace:tightvnc [2021/08/23 08:37] (current)
Line 5: Line 5:
 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 or Only the Server.+But you can set the Server Password and you can install only the viewer or only the Server.
  
 For more Information about the new MSI Installer please read this PDF: [[http://www.tightvnc.com/doc/win/TightVNC-installer-2.5.2.pdf]] For more Information about the new MSI Installer please read this PDF: [[http://www.tightvnc.com/doc/win/TightVNC-installer-2.5.2.pdf]]
Line 21: Line 21:
  
 Tree:\\ Tree:\\
-<code> +<code winst
-CLIENT_DATA +├ CLIENT_DATA 
---------- delsub3264.ins +│ ├ delsub3264.ins 
---------- setup3264.ins +│ ├ setup3264.ins 
---------- tightVNC.png +│ ├ tightVNC.png 
---------- uninstall3264.ins +│ ├ uninstall3264.ins 
---------- vncX86.msi +│ ├ vncX86.msi 
---------- vncX64.msi +│ └ vncX64.msi 
-OPSI +├ OPSI 
---------- control +│ └ control 
-</code>+</code winst>
  
 ==== Steps ==== ==== Steps ====
Line 39: Line 39:
 ==== setup.ins ==== ==== setup.ins ====
 <code winst> <code winst>
 +[Actions]
 +requiredWinstVersion >= "4.10.8.6"
 +
 +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("install_architecture","system specific")
 +
 +
 +Set $LogDir$ = "%SystemDrive%\tmp"
 +
 +; ----------------------------------------------------------------
 +; - Please edit the following values                             -
 +; ----------------------------------------------------------------
 +;$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 $ProductId$       = "TightVNC"
 +Set $MinimumSpace$    = "100 MB"
 +; the path were we find the product after the installation
 +Set $InstallDir32$      = "%ProgramFiles32Dir%\<path to the product>"
 +Set $InstallDir64$      = "%ProgramFiles64Dir%\<path to the product>"
 +Set $LicenseRequired$ = "false"
 +Set $LicensePool$     = "p_" + $ProductId$
 +; ----------------------------------------------------------------
 +
 +if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
 + LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
 + isFatalError
 + ; Stop process and set installation status to failed
 +else
 + comment "Show product picture"
 + ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
 +
 + if FileExists("%ScriptPath%\delsub3264.ins")
 + comment "Start uninstall sub section"
 + Sub "%ScriptPath%\delsub3264.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$ + " 32 Bit..."
 + sub_generate_setupcommand
 + comment "Start setup program"
 + Winbatch_install_32
 + Sub_check_exitcode
 +
 + 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..."
 + 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://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
 +; http://msdn.microsoft.com/en-us/library/aa368542.aspx
 +if ($ExitCode$ = "0")
 + comment "Looks good: setup program gives exitcode zero"
 +else
 + comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
 + if ($ExitCode$ = "1605")
 + comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
 + comment "Uninstall of a not installed product failed - no problem"
 + else
 + if ($ExitCode$ = "1641")
 + comment "looks good: setup program gives exitcode 1641"
 + comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
 + else
 + if ($ExitCode$ = "3010")
 + comment "looks good: setup program gives exitcode 3010"
 + comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
 + else
 + logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
 + isFatalError
 + endif
 + endif
 + endif
 +endif
 +
 +
 +;-------------------------------------------------------------------------------
 ; Generating the Setup command ; Generating the Setup command
 ;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
Line 132: Line 250:
 ;------- End ------------------------------------------------------------------- ;------- End -------------------------------------------------------------------
 ;-------------------------------------------------------------------------------  ;-------------------------------------------------------------------------------
- </code>+  
 + 
 + 
 +</code>
  
 ==== uninstall.ins ==== ==== uninstall.ins ====
Line 215: Line 336:
 Set $UninstallProgram32$ = $InstallDir32$ + "\uninstall.exe" Set $UninstallProgram32$ = $InstallDir32$ + "\uninstall.exe"
  
-Set $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'+Set $MsiId64$ = '{BC994A59-6E98-4203-8A35-819938DD5ED1}'
 Set $UninstallProgram64$ = $InstallDir64$ + "\uninstall.exe" Set $UninstallProgram64$ = $InstallDir64$ + "\uninstall.exe"
  
userspace/tightvnc.1350026176.txt.gz · Last modified: 2021/08/23 08:37 (external edit)