added X64 support
This commit is contained in:
		| @@ -8,6 +8,7 @@ requiredWinstVersion >= "4.10.8.6" | |||||||
|  |  | ||||||
|  |  | ||||||
| DefVar $msifile$ | DefVar $msifile$ | ||||||
|  | DefVar $msifileX64$ | ||||||
| DefVar $officescan.fqdn$ | DefVar $officescan.fqdn$ | ||||||
| DEfVar $officescan.sharename$ | DEfVar $officescan.sharename$ | ||||||
| DefVar $domainuser.loginname$ | DefVar $domainuser.loginname$ | ||||||
| @@ -22,15 +23,19 @@ DefVar $ExitCode$ | |||||||
| DefVar $LicenseRequired$ | DefVar $LicenseRequired$ | ||||||
| DefVar $LicenseKey$ | DefVar $LicenseKey$ | ||||||
| DefVar $LicensePool$ | DefVar $LicensePool$ | ||||||
|  | DefVar $INST_SystemType$ | ||||||
|  | DefVar $INST_architecture$ | ||||||
|  |  | ||||||
|  | Set $INST_SystemType$ = GetSystemType | ||||||
|  | Set $INST_architecture$ = GetProductProperty("install_architecture","system specific") | ||||||
|  |  | ||||||
| Set $LogDir$ = "%SystemDrive%\tmp" | Set $LogDir$ = "%SystemDrive%\tmp" | ||||||
|  |  | ||||||
| Set $officescan.fqdn$ = GetProductProperty ("officescan.fqdn","values") | Set $officescan.fqdn$ = GetProductProperty ("officescan.fqdn","values") | ||||||
| Set $officescan.sharename$ = GetProductProperty ("officescan.sharename","values") | Set $officescan.sharename$ = GetProductProperty ("officescan.sharename","values") | ||||||
| Set $domainuser.loginname$ = GetProductProperty ("domainuser.loginname","values") | Set $domainuser.loginname$ = GetProductProperty ("domainuser.loginname","values") | ||||||
| Set $domainuser.password$ = GetProductProperty ("domainuser.password","values") | Set $domainuser.password$ = GetProductProperty ("domainuser.password","values") | ||||||
| Set $msifile$ = "%SystemDrive%\tmp\agentWin32.msi" | Set $msifile$ = "%SystemDrive%\tmp\agentWin32.msi" | ||||||
|  | Set $msifileX64$ = "%SystemDrive%\tmp\agentX64.msi" | ||||||
| Set $connectionstr$ = "\\" + $officescan.fqdn$ + "\" + $officescan.sharename$ + " /user:" + $domainuser.loginname$ + " " + $domainuser.password$ | Set $connectionstr$ = "\\" + $officescan.fqdn$ + "\" + $officescan.sharename$ + " /user:" + $domainuser.loginname$ + " " + $domainuser.password$ | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -73,64 +78,118 @@ else | |||||||
| 		Sub_get_licensekey | 		Sub_get_licensekey | ||||||
| 	endif	 | 	endif	 | ||||||
|  |  | ||||||
|  |  | ||||||
|         DosInAnIcon_delmsi |         DosInAnIcon_delmsi | ||||||
|         DosInAnIcon_delvcredist |         DosInAnIcon_delvcredist | ||||||
|  |  | ||||||
| 	comment "Start setup program" | 	comment "Start setup program" | ||||||
|         DosInAnIcon_mount |         DosInAnIcon_mount | ||||||
|  |  | ||||||
| 	comment "Copy files" |         if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) | ||||||
|         Files_install /32Bit |             comment "Extracting VC++ 2005 Lib" | ||||||
|  |             Winbatch_install_extract | ||||||
|  |             Sub_check_exitcode | ||||||
|  |  | ||||||
| 	if not (FileExists($msifile$)) |             if not (FileExists($LogDir$+"\vcredist.msi")) | ||||||
|            isFatalError |                isFatalError | ||||||
|         Endif |             Endif | ||||||
|  |  | ||||||
|         comment "Extracting VC++ 2005 Lib" |             comment "Installing VC++ 2005 Lib" | ||||||
|         Winbatch_install_extract |                 Winbatch_install_vcredist | ||||||
| 	Sub_check_exitcode |             Sub_check_exitcode | ||||||
|              |              | ||||||
|         if not (FileExists($LogDir$+"\vcredist.msi")) |             DosInAnIcon_delvcredist | ||||||
|            isFatalError |  | ||||||
|         Endif |  | ||||||
|              |              | ||||||
|         comment "Installing VC++ 2005 Lib" |             comment "Extracting VC++ 2005 Lib" | ||||||
|         Winbatch_install_vcredist |             Winbatch_install_extract_64 | ||||||
|         Sub_check_exitcode |             Sub_check_exitcode | ||||||
|  |  | ||||||
|         comment "Installing TM Worry Free" |             if not (FileExists($LogDir$+"\vcredist.msi")) | ||||||
|         Winbatch_install_wf |                isFatalError | ||||||
|         Sub_check_exitcode |             Endif | ||||||
|  |  | ||||||
|         comment "Cleanup Files" |             comment "Installing VC++ 2005 Lib" | ||||||
|         DosInAnIcon_delvcredist         |                 Winbatch_install_vcredist | ||||||
|         DosInAnIcon_delmsi |             Sub_check_exitcode | ||||||
|  |  | ||||||
|  |            ; Files_install_64 | ||||||
|  |  	   ; if not (FileExists($msifileX64$)) | ||||||
|  |            ;	isFatalError | ||||||
|  | 	   ; Endif | ||||||
|  |             | ||||||
|  |            comment "Installing TM Worry Free X64" | ||||||
|  |            Winbatch_install_wf_x64 | ||||||
|  |            Sub_check_exitcode | ||||||
|  | 	    | ||||||
|  |            comment "Cleanup Files" | ||||||
|  |            DosInAnIcon_delvcredist         | ||||||
|  |            DosInAnIcon_delmsi_64 | ||||||
|  |         endif               | ||||||
|  |  | ||||||
|  | 	 if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") | ||||||
|  |             comment "Extracting VC++ 2005 Lib" | ||||||
|  |             Winbatch_install_extract | ||||||
|  |             Sub_check_exitcode | ||||||
|  |  | ||||||
|  |             if not (FileExists($LogDir$+"\vcredist.msi")) | ||||||
|  |                isFatalError | ||||||
|  |             Endif | ||||||
|  |  | ||||||
|  |             comment "Installing VC++ 2005 Lib" | ||||||
|  |                 Winbatch_install_vcredist | ||||||
|  |             Sub_check_exitcode | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 	    comment "Copy files" | ||||||
|  |             Files_install_32 /32Bit | ||||||
|  | 	    if not (FileExists($msifile$)) | ||||||
|  |             	isFatalError | ||||||
|  |             Endif | ||||||
|  | 	 | ||||||
|  |             comment "Installing TM Worry Free" | ||||||
|  |             Winbatch_install_wf | ||||||
|  |             Sub_check_exitcode | ||||||
|  | 	     | ||||||
|  |             comment "Cleanup Files" | ||||||
|  |             DosInAnIcon_delvcredist         | ||||||
|  |             DosInAnIcon_delmsi_32 | ||||||
|  | 	 endif        | ||||||
| endif | endif | ||||||
|  |  | ||||||
| [DosInAnIcon_mount] | [DosInAnIcon_mount] | ||||||
| net use f: /delete /y | net use f: /delete /y | ||||||
| net use f: $connectionstr$ | net use f: $connectionstr$ | ||||||
|  |  | ||||||
| [DosInAnIcon_delmsi] | [DosInAnIcon_delmsi_32] | ||||||
| del $msifile$ | del $msifile$ | ||||||
|  |  | ||||||
|  | [DosInAnIcon_delmsi_64] | ||||||
|  | del $msifileX64$ | ||||||
|  |  | ||||||
| [DosInAnIcon_delvcredist] | [DosInAnIcon_delvcredist] | ||||||
| del $LogDir$\vcredist.msi | del $LogDir$\vcredist.msi | ||||||
| del $LogDir$\vcredis1.cab | del $LogDir$\vcredis1.cab | ||||||
|  |  | ||||||
| [Files_install] | [Files_install_32] | ||||||
| copy "F:\Download\agentWin32.msi" $LogDir$ | copy "F:\Download\agentWin32.msi" $LogDir$ | ||||||
|  |  | ||||||
|  | [Files_install_64] | ||||||
|  | copy "F:\Download\agentX64.msi" $LogDir$ | ||||||
|  |  | ||||||
| [Winbatch_install_extract] | [Winbatch_install_extract] | ||||||
| $vcredist86Exe$ /Q /C /T:$LogDir$ | $vcredist86Exe$ /Q /C /T:$LogDir$ | ||||||
|  |  | ||||||
|  | [Winbatch_install_extract_64] | ||||||
|  | $vcredist64Exe$ /Q /C /T:$LogDir$ | ||||||
|  |  | ||||||
| [Winbatch_install_vcredist] | [Winbatch_install_vcredist] | ||||||
| $LogDir$\vcredist.msi /quiet | $LogDir$\vcredist.msi /quiet | ||||||
|  |  | ||||||
| [Winbatch_install_wf] | [Winbatch_install_wf] | ||||||
| $msifile$ /quiet | $msifile$ /quiet | ||||||
|  |  | ||||||
|  | [Winbatch_install_wf_x64] | ||||||
|  | $msifileX64$ /quiet | ||||||
|  |  | ||||||
|  |  | ||||||
| [Sub_check_exitcode] | [Sub_check_exitcode] | ||||||
| comment "Test for installation success via exit code" | comment "Test for installation success via exit code" | ||||||
|   | |||||||
| @@ -20,4 +20,9 @@ DL_SOURCE[1]="http://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC | |||||||
| DL_ARCH[1]="X86" | DL_ARCH[1]="X86" | ||||||
| DL_WINST_NAME[1]=vcredist86Exe | DL_WINST_NAME[1]=vcredist86Exe | ||||||
|  |  | ||||||
|  | DL_FILE[2]="vcredistx64.exe" | ||||||
|  | DL_SOURCE[2]="http://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x64.EXE" | ||||||
|  | DL_ARCH[2]="X64" | ||||||
|  | DL_WINST_NAME[2]=vcredist64Exe | ||||||
|  |  | ||||||
| ICON_DL_INDEX=0 | ICON_DL_INDEX=0 | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								vcredistx64.exe.sha1sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								vcredistx64.exe.sha1sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | ee916012783024dac67fc606457377932c826f05  /home/dtrinks/.opsi-dist-cache/trendmicro/trendmicro.wfbsstd7/1/X64/vcredistx64.exe | ||||||
		Reference in New Issue
	
	Block a user