cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joetobey
Level 2

Drive letter text substitution in Basic MSI

Is it possible to get the drive letter from [InstallDir] for use in a Text File change (Basic MSI)? Our application involves instrumentation and requires installation on a local drive. To install a required driver I'm attempting to modify a batch file, as I do not want to assume the C: drive. Thanks.
Labels (1)
0 Kudos
(2) Replies
puneet404
Level 4

Hi,

You can user ROOTDRIVE MSI property. This property sets the default drive to the writable local drive.

However, you can also use environment variable %SYSTEMDRIVE% to get windows system drive.

Hope it helps!
0 Kudos
joetobey
Level 2

Hi,

Thanks for the response. Is the RootDrive that you mention the drive on which my software is installed? If the user, for example, has a C: and 😧 drive and chooses to install the software on the 😧 drive then I'm looking for a variable that will return the 😧 drive. This may not be the drive on which Windows is installed.

Perhaps I should consider parsing the contents of [InstallDir] ?
0 Kudos