Don't warn about REINSTALLMODE

This commit is contained in:
Eric Fontana
2014-08-12 14:07:09 -04:00
parent 4f99e21ea7
commit 8ebc4f894f
2 changed files with 15 additions and 3 deletions

View File

@@ -5,9 +5,20 @@
<Property Id="CONFIGFILE">default.json</Property>
<Property Id="LOGDIR">c:\logs</Property>
<Property Id="LOGLEVEL">Info</Property>
<!--
We need to be able to uninstall a newer version from an older version.
The default reinstallmode is "omus", of which the 'o' means "reinstall if missing or older"
The 'd' means "reinstall if different". This ensures that, at the individual component level, rollbacks work correctly.
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa371182(v=vs.85).aspx
-->
<Property Id="REINSTALLMODE" Value="dmus" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />
<Feature Id="ProductFeature" Title="TimberWinR" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
@@ -48,7 +59,7 @@
Impersonate="yes"
Execute="deferred"
ExeCommand='"[INSTALLFOLDER]TimberWinR.ServiceHost.exe" install --autostart -configFile "[CONFIGFILE]" -logDir "[LOGDIR]" -logLevel "[LOGLEVEL]"'
Return='ignore'>
Return='check'>
</CustomAction>
<CustomAction Id="ManagedInstall2"
@@ -56,7 +67,7 @@
Impersonate="yes"
Execute="deferred"
ExeCommand='"[INSTALLFOLDER]TimberWinR.ServiceHost.exe" start'
Return='ignore'>
Return='check'>
</CustomAction>
<CustomAction Id="ManagedUnInstall"
@@ -64,7 +75,7 @@
Impersonate="yes"
Execute="deferred"
ExeCommand='"[INSTALLFOLDER]TimberWinR.ServiceHost.exe" uninstall'
Return='ignore'>
Return='check'>
</CustomAction>

View File

@@ -28,6 +28,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<SuppressIces>ICE40</SuppressIces>
</PropertyGroup>
<ItemGroup>
<Compile Include="Product.wxs" />