Skip to content

Commit ff536cb

Browse files
authored
Per-user Installer (#71)
1 parent a294918 commit ff536cb

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

src/installer.wxs

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,39 @@
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
33
<Product Id="*"
44
Language="1033"
5-
Manufacturer="Microsoft Corporation"
5+
Manufacturer="Microsoft"
66
Name="quicreach"
77
UpgradeCode="8395c163-ac9f-4a89-82fc-689fe25f0777"
8-
Version="1.1.0.0">
9-
<Package InstallScope="perMachine" Compressed="yes" />
8+
Version="1.1.1.0">
9+
<Package InstallScope="perUser" Compressed="yes" />
1010
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
1111
<MediaTemplate EmbedCab="yes" />
1212
<Directory Id="TARGETDIR" Name="SourceDir">
13-
<Directory Id="SystemFolder64">
14-
<Component Id="ProductComponent" Guid='4c39c05d-c4bd-44d2-aba6-78abbb0c0d21'>
15-
<File KeyPath="yes" Source="quicreach.exe"></File>
16-
</Component>
13+
<Directory Id="LocalAppDataFolder">
14+
<Directory Id="COMPANYFOLDER" Name="Microsoft">
15+
<Directory Id="INSTALLFOLDER" Name="quicreach">
16+
<Component Id="ProductComponent" Guid='4c39c05d-c4bd-44d2-aba6-78abbb0c0d21'>
17+
<RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]'
18+
Name='InstallFolder'
19+
Value='[INSTALLFOLDER]'
20+
Type='string'
21+
KeyPath='yes' />
22+
<File Source="quicreach.exe" />
23+
<RemoveFolder Id="COMPANYFOLDER" Directory='COMPANYFOLDER' On="uninstall"/>
24+
<RemoveFolder Id="INSTALLFOLDER" On="uninstall"/>
25+
</Component>
26+
</Directory>
27+
</Directory>
1728
</Directory>
1829
</Directory>
30+
<DirectoryRef Id="TARGETDIR">
31+
<Component Id="PathEnvUsr" Guid="df49ef33-1b21-45ca-b0df-5feebf4ceaca">
32+
<Environment Id="EnvPathUsr" Name="PATH" Action="set" Part="last" System="no" Value="[INSTALLFOLDER]" Permanent="no"/>
33+
</Component>
34+
</DirectoryRef>
1935
<Feature Id="quicreach">
2036
<ComponentRef Id="ProductComponent" />
37+
<ComponentRef Id='PathEnvUsr' />
2138
</Feature>
2239
</Product>
2340
</Wix>

0 commit comments

Comments
 (0)