Changeset 96431 in vbox
- Timestamp:
- Aug 23, 2022 8:39:25 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 153261
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py
r96407 r96431 85 85 self._fKernelDrivers = True; 86 86 self._fWinForcedInstallTimestampCA = True; 87 self._fInstallMSCRT = False; # By default we don't install any CRT. 87 88 88 89 # … … 110 111 reporter.log(' If not forced, it will only installed on the hosts that needs it.'); 111 112 reporter.log(' Default: --no-forced-win-install-timestamp-ca'); 113 reporter.log(' --win-install-mscrt, --no-win-install-mscrt'); 114 reporter.log(' Whether to install the MS Visual Studio Redistributable.'); 115 reporter.log(' Default: --no-win-install-mscrt'); 112 116 reporter.log(' --'); 113 117 reporter.log(' Indicates the end of our parameters and the start of the sub'); … … 142 146 elif asArgs[iArg] == '--forced-win-install-timestamp-ca': 143 147 self._fWinForcedInstallTimestampCA = True; 148 elif asArgs[iArg] == '--no-win-install-mscrt': 149 self._fInstallMSCRT = False; 150 elif asArgs[iArg] == '--win-install-mscrt': 151 self._fInstallMSCRT = True; 144 152 else: 145 153 return TestDriverBase.parseOption(self, asArgs, iArg); … … 925 933 return None; # There shouldn't be anything to uninstall, and if there is, it's not our fault. 926 934 935 # 936 # Install the MS Visual Studio Redistributable, if needed. 937 # 938 # Since VBox 7.0 this is a prerequisite, as we don't ship our own redistributable files anymore. 939 # 940 if self._fInstallMSCRT: 941 reporter.log('Installing MS Visual Studio Redistributable ...'); 942 sName = "vc_redist.x64.exe" 943 ## @todo Can we cache this somewhere, so that we don't need to download this everytime? 944 sUrl = "https://aka.ms/vs/17/release/" + sName # Permalink, according to MS. 945 if webutils.downloadFile(sUrl, sName, self.sBuildPath, reporter.log, reporter.log) is not True: 946 sExe = os.path.join(self.sBuildPath, sName); 947 asArgs = [ sExe, '/Q' ]; 948 fRc2, iRc = self._sudoExecuteSync(asArgs); 949 if fRc2 is False: 950 reporter.error('Installing MS Visual Studio Redistributable failed, exit code: %s' % (iRc,)); 951 return False; 952 reporter.log('Installing MS Visual Studio Redistributable done'); 953 927 954 # We need the help text to detect supported options below. 928 955 reporter.log('Executing: %s' % ([sExe, '--silent', '--help'], ));
Note:
See TracChangeset
for help on using the changeset viewer.