Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Product.wxs « Code « UVtools.Installer - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c371e6ca97327817c3e97666b6f85539a84d9adf (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<!-- 
  MSIProductVersion is defined in UVtools.Installer.wixproj as 0.0.1 for local desktop builds.  
  You should pass in the MSBuild Property 'MSIProductVersion' to override it during an automated build.
  See http://msdn.microsoft.com/en-us/library/windows/desktop/aa370859%28v=vs.85%29.aspx for information on allowable values.
  
  The Product@Id attribute (ProductCode Property) will be a random GUID for each build.  This is to support "Major Upgrades" where each install 
  is a seamless uninstall/reinstall.
  Version="$(var.MSIProductVersion)"
  -->
	<Product Id="*" Name="UVtools" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="PTRTECH" UpgradeCode="1ea6d212-15c0-425e-b2ec-4b6c60817552">
		<Package InstallerVersion="301" Compressed="yes" Keywords="MSLA, DLP" Description="MSLA/DLP, file analysis, repair, conversion and manipulation" InstallScope="perMachine" Platform="x64" />
		<MediaTemplate EmbedCab="yes" />

		<!-- Major Upgrade Rule to disallow downgrades -->
		<MajorUpgrade AllowDowngrades="no"
		              AllowSameVersionUpgrades="yes"
		              IgnoreRemoveFailure="no"
		              DowngradeErrorMessage="A newer version of [ProductName] is already installed."
		              Schedule="afterInstallInitialize" />
		<!--Common Launch Condition-->
		<!-- Examples at http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
		<!--
		    <PropertyRef Id="NETFRAMEWORK45" />
		    <Condition Message="[ProductName] requires .NET Framework 4.8.">Installed OR NETFRAMEWORK45</Condition>
		    -->
		<!-- Include User Interface Experience -->
		<Icon Id="Icon" SourceFile="..\UVtools.CAD\UVtools.ico" />
		<Property Id="ARPPRODUCTICON" Value="Icon" />
		<Property Id="ARPCONTACT" Value="Tiago Conceição" />
		<Property Id="ARPHELPLINK" Value="https://github.com/sn4k3/UVtools" />
		<Property Id="ARPURLINFOABOUT" Value="https://github.com/sn4k3/UVtools" />
		<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
		<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />

		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramFiles64Folder">
				<Directory Id="INSTALLFOLDER" Name="UVtools" />
			</Directory>
		</Directory>

		<Property Id="INSTALLDIR">
			<RegistrySearch Id="INSTALLDIR_REG" Type="raw" Root="HKCU" Key="Software\[ProductName]" Name="InstallDir" />
		</Property>
		<SetDirectory Id="INSTALLFOLDER" Value="[INSTALLDIR]">INSTALLDIR</SetDirectory>

		<Property Id="CREATEDESKTOPSHORTCUT" Value="1">
			<!--<RegistrySearch Id="CREATEDESKTOPSHORTCUT_REG" Type="raw" Root="HKCU" Key="Software\[ProductName]" Name="CreateDesktopShortcut" />!-->
		</Property>
		<SetProperty Id="CREATEDESKTOPSHORTCUT" Value="0" Before="WriteRegistryValues" Sequence="execute">NOT (CREATEDESKTOPSHORTCUT=1)</SetProperty>

		<Property Id="CREATEFILEASSOCIATIONS" Value="1">
			<!--<RegistrySearch Id="CREATEFILEASSOCIATIONS_REG" Type="raw" Root="HKCU" Key="Software\[ProductName]" Name="CreateFileAssociations" />!-->
		</Property>
		<SetProperty Id="CREATEFILEASSOCIATIONS" Value="0" Before="WriteRegistryValues" Sequence="execute">NOT (CREATEFILEASSOCIATIONS=1)</SetProperty>

		<Property Id="SETPATHENVIRONMENTVAR" Value="1">
			<!--<RegistrySearch Id="SETPATHENVIRONMENTVAR_REG" Type="raw" Root="HKCU" Key="Software\[ProductName]" Name="SetPathEnvironmentVar" />!-->
		</Property>
		<SetProperty Id="SETPATHENVIRONMENTVAR" Value="0" Before="WriteRegistryValues" Sequence="execute">NOT (SETPATHENVIRONMENTVAR=1)</SetProperty>

		<UIRef Id="UI" />

		<!-- Include Features and Directories Fragment -->
		<DirectoryRef Id="TARGETDIR">
			<Directory Id="DesktopFolder">
				<Component Id="CMP_DesktopShortcuts" Guid="B5B54770-8764-4EF5-B649-F612C3F5B04D">
					<Condition>CREATEDESKTOPSHORTCUT = 1</Condition>
					<Shortcut Id="desktopUVtoolsSC"
					          Name="UVtools"
					          Description="MSLA/DLP, file analysis, calibration, repair, conversion and manipulation"
					          Target="[INSTALLFOLDER]UVtools.exe"
					          WorkingDirectory="INSTALLFOLDER" />

					<RegistryKey Root="HKCU" Key="Software\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
						<RegistryValue Name="Uninstall" Value="[ProductCode]" Type="string" />
					</RegistryKey>
				</Component>
			</Directory>
			<Directory Id="ProgramMenuFolder">
				<Directory Id="ProgramMenuUVtoolsFolder" Name="UVtools">
					<Component Id="CMP_StartMenuShortcuts" Guid="857FE93D-3F67-4298-A20D-439F7421724F">
						<Shortcut Id="startMenuUVtoolsSC"
								  Name="UVtools"
								  Description="MSLA/DLP, file analysis, calibration, repair, conversion and manipulation"
								  Target="[INSTALLFOLDER]UVtools.exe"
								  WorkingDirectory="INSTALLFOLDER" />

						<Shortcut Id="startMenuUVtoolsCmdSC"
								  Name="UVtoolsCmd"
								  Description="MSLA/DLP, file analysis, calibration, repair, conversion and manipulation"
								  Target="[System64Folder]cmd.exe"
								  Arguments="/k UVtoolsCmd.exe"
								  WorkingDirectory="INSTALLFOLDER" />

						<Shortcut Id="startMenuUninstallSC"
								  Name="Uninstall UVtools"
								  Description="Uninstalls UVtools and all of its components"
								  Target="[System64Folder]msiexec.exe"
								  Arguments="/i [ProductCode]" />

						<RemoveFolder Id="ProgramMenuUVtoolsFolder" On="uninstall" />

						<RegistryKey Root="HKCU" Key="Software\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
							<RegistryValue Name="Uninstall" Value="[ProductCode]" Type="string" />
						</RegistryKey>
					</Component>
				</Directory>
			</Directory>

			<!-- Environment vars -->
			<Component Id="CMP_SetPathEnvironmentVar" Guid="974A9C67-F75E-44BB-BDCD-59680100504E">
				<Condition>SETPATHENVIRONMENTVAR = 1</Condition>
				<Environment Id="PathEnvironmentVar" Name="PATH" Value="[INSTALLFOLDER]" Permanent="no" Part="last" Action="set" System="yes" />
			</Component>

			<!-- Start Registry -->
			<Component Id="RegInstallInfo" Guid="C3603223-A8C1-4393-8C06-36B48DED2652">
				<!-- Install directory -->
				<RegistryKey Root="HKCU" Key="Software\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
					<RegistryValue Name="InstallDir" Value="[INSTALLFOLDER]" Type="string" />
					<RegistryValue Name="CreateDesktopShortcut" Value="[CREATEDESKTOPSHORTCUT]" Type="integer" />
					<RegistryValue Name="CreateFileAssociations" Value="[CREATEFILEASSOCIATIONS]" Type="integer" />
					<RegistryValue Name="SetPathEnvironmentVar" Value="[SETPATHENVIRONMENTVAR]" Type="integer" />
				</RegistryKey>
			</Component>

			<Component Id="RegFilesAssociations" Guid="A39174DD-7B4A-4020-A57A-0DC01242D7EC">
				<!-- Open file with UVtools -->
				<Condition>CREATEFILEASSOCIATIONS = 1</Condition>
				<RegistryKey Root="HKCR" Key="*\shell\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
					<RegistryValue Value="Open with [ProductName]" Type="string" />
					<RegistryValue Name="Icon" Value="[INSTALLFOLDER][ProductName].exe" Type="string" />
					<RegistryValue Name="Position"  Value="Top" Type="string" />
					<RegistryValue Name="AppliesTo" Value="System.FileName:&quot;*.sl1&quot; OR System.FileName:&quot;*.sl1s&quot; OR System.FileName:&quot;*.zip&quot; OR System.FileName:&quot;*.photon&quot; OR System.FileName:&quot;*.cbddlp&quot; OR System.FileName:&quot;*.ctb&quot; OR System.FileName:&quot;*.photons&quot; OR System.FileName:&quot;*.phz&quot; OR System.FileName:&quot;*.pws&quot; OR System.FileName:&quot;*.pw0&quot; OR System.FileName:&quot;*.pwx&quot; OR System.FileName:&quot;*.dlp&quot; OR System.FileName:&quot;*.dl2p&quot; OR System.FileName:&quot;*.pwmx&quot; OR System.FileName:&quot;*.pwmb&quot; OR System.FileName:&quot;*.pwmo&quot; OR System.FileName:&quot;*.pwms&quot; OR System.FileName:&quot;*.pwma&quot; OR System.FileName:&quot;*.pmsq&quot; OR System.FileName:&quot;*.pm3&quot; OR System.FileName:&quot;*.pm3m&quot; OR System.FileName:&quot;*.cws&quot; OR System.FileName:&quot;*.lgs&quot; OR System.FileName:&quot;*.lgs30&quot; OR System.FileName:&quot;*.lgs120&quot; OR System.FileName:&quot;*.lgs4k&quot; OR System.FileName:&quot;*.vdt&quot; OR System.FileName:&quot;*.cxdlp&quot; OR System.FileName:&quot;*.fdg&quot; OR System.FileName:&quot;*.zcode&quot; OR System.FileName:&quot;*.jxs&quot; OR System.FileName:&quot;*.zcodex&quot; OR System.FileName:&quot;*.mdlp&quot; OR System.FileName:&quot;*.gr1&quot; OR System.FileName:&quot;*.svgx&quot; OR System.FileName:&quot;*.osla&quot; OR System.FileName:&quot;*.osf&quot; OR System.FileName:&quot;*.uvj&quot; OR System.FileName:&quot;*.png&quot; OR System.FileName:&quot;*.jpg&quot; OR System.FileName:&quot;*.jpeg&quot; OR System.FileName:&quot;*.jp2&quot; OR System.FileName:&quot;*.tif&quot; OR System.FileName:&quot;*.tiff&quot; OR System.FileName:&quot;*.bmp&quot; OR System.FileName:&quot;*.pbm&quot; OR System.FileName:&quot;*.pgm&quot; OR System.FileName:&quot;*.sr&quot; OR System.FileName:&quot;*.ras&quot;" Type="string" />

					<RegistryKey Key="command" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
						<RegistryValue Value="&quot;[INSTALLFOLDER][ProductName].exe&quot; &quot;%1&quot;" Type="string" />
					</RegistryKey>
				</RegistryKey>

			</Component>
			<!-- End Registry -->
		</DirectoryRef>

		<!-- Start Features -->
		<Feature Id="UVtools" Title="UVtools" Description="Installs all the files needed for [ProductName]" Level="1" AllowAdvertise="no" ConfigurableDirectory="INSTALLFOLDER">
			<ComponentRef Id="RegInstallInfo" />
			<ComponentRef Id="RegFilesAssociations" />
			<ComponentGroupRef Id="HeatGeneratedFileList" />
			<ComponentRef Id="CMP_DesktopShortcuts" />
			<ComponentRef Id="CMP_StartMenuShortcuts" />
			<ComponentRef Id="CMP_SetPathEnvironmentVar" />
		</Feature>
		<!-- End Features -->

		<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch UVtools" />
		<Property Id="WixShellExecTarget" Value="[INSTALLFOLDER]UVtools.exe" />
		<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />

	</Product>
</Wix>