daverost
Posts: 1
Joined: Thu Jun 14, 2012 6:15 pm

Default Directory .msi installs to

Hi All,

Firstly I want to say that I am a new user and also fairly inexperienced in this area.

I have a need to change the default directory that the project .msi file will install the application files to. To make things clearer, I want to keep the .msi file on a flash disk and then install the application in the root directory of the flash disk no matter which computer the flash drive is plucked into. The problem being if I insert the flash disk into computer A, it is assigned the drive letter E, but on computer B it is assigned drive letter F.

Is there a way to run the .msi using a vbs script and pass the directory it should install to as a parameter/argument? Any other ideas?

Thanks for the help!

Dave
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Default Directory .msi installs to

Hello Dave and welcome to Advanced Installer forums,
Is there a way to run the .msi using a vbs script and pass the directory it should install to as a parameter/argument?
The name of a public property contains only uppercase letters (for example PROPERTY). This type of properties can be set through the command line like this: PROPERTY="value".

Sample command line:

Code: Select all

msiexec.exe /i "C:\Example.msi" MY_PROP="myValue"
You can set the APPDIR property as described above. This property stores the path of the Application Folder in the Files and Folders page (it is usually the main installation folder).

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

Return to “Building Installers”