This shows you the differences between two versions of the page.
userspace:visionapp_remote_desktop_2011_p3 [2012/03/21 12:33] Thomas_H |
userspace:visionapp_remote_desktop_2011_p3 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | === Visionapp RemoteDesktop 2011 === | ||
- | |||
- | Getestet mit Windwos 7 64-Bit | ||
- | Funktioniert nur ab Windows Vista und höher | ||
- | Kommerzielles Programm erhältlich unter http:// | ||
- | |||
- | Fragen an // | ||
- | |||
- | Meine Verzeichnisstruktur: | ||
- | < | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ==== setup.ins ==== | ||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | 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(" | ||
- | Set $LogDir$ = " | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | Set $InstallDir32$ | ||
- | ; OS Version: 5.0 = W2K; 5.1 = XP; 5.2 = XP64, | ||
- | Set $OSVersion$ = " | ||
- | Set $INST_MsVersion$ = GetMSVersionInfo | ||
- | Set $InstPackage32$ =" | ||
- | |||
- | |||
- | ;############################################################# | ||
- | ;########## Check Systemrequirements ########## | ||
- | ;############################################################# | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | endif | ||
- | |||
- | if $INST_MsVersion$ < $OSVersion$ | ||
- | LogError "The OS Version is not required for $ProductID$" | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | endif | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | Winbatch_install | ||
- | Files_copying | ||
- | DosBatch_install | ||
- | Sub_check_exitcode | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | ; Installieren des Programms | ||
- | [Winbatch_install] | ||
- | $InstPackage32$ /S | ||
- | |||
- | ; einfügen eines Profils für die Datenbankverbindung | ||
- | [Files_copying] | ||
- | copy -seV " | ||
- | |||
- | ; entfernen der Desktopverknüpfung | ||
- | [DosBatch_install] | ||
- | cmd /c del " | ||
- | |||
- | [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 | ||
- | |||
- | ;############################################################# | ||
- | ;########## End of Script ########## | ||
- | ;############################################################# | ||
- | </ | ||
- | |||
- | ==== uninstall.ins ==== | ||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | DefVar $MsiId32$ | ||
- | DefVar $UninstallProgram$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $Bitmap$ | ||
- | DefVar $MsiId64$ | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | Set $ProductId$ | ||
- | Set $InstallDir32$ | ||
- | Set $Bitmap$ = " | ||
- | Set $LogDir$ = " | ||
- | Set $MsiId32$ = " | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap $Bitmap$ $ProductId$ | ||
- | |||
- | ;############################################################# | ||
- | ;########## | ||
- | ;############################################################# | ||
- | |||
- | Winbatch_uninstall | ||
- | Sub_check_exitcodes | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | [Winbatch_uninstall] | ||
- | " | ||
- | |||
- | [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 | ||
- | |||
- | |||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | </ | ||