Skip to content

Commit

Permalink
installer: 64-bit is now installed in Program Files and not Program F…
Browse files Browse the repository at this point in the history
…iles (x86)
  • Loading branch information
billziss-gh committed Dec 1, 2017
1 parent c59c50f commit 0101be9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $(Status)/dist: $(Status)/wix
$(Status)/wix: $(Status)/sshfs-win
mkdir -p $(WixDir)
cp sshfs-win.wxs $(WixDir)/
candle -nologo -arch x86 -pedantic\
candle -nologo -arch $(MyArch) -pedantic\
-dMyProductName=$(MyProductName)\
-dMyCompanyName=$(MyCompanyName)\
-dMyDescription=$(MyDescription)\
Expand All @@ -46,7 +46,7 @@ $(Status)/wix: $(Status)/sshfs-win
heat dir $(shell cygpath -aw $(RootDir))\
-nologo -dr INSTALLDIR -cg C.Main -srd -ke -sreg -gg -sfrag\
-o $(shell cygpath -aw $(WixDir)/root.wxs)
candle -nologo -arch x86 -pedantic\
candle -nologo -arch $(MyArch) -pedantic\
-dMyProductName=$(MyProductName)\
-dMyCompanyName=$(MyCompanyName)\
-dMyDescription=$(MyDescription)\
Expand Down
8 changes: 6 additions & 2 deletions sshfs-win.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
<?if $(var.MyArch) = x64?>
<?define UpgradeCode="$(var.UpgradeCode64)"?>
<?define OtherUpgradeCode="$(var.UpgradeCode32)"?>
<?define ProgramFilesFolder="ProgramFiles64Folder"?>
<?define LauncherRegistryKey="Software\WOW6432Node\WinFsp\Services"?>
<?else?>
<?define UpgradeCode="$(var.UpgradeCode32)"?>
<?define OtherUpgradeCode="$(var.UpgradeCode64)"?>
<?define ProgramFilesFolder="ProgramFilesFolder"?>
<?define LauncherRegistryKey="Software\WinFsp\Services"?>
<?endif?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
Expand Down Expand Up @@ -39,7 +43,7 @@
NOT OTHERINSTALLED
</Condition>

<Property Id="P.LauncherRegistryKey">Software\WinFsp\Services</Property>
<Property Id="P.LauncherRegistryKey">$(var.LauncherRegistryKey)</Property>
<Property Id="P.RegistryKey">Software\$(var.MyProductName)</Property>
<Property Id="INSTALLDIR">
<RegistrySearch
Expand All @@ -51,7 +55,7 @@
</Property>

<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="$(var.ProgramFilesFolder)">
<Directory Id="INSTALLDIR" Name="$(var.MyProductName)" />
</Directory>
</Directory>
Expand Down

0 comments on commit 0101be9

Please sign in to comment.