mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
installer: remember installation directory in registry
This commit is contained in:
parent
8ae2bb3bfc
commit
9c11ca5bda
@ -15,6 +15,15 @@
|
|||||||
<MajorUpgrade
|
<MajorUpgrade
|
||||||
DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
||||||
<Media Id="1" Cabinet="WinFsp.cab" EmbedCab="yes" />
|
<Media Id="1" Cabinet="WinFsp.cab" EmbedCab="yes" />
|
||||||
|
<Property Id="P.RegistryKey">Software\$(var.MyProductName)</Property>
|
||||||
|
<Property Id="INSTALLDIR">
|
||||||
|
<RegistrySearch
|
||||||
|
Id="R.INSTALLDIR"
|
||||||
|
Root="HKLM"
|
||||||
|
Key="[P.RegistryKey]"
|
||||||
|
Name="InstallDir"
|
||||||
|
Type="raw" />
|
||||||
|
</Property>
|
||||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||||
<Directory Id="ProgramFilesFolder">
|
<Directory Id="ProgramFilesFolder">
|
||||||
<Directory Id="INSTALLDIR" Name="WinFsp">
|
<Directory Id="INSTALLDIR" Name="WinFsp">
|
||||||
@ -25,6 +34,16 @@
|
|||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
<DirectoryRef Id="INSTALLDIR">
|
||||||
|
<Component Id="C.INSTALLDIR">
|
||||||
|
<RegistryValue
|
||||||
|
Root="HKLM"
|
||||||
|
Key="[P.RegistryKey]"
|
||||||
|
Name="InstallDir"
|
||||||
|
Type="string"
|
||||||
|
Value="[INSTALLDIR]" />
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
<DirectoryRef Id="BINDIR" FileSource="..\build\$(var.Configuration)">
|
<DirectoryRef Id="BINDIR" FileSource="..\build\$(var.Configuration)">
|
||||||
<Component Id="C.winfsp_x64.sys">
|
<Component Id="C.winfsp_x64.sys">
|
||||||
<File Name="winfsp-x64.sys" KeyPath="yes" />
|
<File Name="winfsp-x64.sys" KeyPath="yes" />
|
||||||
@ -107,12 +126,7 @@
|
|||||||
AllowAdvertise="no"
|
AllowAdvertise="no"
|
||||||
InstallDefault="local"
|
InstallDefault="local"
|
||||||
Absent="disallow">
|
Absent="disallow">
|
||||||
<!-- dummy component to eliminate "installed to run from network" option -->
|
<ComponentRef Id="C.INSTALLDIR" />
|
||||||
<Component
|
|
||||||
Id="C.Dummy"
|
|
||||||
Guid="{10EF63D3-A790-475C-B978-A22A6A16FE00}"
|
|
||||||
Directory="INSTALLDIR"
|
|
||||||
KeyPath="yes" />
|
|
||||||
<Feature
|
<Feature
|
||||||
Id="F.User"
|
Id="F.User"
|
||||||
Level="1"
|
Level="1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user