forked from asjimene/CMPackager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVisualStudioCode.xml
123 lines (123 loc) · 5.25 KB
/
VisualStudioCode.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<ApplicationDef>
<Application>
<Name>Visual Studio Code</Name>
<Description>Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. MIT License Freeware</Description>
<Publisher>Microsoft</Publisher>
<AutoInstall>True</AutoInstall>
<UserDocumentation>https://code.visualstudio.com</UserDocumentation>
<Icon>VSCode.ico</Icon>
</Application>
<Downloads>
<Download DeploymentType="DeploymentType1">
<PrefetchScript></PrefetchScript>
<URL>https://go.microsoft.com/fwlink/?Linkid=852157</URL>
<DownloadFileName>VSCodeSetup-x64.exe</DownloadFileName>
<Version></Version>
<FullVersion></FullVersion>
<DownloadVersionCheck>$Version = ((Get-item $TempDir\$DownloadFileName).VersionInfo.FileVersion).trimstart().TrimEnd()
$FullVersion = "$Version.0"</DownloadVersionCheck>
<AppRepoFolder>x64</AppRepoFolder>
<ExtraCopyFunctions></ExtraCopyFunctions>
</Download>
<Download DeploymentType="DeploymentType2">
<PrefetchScript></PrefetchScript>
<URL>https://go.microsoft.com/fwlink/?LinkID=623230</URL>
<DownloadFileName>VSCodeSetup-ia32.exe</DownloadFileName>
<Version></Version>
<FullVersion></FullVersion>
<DownloadVersionCheck>$Version = ((Get-item $TempDir\$DownloadFileName).VersionInfo.FileVersion).TrimStart().TrimEnd()
$FullVersion = "$Version.0"</DownloadVersionCheck>
<AppRepoFolder>x86</AppRepoFolder>
<ExtraCopyFunctions></ExtraCopyFunctions>
</Download>
</Downloads>
<DeploymentTypes>
<DeploymentType Name="DeploymentType1">
<DeploymentTypeName>Visual Studio Code x64</DeploymentTypeName>
<InstallationType>Script</InstallationType>
<CacheContent>False</CacheContent>
<BranchCache>True</BranchCache>
<ContentFallback>True</ContentFallback>
<OnSlowNetwork>Download</OnSlowNetwork>
<InstallProgram>VSCodeSetup-x64.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode</InstallProgram>
<UninstallCmd>"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT</UninstallCmd>
<UninstallOption>NoneRequired</UninstallOption>
<InstallationBehaviorType>InstallForSystem</InstallationBehaviorType>
<LogonReqType>WhetherOrNotUserLoggedOn</LogonReqType>
<UserInteractionMode>Hidden</UserInteractionMode>
<EstRuntimeMins>15</EstRuntimeMins>
<MaxRuntimeMins>30</MaxRuntimeMins>
<RebootBehavior>BasedOnExitCode</RebootBehavior>
<DetectionMethodType>Custom</DetectionMethodType>
<CustomDetectionMethods>
<DetectionClause>
<DetectionClauseType>File</DetectionClauseType>
<Name>Code.exe</Name>
<Path>%ProgramFiles%\Microsoft VS Code\</Path>
<PropertyType>Version</PropertyType>
<ExpectedValue>$FullVersion</ExpectedValue>
<ExpressionOperator>IsEquals</ExpressionOperator>
<Value>True</Value>
</DetectionClause>
</CustomDetectionMethods>
<InstallBehavior>
<InstallBehaviorProcess DisplayName="Visual Studio Code">
<InstallBehaviorExe>Code.exe</InstallBehaviorExe>
</InstallBehaviorProcess>
</InstallBehavior>
<RequirementsRules>
<RequirementsRule>
<RequirementsRuleType>Existential</RequirementsRuleType>
<RequirementsRuleValue>
<RuleValue>True</RuleValue>
</RequirementsRuleValue>
<RequirementsRuleGlobalCondition>AutoPackage - OSArchitecture x64</RequirementsRuleGlobalCondition>
</RequirementsRule>
</RequirementsRules>
</DeploymentType>
<DeploymentType Name="DeploymentType2">
<DeploymentTypeName>Visual Studio Code x86</DeploymentTypeName>
<InstallationType>Script</InstallationType>
<CacheContent>False</CacheContent>
<BranchCache>True</BranchCache>
<ContentFallback>True</ContentFallback>
<OnSlowNetwork>Download</OnSlowNetwork>
<InstallProgram>VSCodeSetup-ia32.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode</InstallProgram>
<UninstallCmd>"%ProgramFiles(x86)%\Microsoft VS Code\unins000.exe" /VERYSILENT</UninstallCmd>
<UninstallOption>NoneRequired</UninstallOption>
<InstallationBehaviorType>InstallForSystem</InstallationBehaviorType>
<LogonReqType>WhetherOrNotUserLoggedOn</LogonReqType>
<UserInteractionMode>Hidden</UserInteractionMode>
<EstRuntimeMins>15</EstRuntimeMins>
<MaxRuntimeMins>30</MaxRuntimeMins>
<RebootBehavior>BasedOnExitCode</RebootBehavior>
<DetectionMethodType>Custom</DetectionMethodType>
<CustomDetectionMethods>
<DetectionClause>
<DetectionClauseType>File</DetectionClauseType>
<Name>Code.exe</Name>
<Path>%ProgramFiles(x86)%\Microsoft VS Code\</Path>
<PropertyType>Version</PropertyType>
<ExpectedValue>$FullVersion</ExpectedValue>
<ExpressionOperator>IsEquals</ExpressionOperator>
<Value>True</Value>
</DetectionClause>
</CustomDetectionMethods>
<InstallBehavior>
<InstallBehaviorProcess DisplayName="Visual Studio Code">
<InstallBehaviorExe>Code.exe</InstallBehaviorExe>
</InstallBehaviorProcess>
</InstallBehavior>
</DeploymentType>
</DeploymentTypes>
<Distribution>
<DistributeContent>True</DistributeContent>
</Distribution>
<Supersedence>
<Supersedence>True</Supersedence>
<Uninstall>False</Uninstall>
</Supersedence>
<Deployment>
<DeploySoftware>True</DeploySoftware>
</Deployment>
</ApplicationDef>