forked from thoemmi/Solutionizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Solutionizer.wxs
140 lines (124 loc) · 7.22 KB
/
Solutionizer.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?define UpgradeGuid="{C3666D56-FBED-4ADE-AD5E-94298DE449F4}" ?>
<?define ProductVersion="!(bind.FileVersion.SOLUTIONIZER_EXE)" ?>
<Product
Name="Solutionizer"
Id="*"
UpgradeCode="$(var.UpgradeGuid)"
Version="$(var.ProductVersion)"
Manufacturer="Thomas Freudenberg" Language="1033">
<Package
InstallerVersion="300"
Compressed="yes"
InstallScope="perUser"/>
<Media
Id="1"
Cabinet="media1.cab"
EmbedCab="yes"/>
<Property Id="ARPHELPLINK" Value="https://github.com/thoemmi/Solutionizer/issues" />
<Property Id="ARPCONTACT" Value="Thomas Freudenberg" />
<Property Id="ARPURLINFOABOUT" Value="https://github.com/thoemmi/Solutionizer" />
<Property Id="ARPPRODUCTICON" Value="icon" />
<!-- start application after install -->
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Solutionizer" />
<Property Id="WixShellExecTarget" Value="[#SOLUTIONIZER_EXE]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
<Upgrade Id="$(var.UpgradeGuid)">
<UpgradeVersion
Minimum="$(var.ProductVersion)"
OnlyDetect="yes"
Property="NEWERVERSIONDETECTED"/>
<UpgradeVersion
Minimum="0.0.0"
Maximum="$(var.ProductVersion)"
IncludeMinimum="yes"
IncludeMaximum="no"
Property="OLDERVERSIONBEINGUPGRADED"/>
</Upgrade>
<Condition Message="A newer version of this software is already installed.">NOT NEWERVERSIONDETECTED</Condition>
<PropertyRef Id="NETFRAMEWORK45"/>
<Condition Message="This setup requires the full .NET Framework 4.5 installed.">
<![CDATA[Installed OR NETFRAMEWORK45]]>
</Condition>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='LocalAppDataFolder' Name='AppData'>
<Directory Id='INSTALLLOCATION' Name='Solutionizer'>
<Component Id="Solutionizer.exe" Guid="{279C60A9-74DE-4365-9BCC-D68F318FA493}">
<RemoveFolder Id='INSTALLLOCATION' On='uninstall' />
<File Id="SOLUTIONIZER_EXE" Name="Solutionizer.exe" Source="Solutionizer/bin/Debug/Solutionizer.exe">
<Shortcut Id="startmenuFoobar10" Directory="ProgramMenuFolder" Name="Solutionizer"
WorkingDirectory='INSTALLLOCATION'/>
</File>
<File Id="SOLUTIONIZER_EXE_CONFIG" Name="Solutionizer.exe.config" Source="Solutionizer/bin/Debug/Solutionizer.exe.config" />
<RegistryValue Root='HKCU' Key='SOFTWARE\ThomasFreudenberg\Solutionizer' Name='Solutionizer.exe' Type='integer' Value='1' KeyPath='yes'/>
</Component>
<Component Id="MahApps.Metro.dll" Guid="{FCB59AD0-66C8-4674-B649-F38072F12959}">
<File Id="MahApps.Metro.dll" Name="MahApps.Metro.dll" Source="Solutionizer/bin/Debug/MahApps.Metro.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="MahApps.Metro.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="Newtonsoft.Json.dll" Guid="{56A3B853-A07B-4923-B64E-4F5CBE211334}">
<File Id="Newtonsoft.Json.dll" Name="Newtonsoft.Json.dll" Source="Solutionizer/bin/Debug/Newtonsoft.Json.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="Newtonsoft.Json.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="NLog.dll" Guid="{B4B12FEA-DA1C-4622-9DF5-1B7F31F54708}">
<File Id="NLog.dll" Name="NLog.dll" Source="Solutionizer/bin/Debug/NLog.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="NLog.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="Ookii.Dialogs.Wpf.dll" Guid="{D955369E-EB80-414F-9259-DA8583BFBF2B}">
<File Id="Ookii.Dialogs.Wpf.dll" Name="Ookii.Dialogs.Wpf.dll" Source="Solutionizer/bin/Debug/Ookii.Dialogs.Wpf.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="Ookii.Dialogs.Wpf.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="System.Windows.Interactivity.dll" Guid="{293D4BDC-9A9E-422B-AE9E-D427AFF8DA50}">
<File Id="System.Windows.Interactivity.dll" Name="System.Windows.Interactivity.dll" Source="Solutionizer/bin/Debug/System.Windows.Interactivity.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="System.Windows.Interactivity.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="RestSharp.dll" Guid="{22824CC0-E2F7-4C10-ABF3-82C486BBA89F}">
<File Id="RestSharp.dll" Name="RestSharp.dll" Source="Solutionizer/bin/Debug/RestSharp.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="RestSharp.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="Autofac.dll" Guid="{4B38CAEB-C3A3-4FE5-A293-0CAF827E605C}">
<File Id="Autofac.dll" Name="Autofac.dll" Source="Solutionizer/bin/Debug/Autofac.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="Autofac.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="Solutionizer.Framework.dll" Guid="{FF2475B7-6F7F-4FD8-8D2F-71D61F9DBE87}">
<File Id="Solutionizer.Framework.dll" Name="Solutionizer.Framework.dll" Source="Solutionizer/bin/Debug/Solutionizer.Framework.dll"/>
<RegistryValue Root="HKCU" Key="SOFTWARE\ThomasFreudenberg\Solutionizer" Name="Solutionizer.Framework.dll" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" />
</Directory>
<Feature Id="Complete">
<ComponentRef Id="Solutionizer.exe"/>
<ComponentRef Id="MahApps.Metro.dll"/>
<ComponentRef Id="Newtonsoft.Json.dll"/>
<ComponentRef Id="NLog.dll"/>
<ComponentRef Id="Ookii.Dialogs.Wpf.dll"/>
<ComponentRef Id="System.Windows.Interactivity.dll"/>
<ComponentRef Id="RestSharp.dll"/>
<ComponentRef Id="Autofac.dll"/>
<ComponentRef Id="Solutionizer.Framework.dll"/>
</Feature>
<!-- no downgrade -->
<CustomAction
Id="PreventDowngrading"
Error="There is already a newer version installed." />
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallFinalize"/>
</InstallExecuteSequence>
<WixVariable Id='WixUILicenseRtf' Value='Assets\MS-PL.rtf'/>
<WixVariable Id="WixUIBannerBmp" Value="Assets\setup_banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="Assets\setup_dialog.bmp" />
<UI>
<UIRef Id="WixUI_Minimal" />
<UIRef Id="WixUI_ErrorProgressText" />
<Publish
Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<Icon Id="icon" SourceFile="Assets\logo.ico"/>
</Product>
</Wix>