-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows-installer.wxs
82 lines (70 loc) · 2.95 KB
/
windows-installer.wxs
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
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?ifndef var.VERSION?>
<?error VERSION must be defined via command line argument?>
<?endif?>
<?ifndef var.ManSourceDir?>
<?define ManSourceDir = "bin/windows" ?>
<?endif?>
<!-- GUIDs updated for 2.0.1 -->
<!-- Change Product Id GUID for major release or change in components -->
<!-- Change Product UpgradeCode GUID for major release -->
<Product Name="Synergize $(var.VERSION)"
Id="68081C43-F5C9-412F-9A0A-7BF4B5D3AFAA"
UpgradeCode="E4D363A2-2847-47CA-AA16-C9D2B6478A1B"
Version="$(var.VERSION)" Language="1033" Manufacturer="Chinenual">
<Package Id="*" Keywords="Installer" Description="Synergize $(var.VERSION) Installer" Comments="MIT License" Manufacturer="Chinenual" InstallScope="perMachine" InstallerVersion="100" Compressed="yes"/>
<Media Id="1" Cabinet="Synergize.cab" EmbedCab="yes"/>
<Property Id="DiskPrompt" Value="Synergize $(var.VERSION) Installation"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="ChinenualPFiles" Name="Chinenual">
<Directory Id="INSTALLDIR" Name="Synergize">
<!-- constant GUID -->
<Component Id="INSTALLDIR_Component"
Guid="FE9BDC25-5037-48D0-B477-CAE0B1177585">
<CreateFolder/>
</Component>
<!-- constant GUID -->
<Component Id="MainExecutable"
Guid="A1C41EF0-6558-4795-A69B-0AD587CCEE10">
<!-- constant GUID -->
<File
Id="2634660E-DF2D-4479-A9A0-8DC1C714A0D3"
Name="Synergize.exe"
Source="output/windows-386/Synergize.exe">
<Shortcut Id="startmenuSynergize" Directory="ProgramMenuFolder" Name="Synergize"
WorkingDirectory='INSTALLDIR'
Icon="Synergize.ico"
Advertise="yes" />
</File>
</Component>
<!-- constant GUID -->
<Component Id="DXVoiceConverter"
Guid="A1C41EF0-6558-4795-1234-0AD587CCEE11">
<!-- constant GUID -->
<File
Id="2634660E-DF2D-4479-1234-8DC1C714A0D4"
Name="dx2syn.exe"
Source="output/windows-386/dx2syn.exe">
</File>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Property Id="setx" Value="setx.exe"/>
<CustomAction Id="ChangePath" ExeCommand="PATH "%PATH%;[INSTALLDIR] "" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
<Feature Id="Complete" Level="1">
<ComponentRef Id="INSTALLDIR_Component"/>
<ComponentRef Id="MainExecutable"/>
<ComponentRef Id="DXVoiceConverter"/>
<!-- <ComponentRef Id="ProgramMenuDir"/>-->
</Feature>
<Icon Id="Synergize.ico" SourceFile="resources/icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="Synergize.ico"/>
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize"/>
</InstallExecuteSequence>
</Product>
</Wix>