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

Add support for %ProgramFiles(x86)% variable #2402

Open
2 tasks
isaak654 opened this issue Oct 26, 2022 · 4 comments
Open
2 tasks

Add support for %ProgramFiles(x86)% variable #2402

isaak654 opened this issue Oct 26, 2022 · 4 comments
Labels
Feature request New feature or idea wontadd This will not be added

Comments

@isaak654
Copy link
Collaborator

isaak654 commented Oct 26, 2022

Is your feature request related to a problem or use case?

As seen in #2371 or in the ExpandableVariables documentation, there is no support for the %ProgramFiles(x86)% variable.

If there is %ProgramFiles% variable support, then why not introducing %ProgramFiles(x86)% ?

Workaround

It consists to set %SystemDrive%\Program Files (x86) when needed in Sandboxie.ini.

Describe the solution you'd like

@isaak654 isaak654 added the Feature request New feature or idea label Oct 26, 2022
@DavidXanatos
Copy link
Member

This surely makes things more elegant but realistically "%ProgramFiles(x86)%" will never evaluate to somethign different then "C:\Program Files (x86)" the ability to have different paths here is a vestigial feature from when windows a) could be installed to a partition other then C: and b) had localized paths such that different languages had in fact different program file paths.

@isaak654
Copy link
Collaborator Author

isaak654 commented Oct 26, 2022

If that's the case, how about setting %SystemDrive%\\Program Files (x86) in the following line?

L"%ProgramFiles% (x86)\\*",

@DavidXanatos
Copy link
Member

I can think of a fringe edge case where this would fail, 64 bit windows xp has still localized paths so there this would be wrong, but "%ProgramFiles% (x86)" would work as iirc the " (x86)" appendix was not localized only the program files part

@ghost
Copy link

ghost commented Mar 13, 2023

|Time| |Message|

21:04:22.685 SBIE1412 In text: [sandboxname] WriteFilePath=%ProgramFiles(x86)%\Common Files\softwarename
21:04:22.685 executablename.exe (21324): SBIE1203 Cannot build path list (error in WriteFilePath)

@DavidXanatos DavidXanatos added the wontadd This will not be added label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request New feature or idea wontadd This will not be added
Projects
None yet
Development

No branches or pull requests

2 participants