Slash in parameter value - Advanced Installer Community
velja
Posts: 45
Joined: Tue May 14, 2013 12:01 pm

Slash in parameter value

I need to do something like:

Setup.exe /qb UpdatePath="http://somesite/dir/config.xml" Hidden=1

The problem is that slash character triggers parameter and installer displays help window since it doesn't recognize that parameter.

I tried escaping all slashes with backslashes and installer runs but sends backslashes along with the string to custom action. I could re-factor custom action to remove backslashes but it would be little too much along with the fact that we would have to explain backslash escaping in documentation.

Previous version of our installer I built using Visual studio setup project was accepting this.

Is there a way around?
velja
Posts: 45
Joined: Tue May 14, 2013 12:01 pm

Re: Slash in parameter value

I guess I duplicated this topic:
http://www.advancedinstaller.com/forums ... =2&t=24073

Is this fixed. Should I check for update?
velja
Posts: 45
Joined: Tue May 14, 2013 12:01 pm

Re: Slash in parameter value

I updated to last version and problem persists. Is there any workaround? Putting | before double slash, as suggested in topic I linked doesn't work.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Slash in parameter value

Hello Velja,
I guess I duplicated this topic:
viewtopic.php?f=2&t=24073

Is this fixed. Should I check for update?
Indeed, this is caused by an Advanced Installer limitation. A fix for this will be included in our next version (10.2) of Advanced Installer which should be released soon. Until then, the workaround is to put | before //.
I updated to last version and problem persists. Is there any workaround? Putting | before double slash, as suggested in topic I linked doesn't work.
I've tested your scenario, but I cannot reproduce the behavior. When a command line like this is used:

Code: Select all

Setup.exe /qb UpdatePath="http:|//somesite/dir/config.xml" Hidden=1
the installation start as expected. Can you please please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Also, can you tell us what error do you get when use a command line like this?

Code: Select all

Setup.exe /qb UpdatePath="http:|//somesite/dir/config.xml" Hidden=1
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
velja
Posts: 45
Joined: Tue May 14, 2013 12:01 pm

Re: Slash in parameter value

Using | as a workaround worked. I know it sounds weird but when I tried it first time PROPERTY VALUE was only "http:" i.e. the part after | was cut off.
Maybe I didn't put quotes or I made other mistake.

I will inspect further as soon as I update clients that are waiting for working solution.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Slash in parameter value

I'm glad you got this working.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
photomoose
Posts: 1
Joined: Wed Jul 30, 2014 11:27 am

Re: Slash in parameter value

Hello,

We've been experiencing a similar problem. If we execute an installer with the following parameters:

Code: Select all

Setup.exe /qb URL="http://somesite.com
...then the URL appears as expected.

However, if the server name of the URL begins with what I assume is a command line switch character, then the character and slash is removed. For example, the following command:

Code: Select all

Setup.exe /qb URL="http://isomesite.com
...results in the URL being "http:/somesite.com" (notice the missing slash and "i"). We also see this in the log file:

Code: Select all

MSI (s) (50:24) [11:32:25:072]: Command Line: URL=http:/somesite AI_SETUPEXEPATH=C:\Users\tom.davis\Desktop\Setup.exe SETUPEXEDIR=C:\Users\tom.davis\Desktop\ EXE_CMD_LINE=/exenoupdates  /exelang 0 /noprereqs  /qb /l*v test.log URL="http://isomesite"  CURRENTDIRECTORY=C:\Users\tom.davis\Desktop\IVR CLIENTUILEVEL=2 CLIENTPROCESSID=4732 
We've also tried using the pipe workaround (http:|//), but this doesn't work either.

We'd be grateful if you could advise a solution on this.

Thanks,

Tom
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Slash in parameter value

Hello Tom and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I've tested the scenario and indeed I can replicate the behavior. This seems to be an Advanced Installer issue, thank you for bringing it to our attention. A fix will be available in a future version of Advanced Installer. We will notify you when the fix will be out.

Unfortunately, we are not aware of any workaround for the moment. We will let you know as soon as a fix or workaround will be available.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Slash in parameter value

Hello Tom,

As a follow up on this issue, we found a workaround until this will be fixed. You can write your URL property value by using the www after slashes. For example you can use a command line like this:

Code: Select all

Setup.exe /qb URL="http://www.isomesite.com/"
in order to set your URL property.

If you have any question let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Slash in parameter value

Hello Tom,

This was fixed in version 11.6 of Advanced Installer released on October 23rd, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”