-
Notifications
You must be signed in to change notification settings - Fork 0
Adding SSUP to Your Setup Project
Carson Shook edited this page Aug 11, 2018
·
4 revisions
In order to add StupidSimpleUpdater to your application, you will need to ensure that it is properly configured in your setup project. How you do this will vary based on what toolset you are using to create your installers. Below is an example using a WiX 3 Setup project. If you have successfully added SSUP to a different setup system, please let me know by opening a new issue.
In general, you will need to include the output of the merge module and your SSUPConfig.xml file in the same directory as the executable who's File Version you want to check against.
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="SampleApplication" Language="1033" Version="1.0.0.0" Manufacturer="Carson Shook" UpgradeCode="13caac90-444e-4fe1-9055-b6a595fa1c26">
<Package InstallerVersion="301" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="SampleApplication" Level="1">
<Feature Id="SSUP" Title="ApplicationUpdater" AllowAdvertise="no" Display="hidden" Level="1">
<MergeRef Id="SSUP"/>
<ComponentRef Id="SSUPConfig"/>
</Feature>
<ComponentRef Id="SampleApplication.exe"/>
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="SampleApplication" />
</Directory>
</Directory>
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Merge Id="SSUP" SourceFile="SSUP_merge_x86.msm" DiskId="1" Language="0"/>
<Component Id="SSUPConfig" Guid="5216EBD2-548A-4C64-9125-466EBFBBBDAD">
<File Id="SSUPConfig" Source="SSUPConfig.xml" KeyPath="yes"/>
</Component>
<Component Id="SampleApplication.exe" Guid="AD326220-E995-4BEB-AC8E-26248B0A5782">
<File Id="SampleApplication.exe" Source="$(var.SampleApplication.TargetPath)" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
</Product>
</Wix>