Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The visual studio installer is not the most user friendly compared to commercial products or even WiX if you are after a good level of control over you installation.</p> <p>When you have a Visual Studio Setup project you have several properties that are involved in the Upgrade process</p> <p>1) The Upgrade Code - this is the link between installers of the same ilk and you shouldn't change this code needlessly</p> <p>2) The Version number - strangely only the 1st 3 numbers (major.minor.build) are used for comparison (this is a common mistake that a lot of developers make)</p> <p>3) The Product Code - As soon as you change the version number VS will prompt you to change this number - do it - if you automate the number change remember to do this as well</p> <p>4) DetectNewerInstalledVersion - set to True</p> <p>5) RemovePreviousVersions - set to True</p> <p>Personally I'd look at using WiX for such a small installation i.e. if you can do it in Visual Studio then the WiX version</p> <p>My installer for OpenCover looks like this</p> <pre><code>&lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" &gt; &lt;Product Id="*" Name="OpenCover" Language="1033" Version="!(bind.FileVersion.OPENCOVER_FRAMEWORK_DLL)" Manufacturer="OpenCover @ GitHub" UpgradeCode="2250c3f1-d9ba-44d8-b4db-25f91fe92dc6"&gt; &lt;Package InstallerVersion="200" Compressed="yes" /&gt; &lt;Upgrade Id="2250c3f1-d9ba-44d8-b4db-25f91fe92dc6"&gt; &lt;UpgradeVersion OnlyDetect="no" Property="PREVIOUSFOUND" Minimum="1.0.0.0" IncludeMinimum="yes" Maximum="!(bind.FileVersion.OPENCOVER_FRAMEWORK_DLL)" IncludeMaximum="no" /&gt; &lt;UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND" Minimum="!(bind.FileVersion.OPENCOVER_FRAMEWORK_DLL)" IncludeMinimum="yes" /&gt; &lt;/Upgrade&gt; &lt;Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /&gt; ... &lt;/Wix&gt; </code></pre> <p>I hope you find the above useful</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload