Skip to content

Commit d56dbfb

Browse files
committed
added MSI config.
1 parent bcd93d9 commit d56dbfb

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
3+
>
4+
<Product Id="1c551573-db3b-4ad7-ac3b-5feaba25b1ad" Name="jMonkeyBuilder"
5+
Language="1033" Version="@version@"
6+
Manufacturer="[email protected]"
7+
UpgradeCode="b74e8cb2-60ac-445f-8e9e-27a04727e0b3">
8+
<Package Description="The 3D Editor for jMonkeyEngine 3.2" Comments="None"
9+
InstallerVersion="200" Compressed="yes"
10+
InstallScope="perUser" Platform="x64"/>
11+
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes"/>
12+
13+
<!-- We use RemoveFolderEx to ensure application folder is fully
14+
removed on uninstall. Including files created outside of MSI
15+
after application had been installed (e.g. on AU or user state).
16+
17+
Hovewer, RemoveFolderEx is only available in WiX 3.6,
18+
we will comment it out if we running older WiX.
19+
20+
RemoveFolderEx requires that we "remember" the path for uninstall.
21+
Read the path value and set the APPLICATIONFOLDER property with the value.
22+
-->
23+
<Property Id="APPLICATIONFOLDER">
24+
<RegistrySearch Key="SOFTWARE\jmonkeyengine\jMonkeyBuilder"
25+
Root="HKCU" Type="raw"
26+
Id="APPLICATIONFOLDER_REGSEARCH" Name="Path"/>
27+
</Property>
28+
<DirectoryRef Id="APPLICATIONFOLDER">
29+
<Component Id="CleanupMainApplicationFolder" Guid="*" Win64="yes">
30+
<RegistryValue Root="HKCU"
31+
Key="SOFTWARE\jmonkeyengine\jMonkeyBuilder"
32+
Name="Path" Type="string" Value="[APPLICATIONFOLDER]"
33+
KeyPath="yes"/>
34+
<!-- We need to use APPLICATIONFOLDER variable here or RemoveFolderEx
35+
will not remove on "install". But only if WiX 3.6 is used. -->
36+
<!--
37+
<util:RemoveFolderEx On="uninstall" Property="APPLICATIONFOLDER" />
38+
-->
39+
</Component>
40+
</DirectoryRef>
41+
<?include bundle.wxi ?>
42+
<UI/>
43+
<Icon Id="DesktopIcon.exe" SourceFile="jMonkeyBuilder.ico"/>
44+
<Icon Id="StartMenuIcon.exe" SourceFile="jMonkeyBuilder.ico"/>
45+
</Product>
46+
</Wix>

0 commit comments

Comments
 (0)