Wix Installer

This commit is contained in:
Unknown
2017-10-07 08:16:49 +01:00
parent 6b53e1a009
commit cecd38ea3d
13 changed files with 1213 additions and 0 deletions

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<!-- Product Components -->
<ComponentGroup Id="ProductComponents">
<!-- Shortcut -->
<ComponentRef Id="MainAppShortcut" />
</ComponentGroup>
<!-- Installed files -->
<DirectoryRef Id="INSTALLFOLDER" FileSource="..\ConsoleApp1\bin\Debug\netcoreapp2.0\win-$(var.Platform)\publish\">
<!-- Shortcut to main application -->
<Component Id="MainAppShortcut" Guid="{0995664D-AE63-4DD6-B894-708A99611370}">
<Shortcut Id="MainAppShortcut"
Name="!(loc.ProductName_$(var.Platform))"
Target="[INSTALLFOLDER]ConsoleApp1.exe"
Directory="InstallProgramMenuFolder"
WorkingDirectory="INSTALLFOLDER"
Icon="icon.ico"
/>
<!-- Our unique key for this component/shortcut -->
<RegistryValue Id="RegShortcutKey" Root="HKCU" Key="SOFTWARE\$(loc.ProductNameFolder)" Name="Shortcut" Value="1" Type="integer" KeyPath="yes" />
<!--Remove start menu items -->
<RemoveFolder Id="RemoveStartMenu" Directory="InstallProgramMenuFolder" On="uninstall" />
</Component>
</DirectoryRef>
</Fragment>
</Wix>