forked from asjimene/CMPackager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDotNet46.xml
56 lines (56 loc) · 2.75 KB
/
DotNet46.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
<ApplicationDef>
<Application>
<Name>Microsoft .Net 4.6</Name>
<Description>The Microsoft .NET Framework 4.6 is a highly compatible, in-place update to the Microsoft .NET Framework 4, Microsoft .NET Framework 4.5, Microsoft .NET Framework 4.5.1 and Microsoft .NET Framework 4.5.2. The offline package can be used in situations where the web installer cannot be used due to lack of internet connectivity.</Description>
<Publisher>Microsoft</Publisher>
<AutoInstall>True</AutoInstall>
<UserDocumentation>https://www.microsoft.com/en-us/download/details.aspx?id=48137</UserDocumentation>
<Icon>DotNet.ico</Icon>
</Application>
<Downloads>
<Download DeploymentType="DeploymentType1">
<PrefetchScript>$URL = ((Invoke-WebRequest "https://www.microsoft.com/en-us/download/confirmation.aspx?id=48137" -UseBasicParsing).Links | Where-Object href -like "*.exe" | Select-Object -Last 1).href</PrefetchScript>
<URL>https://www.microsoft.com/en-us/download/confirmation.aspx?id=48137</URL>
<DownloadFileName>NDP46-x86-x64-AllOS-ENU.exe</DownloadFileName>
<DownloadVersionCheck>$Version = ((Get-item $TempDir\$DownloadFileName).VersionInfo.FileVersionRaw).ToString()</DownloadVersionCheck>
<FullVersion></FullVersion>
<Version></Version>
</Download>
</Downloads>
<DeploymentTypes>
<DeploymentType Name="DeploymentType1">
<DeploymentTypeName>Silent Installer for DotNet Framework 4.6</DeploymentTypeName>
<InstallationType>Script</InstallationType>
<Comments>Silent Installer for DotNet Framework 4.6</Comments>
<Language>English</Language>
<CacheContent>False</CacheContent>
<BranchCache>True</BranchCache>
<ContentFallback>True</ContentFallback>
<OnSlowNetwork>Download</OnSlowNetwork>
<InstallProgram>`"NDP46-x86-x64-AllOS-ENU.exe`" /q /norestart</InstallProgram>
<UninstallCmd></UninstallCmd>
<Force32bit>False</Force32bit>
<InstallationBehaviorType>InstallForSystem</InstallationBehaviorType>
<LogonReqType>WhetherOrNotUserLoggedOn</LogonReqType>
<UserInteractionMode>Hidden</UserInteractionMode>
<ReqUserInteraction>False</ReqUserInteraction>
<EstRuntimeMins>15</EstRuntimeMins>
<MaxRuntimeMins>45</MaxRuntimeMins>
<RebootBehavior>BasedOnExitCode</RebootBehavior>
<DetectionMethodType>CustomScript</DetectionMethodType>
<ScriptLanguage>PowerShell</ScriptLanguage>
<DetectionMethod>$dotNet = (Get-childitem "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4")
foreach ($object in $dotNet) {
if ((get-ItemProperty -Path Registry::$object).Version -gt 4.6){
Write-Output "Installed"
}
}</DetectionMethod>
</DeploymentType>
</DeploymentTypes>
<Distribution>
<DistributeContent>True</DistributeContent>
</Distribution>
<Deployment>
<DeploySoftware>True</DeploySoftware>
</Deployment>
</ApplicationDef>