Directory Property on 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!

virgil
Posts: 22
Joined: Sat Mar 19, 2011 1:40 am

Directory Property on Command Line

Is it possible to specify an installer property on the command line for setting a predefined file path like so:

msiexec "C:\myinstall.msi" APP_DIR=[ApplicationData]

In the example, I'd be looking to specify the user's Roaming directory.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Directory Property on Command Line

Hi Virgil,

Please keep in mind you cannot use formatted field references in a msiexec command line. You could try to use the application data folder environment variable instead.

The "Application Folder" formatted field can be set to:

Code: Select all

[AppDataFolder][ProductName]
from Install Parameters page only in your Advanced Installer project.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”