-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathms_office.xml
40 lines (31 loc) · 1.49 KB
/
ms_office.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
<package
id="ms_office_&id;"
name="&name;"
revision="&revision;-3"
reboot="false"
priority="10">
<!-- {BRMMmmmm-PPPP-LLLL-p000-D000000FF1CE} -->
<variable name="GUID_VL" value="90&guid_major;0000-&guid_product;-0000-0000-0000000FF1CE" architecture="x86" />
<variable name="GUID_VL" value="90&guid_major;0000-&guid_product;-0000-1000-0000000FF1CE" architecture="x64" />
<variable name="GUID_OEM" value="91&guid_major;0000-&guid_product;-0000-0000-0000000FF1CE" architecture="x86" />
<variable name="GUID_OEM" value="91&guid_major;0000-&guid_product;-0000-1000-0000000FF1CE" architecture="x64" />
<variable name='INSTALL_DIR' value="%PROGRAMFILES%\Microsoft Office\Office&guid_major;" architecture='x86' />
<variable name='INSTALL_DIR' value="%PROGRAMFILES(x86)%\Microsoft Office\Office&guid_major;" architecture='x64' />
<check type="uninstall" condition="exists" path="&name;" />
<install cmd='%SOFTWARE%\Microsoft\&path;\%PROCESSOR_ARCHITECTURE%\setup.exe' timeout='1200'>
<exit code="1641" />
<exit code="3010" />
</install>
<!--
<update cmd='cscript "%INSTALL_DIR%\ospp.vbs" /act' />
<downgrade include='update' />
-->
<remove cmd='"%SOFTWARE%\Microsoft\OfficeUninstall\uninstall_ms_office.cmd" > %TEMP%\wpkg-ms_office_cleanup.txt' timeout='1800'>
<exit code='any' />
</remove>
</package>
<!--
NOTES
1) https://support.microsoft.com/en-us/kb/2186281
1) Upgrades do not work as running setup.exe when it's already installed WILL result in a prompt
-->