First test with the Wix Installer, writes a shortcut to the Start Menu and drops the exe into the Program Files (x86) folder.

This commit is contained in:
2017-04-11 15:55:37 -05:00
parent 62a2c0f80e
commit 0b7b14df5f
21 changed files with 24835 additions and 204 deletions
+55
View File
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="SetupProject" Language="1033" Version="1.0.0.0" Manufacturer="Garritt McCune" UpgradeCode="a416a558-d7c0-4f24-8b1e-2d01761ad15f">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<!--Not set by default, EmbedCab="yes" embeds the cabinet file into the installer-->
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="AdvertisingProfitControl" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentRef Id="ApplicationShortcut" />
</Feature>
</Product>
<Fragment>
<!--Install Directory-->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="Advertising Profit Control" />
</Directory>
<!--Define shortcut-->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Advertising Profit Control"/>
</Directory>
<!--App data folder-->
<Directory Id="LocalAppDataFolder">
<Directory Id="AppDataFolder" Name="APC" />
</Directory>
</Directory>
</Fragment>
<!--Define the shortcut-->
<Fragment>
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="*">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="Advertising Profit Control"
Description="Profit Control Recording Software"
Target="[#AdvertsingProfitControl.exe]"
WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Microsoft\AdvertsingProfitControl" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
<Component Id="AdvertisingProfitControl.exe">
<File Source="$(var.AdvertsingProfitControl.TargetPath)" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>