diff options
Diffstat (limited to 'UVtools.Installer/Code/Product.wxs')
-rw-r--r-- | UVtools.Installer/Code/Product.wxs | 81 |
1 files changed, 41 insertions, 40 deletions
diff --git a/UVtools.Installer/Code/Product.wxs b/UVtools.Installer/Code/Product.wxs index f4f2892..d392cc8 100644 --- a/UVtools.Installer/Code/Product.wxs +++ b/UVtools.Installer/Code/Product.wxs @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="utf-8"?> +<?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. @@ -9,41 +9,42 @@ 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" 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.ico" SourceFile="..\UVtools.CAD\UVtools.ico" /> - <Property Id="ARPPRODUCTICON" Value="Icon.ico"></Property> - <UIRef Id="UI" /> - <!-- Include Features and Directories Fragment --> - <DirectoryRef Id="INSTALLLOCATION"> - <Component Id="RegistryEntries" Guid="C3603223-A8C1-4393-8C06-36B48DED2652"> - <RegistryKey - Root="HKCU" - Key="Software\UVtools" - ForceCreateOnInstall="yes" - ForceDeleteOnUninstall="yes" /> - <RegistryValue - Root="HKCU" - Key="Software\UVtools" - Name="InstallDir" - Type="string" - Value="[INSTALLLOCATION]" /> - </Component> - </DirectoryRef> - </Product> -</Wix>
\ No newline at end of file + <Product Id="*" Name="UVtools" Language="1033" Version="$(var.MSIProductVersion)" Manufacturer="PTRTECH" UpgradeCode="1ea6d212-15c0-425e-b2ec-4b6c60817552"> + <Package InstallerVersion="301" Compressed="yes" 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.ico" SourceFile="..\UVtools.CAD\UVtools.ico" /> + <Property Id="ARPPRODUCTICON" Value="Icon.ico"></Property> + <UIRef Id="UI" /> + <!-- Include Features and Directories Fragment --> + <DirectoryRef Id="INSTALLLOCATION"> + <Component Id="RegistryEntries" Guid="C3603223-A8C1-4393-8C06-36B48DED2652"> + <!-- Install directory --> + <RegistryKey Root="HKCU" Key="Software\UVtools" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes" /> + <RegistryValue Root="HKCU" Key="Software\UVtools" Name="InstallDir" Value="[INSTALLLOCATION]" Type="string" /> + + <!-- Open file with UVtools --> + <RegistryKey Root="HKCR" Key="*\shell\UVtools" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes" /> + <RegistryValue Root="HKCR" Key="*\shell\UVtools" Value="Open with UVtools" Type="string" /> + <RegistryValue Root="HKCR" Key="*\shell\UVtools" Name="Icon" Value="[INSTALLLOCATION]UVtools.exe" Type="string" /> + <RegistryValue Root="HKCR" Key="*\shell\UVtools" Name="Position" Value="Top" Type="string" /> + <RegistryValue Root="HKCR" Key="*\shell\UVtools" Name="AppliesTo" Value="System.FileName:"*.sl1" OR System.FileName:"*.sl1s" OR System.FileName:"*.zip" OR System.FileName:"*.photon" OR System.FileName:"*.cbddlp" OR System.FileName:"*.ctb" OR System.FileName:"*.photons" OR System.FileName:"*.phz" OR System.FileName:"*.fdg" OR System.FileName:"*.pws" OR System.FileName:"*.pw0" OR System.FileName:"*.pwx" OR System.FileName:"*.dlp" OR System.FileName:"*.pwmx" OR System.FileName:"*.pwmb" OR System.FileName:"*.pwmo" OR System.FileName:"*.pwms" OR System.FileName:"*.pwma" OR System.FileName:"*.pmsq" OR System.FileName:"*.pm3" OR System.FileName:"*.pm3m" OR System.FileName:"*.cws" OR System.FileName:"*.osla" OR System.FileName:"*.jxs" OR System.FileName:"*.zcode" OR System.FileName:"*.zcodex" OR System.FileName:"*.mdlp" OR System.FileName:"*.gr1" OR System.FileName:"*.cxdlp" OR System.FileName:"*.lgs" OR System.FileName:"*.lgs30" OR System.FileName:"*.lgs120" OR System.FileName:"*.lgs4k" OR System.FileName:"*.svgx" OR System.FileName:"*.vdt" OR System.FileName:"*.uvj" OR System.FileName:"*.png" OR System.FileName:"*.jpg" OR System.FileName:"*.jpeg" OR System.FileName:"*.jp2" OR System.FileName:"*.tif" OR System.FileName:"*.tiff" OR System.FileName:"*.bmp" OR System.FileName:"*.pbm" OR System.FileName:"*.pgm" OR System.FileName:"*.sr" OR System.FileName:"*.ras"" Type="string" /> + <RegistryKey Root="HKCR" Key="*\shell\UVtools\command" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes" /> + <RegistryValue Root="HKCR" Key="*\shell\UVtools\command" Value=""[INSTALLLOCATION]UVtools.exe" "%1"" Type="string" /> + </Component> + </DirectoryRef> + </Product> +</Wix> |