You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<SetPropertyAction="UseTARGETDIR"Id="APPLICATIONFOLDER"Value="[TARGETDIR]"Before="PreserveCurrentInstallationLocation"Sequence="first">TARGETDIR AND NOT APPLICATIONFOLDER</SetProperty>
51
+
52
+
<!--
53
+
Get the current installation location (if any).
54
+
-->
55
+
<PropertyId="CURRENTINSTALLATIONLOCATION">
56
+
<RegistrySearchId="APPLICATIONFOLDER"
57
+
Root="HKLM"
58
+
Key="SOFTWARE\usbipd-win"
59
+
Name="APPLICATIONFOLDER"
60
+
Type="directory"
61
+
/>
62
+
</Property>
63
+
64
+
<!--
65
+
If the product is currently installed and the APPLICATIONFOLDER has not been set yet, then preserve the current installation directory.
66
+
This allows users to:
67
+
a) specify a non-default installation location on first install, which is then preserved when updating using defaults.
68
+
b) specify APPLICATIONFOLDER (or TARGETDIR) when updating, which will change the installation directory.
69
+
-->
70
+
<SetPropertyAction="PreserveCurrentInstallationLocation"Id="APPLICATIONFOLDER"Value="[CURRENTINSTALLATIONLOCATION]"Before="CostInitialize"Sequence="first">CURRENTINSTALLATIONLOCATION AND NOT APPLICATIONFOLDER</SetProperty>
0 commit comments