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: Installation drive
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
‎Feb 23, 2012
12:16 PM
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:
Thanks!
Anyone know of a simple way to just get the drive letter, like c or c:
Thanks!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 23, 2012
01:05 PM
try TARGETDIR
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2012
12:35 PM
Does the WindowsVolume property have what you want?