-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows installer always installs to C:/Program Files #6057
Comments
I can confirm there is a bug (I consider it as such) at least on Windows 7. Windows 10 works fine though. @mscdex @Fishrock123 this would need re-labeling. |
@balane can you run |
What exactly are you looking for from the msinfo32 result? |
Build number of Windows, Architecture etc. Before I go debugging I wanted to have as much information as possible. Minus security relevant stuff of course... |
OS Name Microsoft Windows 7 Enterprise |
cc @joaocgreis , our MSI expert. |
I could not reproduce this. I tried to create the registry values that the installer reads ( @balane can you try to create a installation log? Use:
|
Hmm. I couldn't reproduce (again) neither, even though it was reproducable earlier. It's likely related to Windows being under whatever circumstances. Just installing again then solves it though. I would vote for closing this until there is some logged reproduction. @joaocgreis |
From a quick glance through the log file looks like it's saying that it correctly installed to C:/apps/nodejs but it absolutely did not. |
The directory change is happening on the client side...
...but never makes it to the server side...
This results in the server-side using the default value...
It's what happens on the server side that counts. The problem is that INSTALLDIR needs to be added to the SecureCustomProperties MSI property. Something like this: diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs
index eed53e4..dcd6b90 100755
--- a/tools/msvs/msi/product.wxs
+++ b/tools/msvs/msi/product.wxs
@@ -45,6 +45,7 @@
<Property Id="ARPPRODUCTICON" Value="NodeIcon"/>
<Property Id="ApplicationFolderName" Value="nodejs"/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
+ <Property Id="SecureCustomProperties" Value="INSTALLDIR"/>
<Property Id="INSTALLDIR">
<RegistrySearch Id="InstallPathRegistry" (To answer the next logical question... Sorry, NO, I can't submit a PR for this right now.) |
@joaocgreis does @mcnameej's patch seem reasonable (does to me)? I can make the PR and give it a try, but would need someone to review. |
With the tips from above, I could finally reproduce this. On Windows 7 64-bit, node 4.4.2 64-bit:
The patch above seems to be the way to fix this (thanks @mcnameej!). @eljefedelrodeodeljefe if you can make a PR, that'd be great! I'll review and can test in Windows 7. There are two other things I'd investigate here. From the WiX documentation, there is a |
Allows INSTALLDIR to be passed to the server MSIExec process during installation. Fixes: nodejs#6057
I prefer to install all of my dev apps in one directory (C:/apps) but when using the Node.js Windows installer it always gets installed in C:/Program Files regardless of what I put in the installer.
64-bit_
The text was updated successfully, but these errors were encountered: