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!

akrock
Posts: 3
Joined: Mon Oct 23, 2006 10:57 am

Windows cannot find 'C:\Program'

I get the former message when my installer tries to run a .vbs file thats in a path with spaces and &s . How can I fix this?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Enclose in quotes the path that contains spaces.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
akrock
Posts: 3
Joined: Mon Oct 23, 2006 10:57 am

...

I do appreciate the simplicity of the solution, but I cant see how it is applicable when the installer is extracting the directory string from a search or a registry read.

Why isnt advanced installer able to work with such a format in directory names? It needs to be adressed as a priority fix, its embarassing to try to release a product, and encounter a DOS type error.

There are some who might say; "figure a way to fix it yourself", and indeed I could, but thats no consolation for the 250 dollars spent on a pro license.

If theres a really big reason why this cant be done, please open my eyes to it, thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Sorry for my miss understanding.

Could you please provide me more details about how you run that .vbs file? As a custom action?
Also please try to run that msi package on other machine to see if you get the same error message. If the problem persist then please send the AIP file (if not contains any confidential informations) or a test project that reproduce this error to support at advancedinstaller dot com in order to investigate the problem.

Also if you can post here the .vbs file or send it to our support mail address.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

I experience a similar issue. With AI 4.3 I created a project that executes several custom actions. One of that custom action is a .cmd file that has spaces in the filename. With AI 4.3 this didn't cause any problems, I then opened the project with AI 4.4 and rebuilt the package.
This worked fine so far, but the installation of the package now fails as it cannot run my custom action anymore. My other custom actions work fine, it's only this one with spaces in it's filename, and happens only with AI 4.4 so far.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Could you please provide me more details about what type of custom action you use and what parameters you have set for that custom action.

Also if you can send the AIP file (if not contain any confidential informations) or a test project that reproduce this behavior to support at advancedinstaller dot com so we can take a look.

Waiting for your reply.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi, I just sent an e-mail with a testproject to the email address you provided. Thanks for your assistance.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Beginning with 4.4 version of Advanced Installer the "viewer.exe" tool has suffer some improvements. In the older version the viewer takes what is in the "Command Line" field as a single parameter.

Beginning with 4.4 version of AI the viewer is capable to receive command line parameters for the file that it launches. So for each parameter in the "Command Line" filed you need to enclose it in quotes.

For example you need to do this modification: "[#test_file.cmd]".

This affects only "Launch File or Open Url" type of custom actions.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Yes, now it works. Thanks.
akrock
Posts: 3
Joined: Mon Oct 23, 2006 10:57 am

...

Works now, thank you.
peddro
Posts: 10
Joined: Tue Jan 09, 2007 9:22 am

solved my problem also :D
killdashnine
Posts: 2
Joined: Fri Jan 19, 2007 12:25 am

You need to add this to the FAQ. I spent two days struggling with batch files and finally, after a lot of hair-pulling, figured it out.

Thanks though ... things work great.

Return to “Common Problems”