changing-install-directory-drive-c-drive-d
Hi guys,
I'm having a problem editing a .msi file trying to change the installation drive from C to D. For the whole application, the ROOTDRIVE property works for some installers, but not for all. I've also tried using additional properties when I use MSIEXEC, properties like: TARGETDIR, INSTALLDIR, PRIMARYVOLUME but I've got no luck. I've also tried using this method I've seen:
Rhonamac:
"Created a new property called MYDIR (or something unique) and entered desired drive letter for the value (i.e. D:\)
After the Cost Finalize entry in the User Interface sequence, insert a Set Directory custom action
Enter a unique Custom Action Name - doesn't matter what it is as long as it's unique
For the Directory field, clicked on the Browse button, and chose the folder you want the app to install to, and click OK. The Directory field will be populated with the property name of the folder (i.e.INSTALLDIR)
In the Directory Value field, entered the custom property you created in all caps/square brackets, followed by the folder path you want the application to install to: i.e. [MYDIR]Program Files\Windows Resource Kits\Tools. Click OK "
I've also used this method but I kept encountering an error regarding the CA I've placed in the Deferred sequence. I think that I've placed the CA in the wrong sequence within the Deferred Execution (placing it after the InstallInitialize sequence). Just added FYI, I've placed the CA I've created in the Execute Immediate and Execute Deferred, as I was installing in silent mode, using the /qn switch.
Got any suggestions aside from using custom actions? Or is it the only way to change the installation drive?
Here is the link to another post that I've made including the install.log file:
https://www-secure.symantec.com/connect/forums/changing-install-directory-drive-c-drive-d
for some reference
Any help would be appreciated thanks guys!
I'm having a problem editing a .msi file trying to change the installation drive from C to D. For the whole application, the ROOTDRIVE property works for some installers, but not for all. I've also tried using additional properties when I use MSIEXEC, properties like: TARGETDIR, INSTALLDIR, PRIMARYVOLUME but I've got no luck. I've also tried using this method I've seen:
Rhonamac:
"Created a new property called MYDIR (or something unique) and entered desired drive letter for the value (i.e. D:\)
After the Cost Finalize entry in the User Interface sequence, insert a Set Directory custom action
Enter a unique Custom Action Name - doesn't matter what it is as long as it's unique
For the Directory field, clicked on the Browse button, and chose the folder you want the app to install to, and click OK. The Directory field will be populated with the property name of the folder (i.e.INSTALLDIR)
In the Directory Value field, entered the custom property you created in all caps/square brackets, followed by the folder path you want the application to install to: i.e. [MYDIR]Program Files\Windows Resource Kits\Tools. Click OK "
I've also used this method but I kept encountering an error regarding the CA I've placed in the Deferred sequence. I think that I've placed the CA in the wrong sequence within the Deferred Execution (placing it after the InstallInitialize sequence). Just added FYI, I've placed the CA I've created in the Execute Immediate and Execute Deferred, as I was installing in silent mode, using the /qn switch.
Got any suggestions aside from using custom actions? Or is it the only way to change the installation drive?
Here is the link to another post that I've made including the install.log file:
https://www-secure.symantec.com/connect/forums/changing-install-directory-drive-c-drive-d
for some reference
Any help would be appreciated thanks guys!
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
MSIPackager
14 years ago
We often need to set packages to install on the E:\ for or Citrix servers and achieve it by hardcoding the INSTALLDIR value as a property e.g.
INSTALLDIR E:\Program Files\MyApp
It's normally that straight forward although sometimes more needs to be done for vendor MSI packages. Also, it causes a validation error but we live with it.
Setting the ROOTDRIVE value to E:\ doesn't have any effect for Program Files etc since it uses the environment shell variables and still ends up in C:\Program Files
Hope this helps, but I guess not since you say you've already tried setting INSTALLDIR !?
Cheers,
Rob.
INSTALLDIR E:\Program Files\MyApp
It's normally that straight forward although sometimes more needs to be done for vendor MSI packages. Also, it causes a validation error but we live with it.
Setting the ROOTDRIVE value to E:\ doesn't have any effect for Program Files etc since it uses the environment shell variables and still ends up in C:\Program Files
Hope this helps, but I guess not since you say you've already tried setting INSTALLDIR !?
Cheers,
Rob.
Posted by:
pagsi23
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.