Skip to content

Commit

Permalink
Fixed installer not being able to perform upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
CodesDoWork committed Jan 3, 2022
1 parent 5b294c2 commit 4a24742
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Installer/Installer.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<ItemGroup>
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
<Content Include="makeRelease.bat" />
</ItemGroup>
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
Expand Down
4 changes: 2 additions & 2 deletions Installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define releaseFolder="..\Releases\1.1.0\MediaDownloader\bin" ?>
<?define sourceFolder="..\MediaDownloader" ?>
<Product Id="EEEFD72E-4451-4AFA-8994-61A99EA63288" Name="Media Downloader" Language="1033" Version="1.1.0" Manufacturer="CodesDoWork" UpgradeCode="DF9618DD-729E-427F-BA34-D99EAA20D02C">
<Product Id="*" Name="Media Downloader" Language="1033" Version="1.1.1" Manufacturer="CodesDoWork" UpgradeCode="DF9618DD-729E-427F-BA34-D99EAA20D02C">
<Package Languages="1033" Manufacturer="CodesDoWork" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<Media Id="1" Cabinet="md_installer.cab" EmbedCab="yes" />

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MajorUpgrade Schedule="afterInstallExecute" DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

<Icon Id="icon.ico" SourceFile="$(var.sourceFolder)\Resources\icon.ico" />
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
Expand Down
2 changes: 2 additions & 0 deletions MediaDownloader/MediaDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include=".releaseIgnore" />
<None Include="db\db.db">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="dl\dl.7z" />
<None Include="makeRelease.bat" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand Down
4 changes: 2 additions & 2 deletions MediaDownloader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

[assembly: AssemblyVersion("1.1.0")]
[assembly: AssemblyFileVersion("1.1.0")]
[assembly: AssemblyVersion("1.1.1")]
[assembly: AssemblyFileVersion("1.1.1")]
2 changes: 1 addition & 1 deletion MediaDownloader/makeRelease.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ del %SCRIPT%
echo:

:: create portable release
echo Creating archive for protable release...
echo Creating archive for portable release...
"C:\Program Files\7-Zip\7z.exe" a ..\Releases\%ver%\MediaDownloader.zip ..\Releases\%ver%\MediaDownloader\* -r

0 comments on commit 4a24742

Please sign in to comment.