Skip to content

Commit 08e798e

Browse files
committed
jfTermServer : add MSI package
1 parent d00de7f commit 08e798e

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

projects/jftermserver/wix64.xml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:fire="http://wixtoolset.org/schemas/v4/wxs/firewall" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
2+
<Package UpgradeCode="{40716B14-4F6B-4AE7-BDDA-DA074B44606B}" Version="0.9" Language="1033" Name="jfTermServer" Manufacturer="Peter Quiring" InstallerVersion="300">
3+
<Media Id="1" Cabinet="files.cab" EmbedCab="yes" />
4+
<UIRef Id="WixUI_Minimal" />
5+
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
6+
7+
<SetProperty Id="URL" Value="http://localhost" Sequence="execute" Before="CreateShortcuts" />
8+
<Icon Id="icon.ico" SourceFile="jftermserver.ico" />
9+
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
10+
11+
<!-- Step 1: Define the directory structure -->
12+
<StandardDirectory Id="ProgramFiles64Folder">
13+
<Directory Id="APPLICATIONROOTDIRECTORY" Name="jfTermServer" />
14+
</StandardDirectory>
15+
<StandardDirectory Id="ProgramMenuFolder">
16+
</StandardDirectory>
17+
18+
<!-- Step 2: Add files to your installer package -->
19+
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
20+
<Component Id="appfiles" Guid="{CC788494-43AC-4BDD-AF96-5F7EB433A2EF}" Bitness="always64">
21+
<File Id="jftermserver.exe" Source="jftermserver.exe" KeyPath="yes">
22+
<fire:FirewallException Id="FirewallRule80" Name="jfTermServer80" Protocol="tcp" Port="80" Scope="any" IgnoreFailure="yes" Profile="all" />
23+
<fire:FirewallException Id="FirewallRule443" Name="jfTermServer443" Protocol="tcp" Port="443" Scope="any" IgnoreFailure="yes" Profile="all" />
24+
</File>
25+
<File Id="jftermserver.jar" Source="jftermserver.jar" />
26+
<File Id="jficons.jar" Source="jficons.jar" />
27+
<File Id="javaforce.jar" Source="javaforce.jar" />
28+
<ServiceInstall Id="ServiceInstaller" Type="ownProcess" Name="jfTermServer" DisplayName="jfTermServer" Description="jfTermServer" Start="auto" ErrorControl="normal" />
29+
<ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="jfTermServer" Wait="yes" />
30+
</Component>
31+
</DirectoryRef>
32+
33+
<!-- Step 2b: Add the shortcut to your installer package -->
34+
<StandardDirectory Id="ProgramMenuFolder">
35+
<Component Id="ApplicationShortcut" Guid="{69CA0EB6-06AE-4525-BF89-F8685F763BD9}">
36+
<Shortcut Id="ApplicationStartMenuShortcut" Name="jf Terminal Server" Description="jf Terminal Server" Target="[URL]" WorkingDirectory="APPLICATIONROOTDIRECTORY" Icon="icon.ico" />
37+
<RegistryValue Root="HKCU" Key="Software\Microsoft\jfTermServer" Name="installed" Type="integer" Value="1" KeyPath="yes" />
38+
</Component>
39+
</StandardDirectory>
40+
41+
<!-- Step 3: Tell WiX to install the files -->
42+
<Feature Id="MainApplication" Title="Main Application" Level="1">
43+
<ComponentRef Id="appfiles" />
44+
<ComponentRef Id="ApplicationShortcut" />
45+
<ComponentGroupRef Id="JRE" />
46+
</Feature>
47+
48+
</Package>
49+
</Wix>

0 commit comments

Comments
 (0)