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

process.env.PROGRAMFILES is error #277

Open
absir1949 opened this issue Aug 17, 2022 · 0 comments
Open

process.env.PROGRAMFILES is error #277

absir1949 opened this issue Aug 17, 2022 · 0 comments

Comments

@absir1949
Copy link

absir1949 commented Aug 17, 2022

hello. this is a error

chrome-finder.js -> win32()

 const prefixes = [
        process.env.LOCALAPPDATA, process.env.PROGRAMFILES, process.env['PROGRAMFILES(X86)']
    ].filter(Boolean);

when my exe is 32bit run on 64 bit windows. process.env.PROGRAMFILES is all C:\Program Files (x86)'
so can not find the C:\Program Files\
so i print the process.env:

 ProgramFiles: 'C:\\Program Files (x86)',
 'ProgramFiles(x86)': 'C:\\Program Files (x86)',
 ProgramW6432: 'C:\\Program Files',

i try add ProgramW6432 will no error

    const prefixes = [
        process.env.LOCALAPPDATA, process.env.PROGRAMFILES, process.env['PROGRAMFILES(X86)'],process.env.ProgramW6432
    ].filter(Boolean);

the more description can see:https://stackoverflow.com/questions/9594066/how-to-get-program-files-x86-env-variable

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

1 participant