Installing Files to Multiple Drives
You can install files to multiple drives using single MSI. You do not require custom actions or scripts to do that. You just need to put some tricks in the directory table. So here it goes...
Suppose you need to install some files on D Drive, some on E Drive and some on F Drive.
First create property in property table for these drives.
You can also use Set Property custom action if you do not want to hardcode it and use some environment variables from your builds.
Now in Directory table put the following entries:
Notice that Directory_Parent is kept blank.
Now if you go to the file section of installation expert, you can see these folders separately on the top. You can add your folders and files as desired now in these.
At installation time the property will resolve the drive and make your files to install at the correct location.
This procedure might give you ICE error, but you can ignore those. It will have no impact on the working of MSI.



The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments
Good to know...
Interesting info. Never tried that.
I would opt for "Set Property" custom action instead of hard code path.
Thanks piyushnasa.
Thanks,
Eshwar
But beware if using network drives
If a drive is not available at the time of install, because it is not mapped, or because the installing account does not have domain access privileges, then the install will fail and roll back.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.