Error when installpath contains space - Advanced Installer Community

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!

Tuvix
Posts: 2
Joined: Thu Nov 29, 2007 10:42 am

Error when installpath contains space

I get an error when trying to install an application to a path containing spaces. I've set my installpath to: [ProgramFilesFolder][Manufacturer]\[ProductName]. ProgramFilesFolder is "C:\Program Files" on my system. If I remove the space when I installing, the application is installed without errors, but if I leave the space, I get an error saying: "Windows cannot locate 'C:\Progam'". The odd thing is that it looks like the application is installed and I can start it without errors.

Has anyone experienced any thing similar or does anyone know what to do about the error?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This happens when you use paths that contain spaces in formatted fields (except the "Application Folder" and "Application Shortcut Folder" fields in the "Install Parameters" page).

The solution is to use quotes (") when you use paths with spaces. For example, in a custom action the command line will be "C:\Test with space\test.exe" instead of C:\Test with space\test.exe or "[APPDIR]test.exe" instead of [APPDIR]test.exe.

If the problem persists after investigating your project and making the necessary modifications please send us the AIP to support at advancedinstaller dot com so we can investigate this issue.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tuvix
Posts: 2
Joined: Thu Nov 29, 2007 10:42 am

That solved the problem. Thank you very much for the help.

Return to “Common Problems”