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: HOW TO escape double quotes /v" MSI_command_line_options"
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
Dec 17, 2012
06:25 PM
HOW TO escape double quotes /v" MSI_command_line_options"
Hi,
If my public property value contains double quotes ["C:\Program Files\My folder"], how should I handle it when passing to MSI package?
- setup.exe /v"MYFOLDER=\"C:\Program Files\My folder\""
This results value of MYFODLER to be C:\Program Files\My folder
But I need the value to be "C:\Program Files\My folder" (with quotes)
I've also tried the following:
- setup.exe /v"MYFOLDER=\"\"C:\Program Files\My folder\"\""
This results invalid command. I think it makes MYFOLDER to be blank value and the rest C:\Program Files\My folder\"\"" is not valid.
Thanks,
If my public property value contains double quotes ["C:\Program Files\My folder"], how should I handle it when passing to MSI package?
- setup.exe /v"MYFOLDER=\"C:\Program Files\My folder\""
This results value of MYFODLER to be C:\Program Files\My folder
But I need the value to be "C:\Program Files\My folder" (with quotes)
I've also tried the following:
- setup.exe /v"MYFOLDER=\"\"C:\Program Files\My folder\"\""
This results invalid command. I think it makes MYFOLDER to be blank value and the rest C:\Program Files\My folder\"\"" is not valid.
Thanks,
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 18, 2012
09:49 AM
Did you try using pairs of quotes? For example:
setup.exe /v"MYFOLDER=\"""C:\Program Files\My folder\""""
From the Windows Installer help:
setup.exe /v"MYFOLDER=\"""C:\Program Files\My folder\""""
From the Windows Installer help:
For sections of text set apart by literal quotation marks, enclose the section with a second pair of quotation marks.
msiexec /i A:\Example.msi PROPERTY="Embedded ""Quotes"" White Space"
The following example shows a complicated command line.
msiexec /i testdb.msi INSTALLLEVEL=3 /l* msi.log COMPANYNAME="Acme ""Widgets"" and ""Gizmos."""