User Tools

Site Tools


userspace:visionapp_remote_desktop_2011_p3

Differences

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

Link to this comparison view

userspace:visionapp_remote_desktop_2011_p3 [2011/12/12 09:22]
Spoxs
userspace:visionapp_remote_desktop_2011_p3 [2021/08/23 08:37]
Line 1: Line 1:
-Visionapp RemoteDesktop 2011 
- 
-Meine Verzeichnisstruktur: 
-<code> 
- files\visionapp.png 
- files\vRD.config 
- files\vRD2011P3.exe 
- setup.ins 
- uninstall.ins 
-</code> 
- 
-==== setup.ins ==== 
-<code winst> 
-[Actions] 
-requiredWinstVersion >= "4.10.8.6" 
- 
-DefVar $LogDir$ 
-DefVar $ProductId$   
-DefVar $MinimumSpace$ 
-DefVar $InstallDir32$ 
-DefVar $ExitCode$ 
-DefVar $INST_SystemType$ 
-DefVar $INST_architecture$ 
-DefVar $OSVersion$ 
-DefVar $INST_MsVersion$ 
-DefVar $InstPackage32$ 
- 
-;#############################################################  
-;##########    Set Varaibles                  ########## 
-;############################################################# 
- 
-Set $INST_SystemType$ = GetSystemType 
-set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 
-Set $LogDir$ = "%SystemDrive%\tmp" 
-Set $ProductId$        = "remote-desktop" 
-Set $MinimumSpace$    = "300 MB" 
-Set $InstallDir32$      = "%ProgramFiles32Dir%\visionapp Remote Desktop 2011" 
-; OS Version: 5.0 = W2K; 5.1 = XP; 5.2 = XP64,W2k3,W2k3R2; 6.0 = Vista,W2k8; 6.1 = W7,W2k8R2 
-Set $OSVersion$ = "5.1" 
-Set $INST_MsVersion$ = GetMSVersionInfo 
-Set $InstPackage32$ ="%ScriptPath%\files\vRD2011P3.exe" 
- 
- 
-;#############################################################  
-;########## Check Systemrequirements ########## 
-;############################################################# 
- 
-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%\files\visionapp.png" $ProductId$ 
-endif 
- 
-if $INST_MsVersion$ < $OSVersion$ 
- LogError "The OS Version is not required for $ProductID$"  
- isFatalError 
- ; Stop process and set installation status to failed 
-endif  
-  
-;############################################################# 
-;######### Installation ########## 
-;############################################################# 
- 
-Winbatch_install 
-Files_copying 
-DosBatch_install 
-Sub_check_exitcode 
-  
-;############################################################# 
-;######### Install Scripts ########## 
-;############################################################# 
- 
-[Winbatch_install] 
-$InstPackage32$ /S 
- 
-[Files_copying] 
-copy -seV "%ScriptPath%\files\vRD.config" "C:\ProgramData\visionapp\vRD 2011" 
- 
-[DosBatch_install] 
-cmd /c del "%PUBLIC%\Desktop\visionapp Remote Desktop 2011.lnk" 
- 
-[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 
- 
-;#############################################################  
-;########## End of Script ########## 
-;############################################################# 
-</code> 
- 
-==== uninstall.ins ==== 
-<code winst> 
-[Actions] 
-requiredWinstVersion >= "4.10.8.6" 
- 
-;############################################################# 
-;######### define Variables ########## 
-;############################################################# 
- 
-DefVar $MsiId32$ 
-DefVar $UninstallProgram$ 
-DefVar $LogDir$ 
-DefVar $ExitCode$ 
-DefVar $ProductId$ 
-DefVar $InstallDir32$ 
-DefVar $InstallDir64$ 
-DefVar $Bitmap$ 
-DefVar $MsiId64$ 
- 
-;############################################################# 
-;######### Please Set Variables ########## 
-;############################################################# 
- 
-Set $ProductId$        = "remote-desktop" 
-Set $InstallDir32$      = "%ProgramFiles32Dir%\visionapp Remote Desktop 2011" 
-Set $Bitmap$ = "%scriptpath%\files\visionapp.png" 
-Set $LogDir$ = "%SystemDrive%\tmp" 
-Set $MsiId32$ = "%ProgramFiles32Dir%\visionapp Remote Desktop 2011\uninstall.exe" 
- 
-;############################################################# 
-;######### starting deinstall script ########## 
-;############################################################# 
- 
-comment "Show product picture" 
-ShowBitmap $Bitmap$ $ProductId$ 
- 
-;#############################################################  
-;########## Start uninstall script ########## 
-;############################################################# 
- 
-Winbatch_uninstall 
-Sub_check_exitcodes 
- 
-;############################################################# 
-;######### Script ########## 
-;############################################################# 
- 
-[Winbatch_uninstall] 
-"$MsiId32$" /S 
- 
-[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 
- 
- 
- 
-;############################################################# 
-;######### End of Script ########## 
-;############################################################# 
-</code> 
  
userspace/visionapp_remote_desktop_2011_p3.txt ยท Last modified: 2021/08/23 08:37 (external edit)