We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

CarlEMac2008
Posts: 17
Joined: Tue Apr 29, 2008 7:12 pm

Bug with dir/filepaths?

Hi All,

I find I need to NOT put a double-quote (DQ) at the end of the following construct or I get an extra DQ at the end - why should this be? I am trying to DQ the whole path since this is getting sent to the commandline and '[installedfeatures_DIR]' has spaces in it.

[#InstallProgrammers.exe] "[installedfeatures_DIR]

TIA

Carl <|};-)>
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Bug with dir/filepaths?

Hi,

Can you please give me more details about this? Where in Advanced Installer are you using this command line?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlEMac2008
Posts: 17
Joined: Tue Apr 29, 2008 7:12 pm

Re: Bug with dir/filepaths?

Hi Cosmin,

Multiple instances - one of which is custom action in "InstallExecuteSequence->Install", following text in "Full Path", action-type = "EXE with Working Directory and path given by a Formatted"

[#InstallProgrammers.exe] "[APPDIR]

TIA

Carl <|};-)>
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Bug with dir/filepaths?

Hi,

I cannot reproduce this behavior on my test machine. Please note that the command line of a custom action is handled by Windows Installer and it is interpreted by the executable which receives it. Normally, a path in a command line must be surrounded by quotes. However, depending on the EXE which interprets the command line, these quotes can be absent.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlEMac2008
Posts: 17
Joined: Tue Apr 29, 2008 7:12 pm

Re: Bug with dir/filepaths?

Hi All,

This problem arose with a C# app - I think that I've found the source of the apparent error.

The commandline parser used with C# apps seems to interpret \" as an escaped character; so:

"c:\what ever\" would be not be passed to the applications as
c:\what ever\
but
c:\what ever\"

Extra processing needs to be done in the app to strip these erroneous DQ's.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Bug with dir/filepaths?

Hi,

Note that this can be avoided by adding a space right before the quote which remains. Therefore, the command line parameter should be "c:\what ever\ ", not "c:\what ever\".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”