author | herrick |
Mon, 11 Mar 2019 13:31:48 -0400 | |
branch | JDK-8200758-branch |
changeset 57255 | f686bda3b831 |
parent 57181 | d10b861e8d62 |
child 57269 | d28d38406872 |
permissions | -rw-r--r-- |
57038 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" |
|
3 |
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
4 |
<Product Id="PRODUCT_GUID" Name="APPLICATION_NAME" |
57038 | 5 |
Language="1033" Version="APPLICATION_VERSION" |
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
6 |
Manufacturer="APPLICATION_VENDOR" |
57038 | 7 |
UpgradeCode="PRODUCT_UPGRADE_GUID"> |
57255
f686bda3b831
8215574: Investigate and document usage of --category, --copyright, --vendor and --description
herrick
parents:
57181
diff
changeset
|
8 |
<Package Description="APPLICATION_DESCRIPTION" |
f686bda3b831
8215574: Investigate and document usage of --category, --copyright, --vendor and --description
herrick
parents:
57181
diff
changeset
|
9 |
Manufacturer="APPLICATION_VENDOR" |
57038 | 10 |
InstallerVersion="200" Compressed="yes" |
11 |
InstallScope="INSTALL_SCOPE" Platform="PLATFORM"/> |
|
12 |
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes" /> |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
13 |
UPGRADE_BLOCK |
57038 | 14 |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
15 |
<!-- We use RemoveFolderEx to ensure application folder is fully |
57038 | 16 |
removed on uninstall. Including files created outside of MSI |
17 |
after application had been installed (e.g. on AU or user state). |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
18 |
|
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
19 |
Hovewer, RemoveFolderEx is only available in WiX 3.6, |
57038 | 20 |
we will comment it out if we running older WiX. |
21 |
||
22 |
RemoveFolderEx requires that we "remember" the path for uninstall. |
|
23 |
Read the path value and set the APPLICATIONFOLDER property with the value. |
|
24 |
--> |
|
25 |
<Property Id="APPLICATIONFOLDER"> |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
26 |
<RegistrySearch Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME" |
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
27 |
Root="REGISTRY_ROOT" Type="raw" |
57038 | 28 |
Id="APPLICATIONFOLDER_REGSEARCH" Name="Path" /> |
29 |
</Property> |
|
30 |
<DirectoryRef Id="APPLICATIONFOLDER"> |
|
31 |
<Component Id="CleanupMainApplicationFolder" Guid="*" Win64="WIN64"> |
|
32 |
<RegistryValue Root="REGISTRY_ROOT" |
|
33 |
Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME" |
|
34 |
Name="Path" Type="string" Value="[APPLICATIONFOLDER]" |
|
35 |
KeyPath="yes" /> |
|
36 |
<!-- We need to use APPLICATIONFOLDER variable here or RemoveFolderEx |
|
37 |
will not remove on "install". But only if WiX 3.6 is used. --> |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
38 |
WIX36_ONLY_START |
57038 | 39 |
<util:RemoveFolderEx On="uninstall" Property="APPLICATIONFOLDER" /> |
40 |
WIX36_ONLY_END |
|
41 |
</Component> |
|
57181
d10b861e8d62
8214564: --win-upgrade-uuid does not work as expected
herrick
parents:
57039
diff
changeset
|
42 |
</DirectoryRef> |
57038 | 43 |
<?include bundle.wxi ?> |
44 |
UI_BLOCK |
|
45 |
</Product> |
|
46 |
</Wix> |