Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 4

Installation drive

This has to be a dumb, simple question but I haven't been able to find the answer. In a Basic MSI project is there a way to get the drive letter that the product is being installed on? I want to use this in a "Set Property" custom action. I thought there might be property that I could reference and it would return c: or d: or something like that. The Windows Installer ROOTDRIVE property seems to return 1:, which isn't what I was looking for. I presume I could read INSTALLDIR and then strip off everything after the : but I was hoping to not have to do it this way since it would require some InstallScript rather than just the predefined custom action.

Anyone know of a simple way to just get the drive letter, like c or c:

Labels (1)
0 Kudos
(2) Replies
Level 8

0 Kudos
Level 12 Flexeran
Level 12 Flexeran

Does the WindowsVolume property have what you want?
0 Kudos