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
- :
- Re: Command Line installs for Windows 8
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 04, 2012
09:12 AM
Command Line installs for Windows 8
I am testing my product to ensure it installs on Windows 8 correctly, and I am running into a strange issue.
When doing a command line install for other windows products, the following command works perfectly:
setup.exe /v"INSTALLDIR=\"C:/program files (x86)/ProductName\" /lv log1.txt"
However, in Windows 8 power shell, I get the following error:
The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
Has windows 8 changed msiexec? How does one quote paths to INSTALLDIR with Windows 8?
When doing a command line install for other windows products, the following command works perfectly:
setup.exe /v"INSTALLDIR=\"C:/program files (x86)/ProductName\" /lv log1.txt"
However, in Windows 8 power shell, I get the following error:
The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
Has windows 8 changed msiexec? How does one quote paths to INSTALLDIR with Windows 8?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2012
03:04 PM
I expect that PowerShell has different quoting mechanisms for command lines. Have you tried running this in cmd.exe instead?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2012
03:22 PM
CMD.exe works normally.
My concern is that my users will want to do the install via the powershell. Seems to me the kind of user that wants to do the command line install functionality would want to use the power shell; And it seems really strange that quoted paths to MSI don't work.
My concern is that my users will want to do the install via the powershell. Seems to me the kind of user that wants to do the command line install functionality would want to use the power shell; And it seems really strange that quoted paths to MSI don't work.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 06, 2012
12:03 PM
As far as I know, in PowerShell the escape character is ` instead of \ so this might work:
setup.exe /v"INSTALLDIR=`"C:\program files (x86)\ProductName`" /lv log1.txt"
Note that I also changed the forward slashes in the path to backslashes.
setup.exe /v"INSTALLDIR=`"C:\program files (x86)\ProductName`" /lv log1.txt"
Note that I also changed the forward slashes in the path to backslashes.
Stefan Krueger
InstallSite.org
InstallSite.org