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: How do I specify the TargetDrive in an MSI project?
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
‎Aug 07, 2009
04:00 PM
How do I specify the TargetDrive in an MSI project?
On a target computer with only one hard drive (C:), my .MSI install works just fine. If I run the same install on a target computer with two hard drives (e.g. C: and D:), the files get installed on the second hard drive (D:). How do I specify that I only want the files installed on the C: hard drive regardless of the number of other hard drives present.
Thanks in advance.
Cheers,
Don
Thanks in advance.
Cheers,
Don
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 08, 2009
05:18 AM
Not sure how you are setting your INSTALLDIR. It should be constructed such that it is under [ProgramFilesFolder] or that sort. You may want to look under Directory table.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 10, 2009
01:55 PM
TsungH wrote:
Not sure how you are setting your INSTALLDIR. It should be constructed such that it is under [ProgramFilesFolder] or that sort. You may want to look under Directory table.
The program files are going into a subfolder under the [ProgramFilesFolder], but there are two separate folders which will not be going under the [ProgramFilesFolder]. These folders are for storing various databases. I want both of these database folders to go on the C: drive, even where there is a 😧 drive. Currently, the database folders are being created on the 😧 hard drive, if there is one. I have hard-coded the database folders in the path variables, but the folders are still created on 😧
I did check the help for information on the Directory Table, but there is no help on how to access the Directory Table, or change it.
Do you have any suggestions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 10, 2009
03:43 PM
If you are using Professional and Premier Edition, and I assume you use one of these editions since your question is in this forum, you would be able to edit Directory table directly in the IDE.
It is not recommended to hardcode a path for the obvious reason. Is WindowsVolume Property what you really want? If not, you will want to go through the list of available properties and see if there is anything that you can use, directly or indirectly.
It is not recommended to hardcode a path for the obvious reason. Is WindowsVolume Property what you really want? If not, you will want to go through the list of available properties and see if there is anything that you can use, directly or indirectly.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)