Get ShortPath (PROGRA~2) from Folder #8789
Unanswered
AlexanderWank
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I have the following Folder.wxs:
... <StandardDirectory Id="ProgramFilesFolder"> <Directory Id="TestFolder" Name="Test"/> </StandardDirectory> ...
This folder will refer to "C:\Program Files (x86)" on my system.
I want to use the folder name later as follows:
... <Environment Action="set" System="yes" Name="TEST_PATH" Value="[TestFolder]"/> ...
My problem is that i need a path without spaces. This is possible by using the short path:
C:\PROGRA~2\TEST
How can i get the short path of the folder ? I tried
[!TestFolder]
... but this not working ...Any ideas on how to fetch the short path without hardcoding it into the value property of the environment var.
Thanks a lot!
Best Regards,
~A
Beta Was this translation helpful? Give feedback.
All reactions