Skip to content
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 Installation] - Path update variable is incorrect #243

Closed
bozzelliandrea opened this issue May 11, 2022 · 6 comments
Closed

[Windows Installation] - Path update variable is incorrect #243

bozzelliandrea opened this issue May 11, 2022 · 6 comments

Comments

@bozzelliandrea
Copy link

During installation, the env variable path is updated with "c:".
The correct case for Windows is C with uppercase.

@bozzelliandrea bozzelliandrea changed the title [ Windows Installation ] - Path update variable is incorrect [Windows Installation] - Path update variable is incorrect May 11, 2022
@jasongin
Copy link
Owner

Are you installing on windows using the MSI package? If so, the value added to PATH comes from the MIS's INSTALLDIR property. So if anything the bug is from Windows Installer.

If using the nvs install command, the value added to PATH is derived from the Node.js __dirname keyword.

Either way, I think this is not a bug in nvs. But it doesn't really matter anyway.

@bozzelliandrea
Copy link
Author

bozzelliandrea commented May 11, 2022

@jasongin yes I'm using the .msi installer, probably it's not a bug of nvs, but can we manage it? I think in the case of Windows (I don't know with other OS, but probably keeps the same behaviour) we need to force the partition character in uppercase.
If you agree i can make the fix.

@jasongin
Copy link
Owner

I think the MSI INSTALLDIR property comes from some system environment variables. Can you check whether you have any user or system env variables with lowercase c:\ ?

I don't know how you'd override it in the installer, since there is no code, it's just declarative.

@bozzelliandrea
Copy link
Author

i have checked the env variables, but nothing strange and nothing in lowercase, wich version of WiX are you using for the setup wizard? (just for read the correct docs).
Proably another step can be created with the input field for the path, so the user can modify and check if the installation path is correct.
it's just a workaround but this willl work in every OS.

@jasongin
Copy link
Owner

jasongin commented May 12, 2022

I can't reproduce this issue. When I install on Windows with the MSI, the value added to path is C:\Users\<username>\AppData\Local\nvs\, with uppercase C.

I still don't understand why it's important. But if you want, I think the next step to diagnose this would be to look at the MSI verbose log:

msiexec /i nvs.msi /L*v "install.log"

Then look for log messages about how INSTALLDIR or LocalAppDataFolder is set. Also, specifically check the LOCALAPPDATA env variable.

@bozzelliandrea
Copy link
Author

bozzelliandrea commented May 12, 2022

I close the issue, I have tried on another machine and it works fine, it seems more like a problem for my user:
Btw thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants