-
Notifications
You must be signed in to change notification settings - Fork 68
/
AgentRansack.xml
73 lines (73 loc) · 3.24 KB
/
AgentRansack.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<ApplicationDef>
<Application>
<Name>AgentRansack</Name>
<Description>Agent Ransack is a free file search tool for finding files on your PC or network drives.</Description>
<Publisher>Mythicsoft</Publisher>
<AutoInstall>True</AutoInstall>
<UserDocumentation>https://help.mythicsoft.com/</UserDocumentation>
<Icon>AgentRansack.png</Icon>
</Application>
<Downloads>
<Download DeploymentType="DeploymentType1">
<PrefetchScript>
$DLPage = 'https://mythicsoft.com/agentransack/download/'
$URL = (Invoke-WebRequest -Uri $DLPage -UseBasicParsing).Links |Where-Object -Property href -Like '*agentransack_x64*.zip' | Select-Object -First 1 -expand href
$URL = 'https://' + $URL.substring(2)
</PrefetchScript>
<URL></URL>
<DownloadFileName>AgentRansack.zip</DownloadFileName>
<Version></Version>
<FullVersion></FullVersion>
<DownloadVersionCheck>
Add-LogContent "Extracting $DownloadFile to $TempDir"
Expand-Archive $DownloadFile -DestinationPath "$TempDir\ARTemp" -ErrorAction SilentlyContinue
$DownloadFileName = 'AgentRansack_x64.msi'
$DownloadFile = "$TempDir\$DownloadFileName"
Add-LogContent "Renaming contents to AgentRansack_x64.msi"
Get-ChildItem "$TempDir\ARTemp\agentransack_x64*.msi" | Rename-Item -NewName "$TempDir\ARTemp\AgentRansack_x64.msi"
Copy-Item "$TempDir\ARTemp\$DownloadFileName" "$DownloadFile" -Force
Add-LogContent "Checking version using Get-MSIInfo"
$Version = ([String](Get-MSIInfo "$DownloadFile" -Property ProductVersion)).Trim()
</DownloadVersionCheck>
<ExtraCopyFunctions>$DownloadFile = '$TempDir\AgentRansack_x64.msi'</ExtraCopyFunctions>
</Download>
</Downloads>
<DeploymentTypes>
<DeploymentType Name="DeploymentType1">
<DeploymentTypeName>AgentRansack Install x64</DeploymentTypeName>
<InstallationType>MSI</InstallationType>
<Comments>Silent Installer for AgentRansack</Comments>
<Language>English</Language>
<CacheContent>False</CacheContent>
<BranchCache>True</BranchCache>
<ContentFallback>False</ContentFallback>
<OnSlowNetwork>Download</OnSlowNetwork>
<InstallationMSI>AgentRansack_x64.msi</InstallationMSI>
<UninstallCmd></UninstallCmd>
<Force32bit>False</Force32bit>
<InstallationBehaviorType>InstallForSystem</InstallationBehaviorType>
<LogonReqType>WhetherOrNotUserLoggedOn</LogonReqType>
<UserInteractionMode>Hidden</UserInteractionMode>
<ReqUserInteraction>False</ReqUserInteraction>
<EstRuntimeMins>15</EstRuntimeMins>
<MaxRuntimeMins>30</MaxRuntimeMins>
<RebootBehavior>BasedOnExitCode</RebootBehavior>
<DetectionMethodType>MSI</DetectionMethodType>
<RequirementsRules>
<RequirementsRule>
<RequirementsRuleType>Existential</RequirementsRuleType>
<RequirementsRuleValue>
<RuleValue>True</RuleValue>
</RequirementsRuleValue>
<RequirementsRuleGlobalCondition>AutoPackage - OSArchitecture x64</RequirementsRuleGlobalCondition>
</RequirementsRule>
</RequirementsRules>
</DeploymentType>
</DeploymentTypes>
<Distribution>
<DistributeContent>True</DistributeContent>
</Distribution>
<Deployment>
<DeploySoftware>False</DeploySoftware>
</Deployment>
</ApplicationDef>