mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add a template for our MSI file
This commit is contained in:
38
vendor/wix/template.wxs
vendored
Normal file
38
vendor/wix/template.wxs
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
|
||||||
|
<Product Id="*" Name="{{Title}} Machine-Wide Installer" Language="1033" Version="1.2.4" UpgradeCode="{{RandomGuid}}" Manufacturer="{{Author}}">
|
||||||
|
|
||||||
|
<PropertyRef Id="NETFRAMEWORK45" />
|
||||||
|
|
||||||
|
<Package Description="#Description" Comments="Comments" InstallerVersion="200" Compressed="yes"/>
|
||||||
|
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
|
||||||
|
|
||||||
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||||
|
<Directory Id="ProgramFilesFolder">
|
||||||
|
<Directory Id="APPLICATIONROOTDIRECTORY" Name="{{Title}} Installer" />
|
||||||
|
</Directory>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
|
||||||
|
<Component Id="Setup.exe" Guid="08AD3BE1-EDA8-4182-BF8F-F47F805E28B8">
|
||||||
|
<File Id="Setup.exe" Source="./Setup.exe" KeyPath="yes" />
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
|
|
||||||
|
<DirectoryRef Id="TARGETDIR">
|
||||||
|
<Component Id="RegistryEntries" Guid="4438A0C1-7F86-4737-B929-8476305E1183">
|
||||||
|
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Run">
|
||||||
|
<RegistryValue Type="expandable" Name="{{Id}}MachineInstaller" Value="%ProgramFiles%\{{Title}} Installer\Setup.exe --checkInstall" />
|
||||||
|
</RegistryKey>
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
|
|
||||||
|
<Feature Id="MainApplication" Title="Main Application" Level="1">
|
||||||
|
<ComponentRef Id="Setup.exe" />
|
||||||
|
<ComponentRef Id="RegistryEntries" />
|
||||||
|
|
||||||
|
<Condition Message="This application requires .NET Framework 4.5. Please install the .NET Framework then run this installer again.">
|
||||||
|
<![CDATA[Installed OR NETFRAMEWORK45]]>
|
||||||
|
</Condition>
|
||||||
|
</Feature>
|
||||||
|
</Product>
|
||||||
|
</Wix>
|
||||||
Reference in New Issue
Block a user