Set Application Folder via command line - 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!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Set Application Folder via command line

It seems that it is not possible to set the path of the application folder via command line. I ask this is because I have now over 10++ AI projects. And now I need to change the application directory from [ProgramFilesFolder][Manufacturer]\[ProductName] to [ProgramFilesFolder][Manufacturer]\[ProductName]\[ProductVersion] and [ProgramMenuFolder]\[Manufacturer]\[ProductName] to [ProgramMenuFolder]\[Manufacturer]\[ProductName]\[ProductVersion].

I don't want to do it manually, so if I can do it via command line, that will be very good
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this cannot be done by using the command line because APPDIR and SHORTCUTDIR are stored in the "Directory" table of the MSI, not in the "Property" table.

Since APPDIR and SHORTCUTDIR become properties only at runtime (until then they are directories), you cannot set them by using the /SetProperty command.

The solution is to manually make the necessary changes in you Advanced Installer projects.

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

Return to “Common Problems”