This shows you the differences between two versions of the page.
userspace:vmware_infrastructure_client_4.1_update_2 [2011/12/12 09:30] Spoxs created |
userspace:vmware_infrastructure_client_4.1_update_2 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | === VMware Infrastructure Client 4.1 Update 2=== | ||
- | |||
- | Getestet auf Windows XP 32-Bit und Windows 7 64-Bit | ||
- | |||
- | Meine Verzeichnisstruktur: | ||
- | < | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | |||
- | </ | ||
- | |||
- | ==== setup.ins ==== | ||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_architecture$ | ||
- | DefVar $OSVersion$ | ||
- | DefVar $INST_MsVersion$ | ||
- | DefVar $InstPackage$ | ||
- | DefVar $InstPackageUM$ | ||
- | |||
- | ;############################################################# | ||
- | ;########## 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 $InstPackage$ =" | ||
- | Set $InstPackageUM$ =" | ||
- | |||
- | ;############################################################# | ||
- | ;########## Check System Requirements ########## | ||
- | ;############################################################# | ||
- | |||
- | 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 | ||
- | |||
- | ;############################################################# | ||
- | ;########## | ||
- | ;############################################################# | ||
- | |||
- | if (GetRegistryStringValue(" | ||
- | comment " | ||
- | Winbatch_install_de | ||
- | Dosbatch_install | ||
- | Sub_check_exitcode | ||
- | else | ||
- | if (GetRegistryStringValue(" | ||
- | comment " | ||
- | Winbatch_install_en | ||
- | Sub_check_exitcode | ||
- | else | ||
- | LogError "Not supported Language is installed ..." | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | |||
- | ;############################################################# | ||
- | ;########## | ||
- | ;############################################################# | ||
- | |||
- | [Winbatch_install_de] | ||
- | $InstPackage$ /q /s /w /L1031 /v" /qr /L*v \" | ||
- | |||
- | [Winbatch_install_en] | ||
- | $InstPackage$ /q /s /w /L1033 /v" /qr /L*v \" | ||
- | |||
- | [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 $MsiIdConv$ | ||
- | DefVar $UninstallProgram$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $Bitmap$ | ||
- | DefVar $MsiIdUpdate$ | ||
- | DefVar $MsiIdVic$ | ||
- | DefVar $MsiIdUpdatemgr$ | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | Set $ProductId$ | ||
- | Set $InstallDir32$ | ||
- | Set $InstallDir64$ | ||
- | Set $Bitmap$ = " | ||
- | Set $LogDir$ = " | ||
- | Set $MsiIdConv$ = " | ||
- | Set $MsiIdUpdate$ = " | ||
- | Set $MsiIdVic$ = " | ||
- | Set $MsiIdUpdatemgr$ = " | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap $Bitmap$ $ProductId$ | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | Winbatch_uninstall_de | ||
- | Sub_check_exitcode | ||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | |||
- | [Winbatch_uninstall_de] | ||
- | MsiExec.exe / | ||
- | |||
- | [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 | ||
- | |||
- | |||
- | ;############################################################# | ||
- | ;######### | ||
- | ;############################################################# | ||
- | </ | ||