This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Drive letter text substitution in Basic MSI
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2012
10:49 AM
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.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 20, 2012
05:27 AM
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!
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!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 21, 2012
07:26 AM
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] ?
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] ?