-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwinstaller.wxs
219 lines (214 loc) · 13.8 KB
/
winstaller.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?if $(var.Platform) = x86 ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?define PlatformVCRedistMMPath = "c:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC120_CRT_x86.msm" ?>
<?else ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?define PlatformVCRedistMMPath = "c:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC120_CRT_x64.msm" ?>
<?endif ?>
<Product Id="*" Name="PornViewer" Language="1033" Version="0.2.1" Manufacturer="Schmidty's Superior Solutions" UpgradeCode="8527e354-e187-4921-8af5-de92e1004b4a" >
<Package InstallerVersion="405" InstallScope="perMachine" Compressed="yes" Comments="Windows Installer Package" />
<MajorUpgrade Schedule="afterInstallInitialize" AllowDowngrades="no" DowngradeErrorMessage="A later version of PornViewer is already installed. Setup will now exit." />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
<Icon Id="ProductIcon" SourceFile="icon.ico" />
<Property Id="ARPPRODUCTICON" Value="ProductIcon"/>
<Property Id="DropAppdata" Value="$(env.LocalAppData)\PornViewer\databases" />
<UIRef Id="WixUI_FeatureTree" />
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" />
<WixVariable Id="WixUIExclamationIco" Value="small.bmp" />
<WixVariable Id="WixUIInfoIco" Value="small.bmp" />
<WixVariable Id="WixUINewIco" Value="tiny.bmp" />
<WixVariable Id="WixUIUpIco" Value="tiny.bmp" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)">
<Directory Id="INSTALLDIR" Name="PornViewer">
<Component Id="ApplicationFiles" Guid="8527e354-e187-4921-8af5-de92e1004b4a">
<CreateFolder />
<File Id="Executable" Source="resources\$(var.Platform)\nw.exe" Vital="yes" KeyPath="yes" />
<File Id="Support0" Source="resources\$(var.Platform)\d3dcompiler_47.dll" />
<File Id="Support1" Source="resources\$(var.Platform)\ffmpegsumo.dll" />
<File Id="Support2" Source="resources\$(var.Platform)\icudtl.dat" />
<File Id="Support3" Source="resources\$(var.Platform)\libEGL.dll" />
<File Id="Support4" Source="resources\$(var.Platform)\libGLESv2.dll" />
<File Id="Support5" Source="resources\$(var.Platform)\pdf.dll" />
<File Id="Support6" Source="resources\$(var.Platform)\nw.pak" />
<File Id="Support7" Source="resources\$(var.Platform)\nwjc.exe" />
<File Id="Application0" Source="close.png" />
<File Id="Application1" Source="index.html" />
<File Id="Application2" Source="index.js" />
<File Id="Application3" Source="icon.png" />
<File Id="Application4" Source="maximize.png" />
<File Id="Application5" Source="minimize.png" />
<File Id="Application6" Source="restore.png" />
<File Id="Application7" Source="package.json" />
<File Id="Application8" Source="support.css" />
<File Id="Application9" Source="paypage.html" />
<File Id="Application10" Source="vidErrThumb.png" />
<File Id="Application11" Source="imgErrThumb.png" />
</Component>
<Directory Name="Controller" Id="ControllerDirectory">
<Component Id="ControllerFiles" Guid="a981e01a-4467-46f7-bd1a-08e42e2f8ab1">
<CreateFolder />
<File Id="Application_Controller0" Source="Controller\Collection.js" />
<File Id="Application_Controller1" Source="Controller\Directory.js" />
<File Id="Application_Controller2" Source="Controller\directory.png" />
<File Id="Application_Controller3" Source="Controller\directory_open.png" />
<File Id="Application_Controller4" Source="Controller\FilenameSorter.js" />
<File Id="Application_Controller5" Source="Controller\index.css" />
<File Id="Application_Controller6" Source="Controller\index.html" />
<File Id="Application_Controller7" Source="Controller\index.js" />
<File Id="Application_Controller8" Source="Controller\package.json" />
<File Id="Application_Controller9" Source="Controller\scum.js" />
<File Id="Application_Controller10" Source="Controller\ThumbWarrior.js" />
<File Id="Application_Controller11" Source="Controller\video_overlay.png" />
<File Id="Application_Controller12" Source="Controller\video_left_overlay.png" />
<File Id="Application_Controller13" Source="Controller\video_right_overlay.png" />
<File Id="Application_Controller14" Source="Controller\video.png" />
</Component>
</Directory>
<Directory Name="Visualizer" Id="VisualizerDirectory">
<Component Id="VisualizerFiles" Guid="e4eaaaf5-abba-490c-8557-bc42a69fe5e2">
<CreateFolder />
<File Id="Application_Visualizer0" Source="Visualizer\drag.png" />
<File Id="Application_Visualizer1" Source="Visualizer\index.css" />
<File Id="Application_Visualizer3" Source="Visualizer\index.html" />
<File Id="Application_Visualizer4" Source="Visualizer\index.js" />
<File Id="Application_Visualizer5" Source="Visualizer\mute.png" />
<File Id="Application_Visualizer6" Source="Visualizer\muted.png" />
<File Id="Application_Visualizer7" Source="Visualizer\package.json" />
<File Id="Application_Visualizer8" Source="Visualizer\VideoManager.js" />
</Component>
</Directory>
<Component Id="JpgAssociation" Guid="11f4eca4-f2b7-4a1d-b6a2-2a45280a5e9c">
<CreateFolder />
<ProgId Id="jpgType" Description="jpg images" Icon="Executable">
<Extension Id='jpg' ContentType='image/jpg'>
<Verb Id='open' TargetFile="Executable" Command='Open' Argument='"%1"' />
</Extension>
</ProgId>
<ProgId Id='jpegType' Description='jpeg images' Icon="Executable">
<Extension Id='jpeg' ContentType='image/jpeg'>
<Verb Id='open' TargetFile="Executable" Command='Open' Argument='"%1"' />
</Extension>
</ProgId>
</Component>
<Component Id="GifAssociation" Guid="f0d9214a-b06c-4bea-b71e-ba0d6c8c2a36">
<CreateFolder />
<ProgId Id='gifType' Description='gif images' Icon="Executable">
<Extension Id='gif' ContentType='image/gif'>
<Verb Id='open' TargetFile="Executable" Command='Open' Argument='"%1"' />
</Extension>
</ProgId>
</Component>
<Component Id="PngAssociation" Guid="fce019b8-5b96-4280-adf0-5bab8d975166">
<CreateFolder />
<ProgId Id='pngType' Description='png images' Icon="Executable">
<Extension Id='png' ContentType='image/png'>
<Verb Id='open' TargetFile="Executable" Command='Open' Argument='"%1"' />
</Extension>
</ProgId>
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuSubfolder" Name="PornViewer">
<Component Id="ApplicationShortcuts" Guid="0093168f-dbc1-430e-b63f-570a01356f3c">
<Shortcut Id="ApplicationShortcut1" Name="PornViewer" Description="View Some Porn" Target="[INSTALLDIR]nw.exe" WorkingDirectory="INSTALLDIR" Icon="ProductIcon" />
<RegistryValue Root="HKCU" Key="Software\Microsoft\Windows\ShellNoRoam\MUICache" Name="[$(var.PlatformProgramFilesFolder)]PornViewer\nw.exe.FriendlyAppName" Value="PornViewer" Type="string" KeyPath="yes" />
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" Name="[$(var.PlatformProgramFilesFolder)]PornViewer\nw.exe.FriendlyAppName" Value="PornViewer" Type="string"/>
<RemoveFolder Id="ProgramMenuSubfolder" On="uninstall" />
</Component>
</Directory>
</Directory>
<Directory Id="LocalAppDataFolder" Name="AppData">
<Directory Id="APPDATADIR" Name="PornViewer">
<Component Id="AppDataDirectory" Guid="399fc944-9765-4391-b34d-c8926e2dc38c">
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\PornViewer" Name="LocalData" Value="yes" Type="string" KeyPath="yes" />
<CreateFolder />
<RemoveFolder Id="RemoveMyAppDirectory" On="uninstall" />
<RemoveFile Id="removeFile_appdata" On="uninstall" Name="*" />
</Component>
<Directory Id="AppDataDir_Cache" Name="Cache">
<Component Id="AppDataCacheDir" Guid="b582b805-79e6-4a97-94b6-048baba4787c">
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\PornViewer" Name="LocalData_Cache" Value="yes" Type="string" KeyPath="yes" />
<CreateFolder />
<RemoveFile Id="removeFile_Cache" On="uninstall" Name="*" />
<RemoveFolder Id="RemoveMyAppCacheDirectory" On="uninstall" />
</Component>
</Directory>
<Directory Id="AppDataDir_databases" Name="databases">
<Component Id="AppDataDBDir" Guid="e37e0151-4c5c-43bb-b45b-3d7bb52fda70">
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\PornViewer" Name="LocalData_databases" Value="yes" Type="string" KeyPath="yes" />
<CreateFolder />
<!-- <RemoveFile Id="removeFile_databases" On="uninstall" Name="*" /> -->
<util:RemoveFolderEx Id="ProgramMenuSubfolder" On="uninstall" Property="DropAppdata" />
<RemoveFolder Id="RemoveMyAppDBDirectory" On="uninstall" />
</Component>
</Directory>
<Directory Id="AppDataDir_GPUCache" Name="GPUCache">
<Component Id="AppDataGPUCacheDir" Guid="28ee72cd-ef7b-4b4b-b58c-aa190d16d6bf">
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\PornViewer" Name="LocalData_GPUCache" Value="yes" Type="string" KeyPath="yes" />
<CreateFolder />
<RemoveFile Id="removeFile_GPUCache" On="uninstall" Name="*" />
<RemoveFolder Id="RemoveMyAppGPUCacheDirectory" On="uninstall" />
</Component>
</Directory>
<Directory Id="AppDataDir_Local" Name="Local Storage">
<Component Id="AppDataStorageDir" Guid="21c142a2-4134-46bd-bee0-2a4d31703e58">
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\PornViewer" Name="LocalData_Local" Value="yes" Type="string" KeyPath="yes" />
<CreateFolder />
<RemoveFile Id="removeFile_Local" On="uninstall" Name="*" />
<RemoveFolder Id="RemoveMyAppLocalStorageDirectory" On="uninstall" />
</Component>
</Directory>
<Directory Id="AppDataDir_thumbs" Name="thumbs">
<Component Id="AppDataThumbsDir" Guid="acf88457-2203-495a-8c2b-d486bb085f6a">
<RegistryValue Root="HKCU" Key="Software\Classes\Local Settings\Software\PornViewer" Name="LocalData_thumbs" Value="yes" Type="string" KeyPath="yes" />
<CreateFolder />
<RemoveFile Id="removeFile_thumbs" On="uninstall" Name="*" />
<RemoveFolder Id="RemoveMyAppThumbsDirectory" On="uninstall" />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="TARGETDIR">
<Merge Id="VCRedist" SourceFile="$(var.PlatformVCRedistMMPath)" DiskId="1" Language="0" />
</DirectoryRef>
<Feature Id="Complete" Title="PornViewer" Description="The complete package." Display="expand" Level="1" ConfigurableDirectory="INSTALLDIR">
<ComponentRef Id="ApplicationFiles" />
<ComponentRef Id="AppDataDirectory" />
<ComponentRef Id="ControllerFiles" />
<ComponentRef Id="VisualizerFiles" />
<ComponentGroupRef Id="NodeModules"/>
<ComponentRef Id="AppDataCacheDir" />
<ComponentRef Id="AppDataDBDir" />
<ComponentRef Id="AppDataGPUCacheDir" />
<ComponentRef Id="AppDataStorageDir" />
<ComponentRef Id="AppDataThumbsDir" />
<Feature Id="VCRedistFeature" Title="Visual C++ 12.0 Runtime" AllowAdvertise="no" Display="hidden" Level="1">
<MergeRef Id="VCRedist" />
</Feature>
<Feature Id="StartMenuFeature" Level="1" Title="Start Menu shortcuts" Description="Add PornViewer to the Start Menu" AllowAdvertise="no" InstallDefault="local">
<ComponentRef Id="ApplicationShortcuts" />
</Feature>
<Feature Id="FiletypesFeature" Level="100" Title="File Associations" Description="Open image files with PornViewer" Display="expand" AllowAdvertise="no" InstallDefault="local">
<Feature Id="JpgTypesFeature" Level="100" Title="*.jpg and *.jpeg" Description="Open JPEG images with PornViewer" AllowAdvertise="no" InstallDefault="local">
<ComponentRef Id="ApplicationFiles" />
<ComponentRef Id="JpgAssociation" />
</Feature>
<Feature Id="GifTypesFeature" Level="100" Title="*.gif" Description="Open GIF images with PornViewer" AllowAdvertise="no" InstallDefault="local">
<ComponentRef Id="ApplicationFiles" />
<ComponentRef Id="GifAssociation" />
</Feature>
<Feature Id="PngTypesFeature" Level="100" Title="*.png" Description="Open PNG images with PornViewer" AllowAdvertise="no" InstallDefault="local">
<ComponentRef Id="ApplicationFiles" />
<ComponentRef Id="PngAssociation" />
</Feature>
</Feature>
</Feature>
</Product>
</Wix>