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
- :
- Problem passing string with a semicolon to chained msi
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
‎Nov 09, 2010
01:24 PM
Problem passing string with a semicolon to chained msi
Hi
I have a Installscript msi project that takes parameters from a dialog and passes it to a chained msi file.
When I pass a string with a semicolon to the chained msi, it always turns the semicolon into a space when it's passed. For example when I pass the string "Data Source=MYCOMPUTER;Initial Catalog=NewDatabase" it appears as "Data Source=MYCOMPUTER Initial Catalog=NewDatabase" to the chained msi. When I pass the string via command line, it appears correctly. Is there some sort of an escape sequence that I need to substitue for the semicolon?
Thanks
I have a Installscript msi project that takes parameters from a dialog and passes it to a chained msi file.
When I pass a string with a semicolon to the chained msi, it always turns the semicolon into a space when it's passed. For example when I pass the string "Data Source=MYCOMPUTER;Initial Catalog=NewDatabase" it appears as "Data Source=MYCOMPUTER Initial Catalog=NewDatabase" to the chained msi. When I pass the string via command line, it appears correctly. Is there some sort of an escape sequence that I need to substitue for the semicolon?
Thanks
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2010
10:47 AM
Does it work properly if you pass DataSource="MYCOMPUTER;Initial Catalog=NewDatabase" instead?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2010
10:37 AM
I'm getting the same problem - tried single/double quotes on the DataSource string, escaping the quotes on the install properties but it still leaves semicolons as blank spaces after passing the arguments to the msi.
It works fine from the command line as the OP said.
It works fine from the command line as the OP said.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 23, 2011
02:15 AM
Having same problem.
Does anyone have a fix for this issue?
One way to do it could be to make a installscript in the called msi to replace all spaces with a ;
It will work in my case but of course only if there are no spaces that should be preserved.
Best regards,
Jens
Does anyone have a fix for this issue?
One way to do it could be to make a installscript in the called msi to replace all spaces with a ;
It will work in my case but of course only if there are no spaces that should be preserved.
Best regards,
Jens
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)