This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Command Line Path Variable With Spaces
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 19, 2014
12:03 PM
Command Line Path Variable With Spaces
I am trying to execute InstallShield from the command line (ISCmdBld.exe) while setting the value of a path variable to a value that contains a space. If I omit all spaces, InstallShield will properly assign the supplied value, but if the value includes spaces, it will leave the value unassigned. Examples:
The following works (note that "VisualStudio" is all one word when assigning value to MY_PATH):
"C:\Program Files (x86)\InstallShield\2013\System\IsCmdBld.exe" -p "C:\Projects\Visual Studio\MyProject\Installer.ism" -r "Release name" -a "Default Configuration" -f MyFlag -e y -l MY_PATH= "C:\Projects\VisualStudio\MyProject\"
The same thing with a space does not work:
"C:\Program Files (x86)\InstallShield\2013\System\IsCmdBld.exe" -p "C:\Projects\Visual Studio\MyProject\Installer.ism" -r "Release name" -a "Default Configuration" -f MyFlag -e y -l MY_PATH= "C:\Projects\Visual Studio\MyProject\"
How can I assign path variables with spaces?
The following works (note that "VisualStudio" is all one word when assigning value to MY_PATH):
"C:\Program Files (x86)\InstallShield\2013\System\IsCmdBld.exe" -p "C:\Projects\Visual Studio\MyProject\Installer.ism" -r "Release name" -a "Default Configuration" -f MyFlag -e y -l MY_PATH= "C:\Projects\VisualStudio\MyProject\"
The same thing with a space does not work:
"C:\Program Files (x86)\InstallShield\2013\System\IsCmdBld.exe" -p "C:\Projects\Visual Studio\MyProject\Installer.ism" -r "Release name" -a "Default Configuration" -f MyFlag -e y -l MY_PATH= "C:\Projects\Visual Studio\MyProject\"
How can I assign path variables with spaces?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 19, 2014
02:59 PM
It's not reproducible on my end. I create a brand new Basic MSI project and add a static file with a custom path variable. I am able to build the project from IsCmdBld.exe successfully by overriding the custom path variable with the exact same path that you use as "C:\Projects\Visual Studio\MyProject\" and "C:\Projects\VisualStudio\MyProject\".
You might want to have a quick test by creating a new project with a few files included, and see if you can still reproduce in your development environment.
You might want to have a quick test by creating a new project with a few files included, and see if you can still reproduce in your development environment.