Ivan The Coder
Posts: 6
Joined: Mon Jun 16, 2014 10:47 am

Automatic wrapping parameter with double quotes

Hello!
I have a little suggestion that would make a life with Advanced Installer a bit easier.

When user adds a parameter (file, property, folder, etc.) to a Command Line in Custom Action, automatic wrapping by double quotes should be done if parameter's value contain spaces.
For example:
Let final path to my_file.txt be C:\ProgramData\App with space\my_file.txt. Using [#my_file.txt] will result in passing 3 parameters instead of one, because "App with space" will be splitted in 2 places where spaces are. Instead, if there are any spaces -- wrapping should be used, resulting in "[#my_file.txt]"

After automatic wrrapping occured, small pop-up balloon or tip under Command Line edit box, or something else can be shown with text, for example:
"One or more parameters contain spaces, they were wrapped by double quotes to prevent splitting. In case you are rare masochist, please, remove quotes manually!"

Best regards,
Ivan The Coder
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Automatic wrapping parameter with double quotes

Hello Ivan,

Thank you for your suggestion. I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer.

If there is anything else I can help you with, please let me know.

All the best,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”