Windows installer work

This commit is contained in:
Mike Dilger 2023-02-12 11:00:41 +13:00
parent a32ca7733a
commit eb70f271f0
4 changed files with 59 additions and 0 deletions

4
packaging/windows/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.exe
*.wixpdb
*.msi
*.png

View File

@ -0,0 +1,22 @@
Prerequisite for packaging:
* You need Wix 4 tools installed, probably with DOTNET installed first.
* Copy the gossip.exe here (release build)
* Copy the gossip.png here
* For new versions of gossup, update gossip.wxs
* UPDATE the Package ProductCode GUID to a new one
* KEEP the UpgradeCode GUID (it should never change, it ties different versions together)
* Change a component GUID ONLY IF the absolute path changes.
Packaging:
$ wix build gossip.wxs
To install the package, either double-click the MSI, or
$ msiexec gossip.msi
To remove the package from your windows computer:
$ msiexec /x gossip.msi

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -0,0 +1,33 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="Gossip 0.3.91" Manufacturer="Gossip" UpgradeCode="f1794f78-cfb1-4056-a1f7-da48b956456c"
Language="1033" Codepage="1252" Version="0.3.91" InstallerVersion="200" ProductCode="0d138f43-34c8-4d9d-90e0-9086fab82e5a">
<MediaTemplate EmbedCab="yes" />
<SummaryInformation Keywords="Installer" Description="Gossip 0.3.91 Installer" Manufacturer="Gossip" />
<StandardDirectory Id="ProgramFilesFolder">
<Directory Id="Gossip" Name="Gossip">
<Directory Id="INSTALLDIR" Name="Gossip 0.3.91">
<Component Id="MainExecutable" Guid="92cef233-7b27-4b13-858e-0a519b1e8610">
<File Id="GossipEXE" Name="gossip.exe" Source="gossip.exe" KeyPath="yes">
<Shortcut Id="startmenuShortcut" Directory="ProgramMenuDir" Name="Gossip 0.3.91" WorkingDirectory="INSTALLDIR" Icon="gossip.ico" IconIndex="0" Advertise="yes" />
<Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="Gossip 0.3.91" WorkingDirectory="INSTALLDIR" Icon="gossip.ico" IconIndex="0" Advertise="yes" />
</File>
</Component>
</Directory>
</Directory>
</StandardDirectory>
<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuDir" Name="Gossip 0.3.91">
<Component Id="ProgramMenuDir" Guid="12313d74-c714-4266-9a64-0179721cb899">
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\Gossip\gossip" Type="string" Value="" KeyPath="yes" />
</Component>
</Directory>
</StandardDirectory>
<StandardDirectory Id="DesktopFolder" />
<Feature Id="Complete" Level="1">
<ComponentRef Id="MainExecutable" />
<ComponentRef Id="ProgramMenuDir" />
</Feature>
<Icon Id="gossip.ico" SourceFile="gossip.ico" />
</Package>
</Wix>