VirtualBox (Setup)
By Guest, 05/01/2018
- 28 downloads
- Updated:
File Details
- Website URL https://www.virtualbox.org/wiki/Downloads
- User Agent
- Category System
- User Notes
(Show)XML Contents
<?xml version="1.0" encoding="utf-8"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="ac0f7492-0a09-4d5d-b9ec-ef37e4b455f0"> <WebsiteUrl>https://www.virtualbox.org/wiki/Downloads</WebsiteUrl> <UserAgent/> <UserNotes/> <LastFileSize>113760256</LastFileSize> <LastFileDate>2018-05-01T12:35:56.2640407</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Avoid</DownloadBeta> <DownloadDate>2018-04-16T08:47:20.4838258</DownloadDate> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <HashVariable/> <HashType>None</HashType> <CanBeShared>true</CanBeShared> <ShareApplication>true</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer/> <SetupInstructions> <SetupInstruction xsi:type="CustomSetupInstruction"> <Code>/* Enter a custom C# script here. C# is case sensitive. "app" references the current application. Example: MessageBox.Show(app.Name); = Notable methods = app.PreviousLocation Corresponds to the variable {file} app.Variables.ReplaceAllInString("Any {text} with variables.") Replaces all known variables in a given string. Example: string new = app.Variables.ReplaceAllInString("{file}") return; Exits the script. Abort("Error text"); Exits the script with a given error. */ System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo (app.PreviousLocation, "--silent --msiparams REBOOT=ReallySuppress"); startInfo.Verb = "runas"; System.Diagnostics.Process.Start (startInfo); int i = 0; while (i == 0) { bool breakFlag = false; foreach (System.Diagnostics.Process proc in System.Diagnostics.Process.GetProcesses()) { if (proc.ProcessName == System.IO.Path.GetFileNameWithoutExtension(app.PreviousLocation)) { breakFlag = true; // proc.Kill(); } } System.Threading.Thread.Sleep(250); if (breakFlag) { break; } } while (i == 0) { bool breakFlag = true; foreach (System.Diagnostics.Process proc in System.Diagnostics.Process.GetProcesses()) { if (proc.ProcessName == System.IO.Path.GetFileNameWithoutExtension(app.PreviousLocation)) { breakFlag = false; // proc.Kill(); } } System.Threading.Thread.Sleep(250); if (breakFlag) { break; } } </Code> <Type>CS</Type> </SetupInstruction> </SetupInstructions> <Variables> <item> <key> <string>appcat</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex/> <TextualContent>{appname:regexreplace: \(.*\):}</TextualContent> <Name>appcat</Name> </UrlVariable> </value> </item> <item> <key> <string>appfile</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex/> <TextualContent>{appname:multireplace:|:(|)| :|_|_}</TextualContent> <Name>appfile</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>VirtualBox-([\d\.{1,3}]+)-(.+?)-Win.exe</Regex> <Url>http://www.virtualbox.org/wiki/Downloads</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>build</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?<=Windows.*?VirtualBox-.*?-).+?(?=-Win)</Regex> <Url>http://www.virtualbox.org/wiki/Downloads</Url> <Name>build</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(http[^"]+\.exe)</Regex> <Url>http://www.virtualbox.org/wiki/Downloads</Url> <Name>url</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand/> <ExecutePreCommand/> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category>System</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation/> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId/> <LastUpdated>2018-05-01T12:35:56.2640407</LastUpdated> <TargetPath>S:\Medicina\Administrador de Sistemas\Hyper-V\VirtualBox\</TargetPath> <FixedDownloadUrl>{url}</FixedDownloadUrl> <Name>VirtualBox (Setup)</Name> </ApplicationJob> </Jobs>