User Tools

Site Tools


userspace:vmware_infrastructure_client_4.1_update_2

VMware Infrastructure Client 4.1 Update 2

Getestet auf Windows XP 32-Bit und Windows 7 64-Bit

Fragen an Spoxs

Meine Verzeichnisstruktur:

 files\vmware.png
 files\viclient.exe
 setup.ins
 uninstall.ins

setup.ins

[Actions]
requiredWinstVersion >= "4.10.8.6"
 
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("install_architecture","system specific")
Set $LogDir$ 			= "%SystemDrive%\tmp"
Set $ProductId$       	= "vm-client"
Set $MinimumSpace$    	= "1000 MB"
Set $InstallDir32$      = "%ProgramFiles32Dir%\VMware\Infrastructure"
; 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 $InstPackage$		="%ScriptPath%\files\viclient.exe"
Set $InstPackageUM$		="%ScriptPath%\files\updateManager\VMware-UpdateManager.exe"
 
;#############################################################	
;########## 	Check System Requirements			##########
;#############################################################
 
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\vmware.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	
 
;#############################################################	
;##########		Start installation Script			##########
;#############################################################
 
if (GetRegistryStringValue("[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language] InstallLanguage") = "0407")
	comment "Install German Version"
	Winbatch_install_de
	Dosbatch_install
	Sub_check_exitcode
	else 
		if (GetRegistryStringValue("[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language] InstallLanguage") = "0409")
			comment "Install English Version ..."
			Winbatch_install_en
			Sub_check_exitcode
			else 
				LogError "Not supported Language is installed ..."
				isFatalError
		endif
endif	
 
;#############################################################	
;##########		Installation Script					##########
;#############################################################
 
[Winbatch_install_de]
$InstPackage$ /q /s /w /L1031 /v" /qr /L*v \"$LogDir$\$ProductId$_install.log\""
 
[Winbatch_install_en]
$InstPackage$ /q /s /w /L1033 /v" /qr /L*v \"$LogDir$\$ProductId$_install.log\""
 
[Dosbatch_install]
cmd /c del "%PUBLIC%\Desktop\VMware vSphere Client.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				##########
;#############################################################

uninstall.ins

[Actions]
requiredWinstVersion >= "4.10.8.6"
 
;#############################################################
;#########				define Variables			##########
;#############################################################
 
DefVar $MsiIdConv$
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ExitCode$
DefVar $ProductId$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $Bitmap$
DefVar $MsiIdUpdate$
DefVar $MsiIdVic$
DefVar $MsiIdUpdatemgr$
 
;#############################################################
;#########			Please Set Variables			##########
;#############################################################
 
Set $ProductId$       	= "vm-client"
Set $InstallDir32$      = "%ProgramFiles32Dir%\Java\jre6"
Set $InstallDir64$      = "%ProgramFiles64Dir%\Java\jre6"
Set $Bitmap$			= "%scriptpath%\files\java.png"
Set $LogDir$ 			= "%SystemDrive%\tmp"
Set $MsiIdConv$			= "{31EE5E44-4193-4B6E-A2FE-FBB109674A0D}"	
Set $MsiIdUpdate$		= "{9BC51C0F-DA8E-4370-9997-899B3435A647}"	
Set $MsiIdVic$			= "{A0B433B1-941D-46F5-AE59-286263534232}"	
Set $MsiIdUpdatemgr$	= "{CA1DC67A-A059-45D7-A2CF-F99D15876B6B}"	
 
;#############################################################
;#########		starting deinstall script			##########
;#############################################################
 
comment "Show product picture"
ShowBitmap $Bitmap$ $ProductId$
 
;#############################################################	
;#########		Start uninstall Script				##########
;#############################################################
 
Winbatch_uninstall_de
Sub_check_exitcode
 
;#############################################################
;#########		Uninstallation Scripts				##########
;#############################################################
 
[Winbatch_uninstall_de]
MsiExec.exe /X$MsiIdVic$ /qb /l* $LogDir$\$ProductId$_uninstall.txt
 
[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					##########
;#############################################################
userspace/vmware_infrastructure_client_4.1_update_2.txt · Last modified: 2021/08/23 08:37 (external edit)