Skip to content

Commit

Permalink
Per-user Installer (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Nov 3, 2022
1 parent a294918 commit ff536cb
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions src/installer.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,39 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Language="1033"
Manufacturer="Microsoft Corporation"
Manufacturer="Microsoft"
Name="quicreach"
UpgradeCode="8395c163-ac9f-4a89-82fc-689fe25f0777"
Version="1.1.0.0">
<Package InstallScope="perMachine" Compressed="yes" />
Version="1.1.1.0">
<Package InstallScope="perUser" Compressed="yes" />
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
<MediaTemplate EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="SystemFolder64">
<Component Id="ProductComponent" Guid='4c39c05d-c4bd-44d2-aba6-78abbb0c0d21'>
<File KeyPath="yes" Source="quicreach.exe"></File>
</Component>
<Directory Id="LocalAppDataFolder">
<Directory Id="COMPANYFOLDER" Name="Microsoft">
<Directory Id="INSTALLFOLDER" Name="quicreach">
<Component Id="ProductComponent" Guid='4c39c05d-c4bd-44d2-aba6-78abbb0c0d21'>
<RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]'
Name='InstallFolder'
Value='[INSTALLFOLDER]'
Type='string'
KeyPath='yes' />
<File Source="quicreach.exe" />
<RemoveFolder Id="COMPANYFOLDER" Directory='COMPANYFOLDER' On="uninstall"/>
<RemoveFolder Id="INSTALLFOLDER" On="uninstall"/>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="TARGETDIR">
<Component Id="PathEnvUsr" Guid="df49ef33-1b21-45ca-b0df-5feebf4ceaca">
<Environment Id="EnvPathUsr" Name="PATH" Action="set" Part="last" System="no" Value="[INSTALLFOLDER]" Permanent="no"/>
</Component>
</DirectoryRef>
<Feature Id="quicreach">
<ComponentRef Id="ProductComponent" />
<ComponentRef Id='PathEnvUsr' />
</Feature>
</Product>
</Wix>

0 comments on commit ff536cb

Please sign in to comment.