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: TARGETDIR different on different machines
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
‎Jun 18, 2009
11:28 AM
TARGETDIR different on different machines
I have an InstallScript MSI install.
Please help me with this question - it might be a silly one.
Is it possible that when I run the same install on two different machines I get different values for TARGETDIR?
On one I get it as C:\ and on the other as D:\.
Or is it an issue with the install project?
Thanks!
Please help me with this question - it might be a silly one.
Is it possible that when I run the same install on two different machines I get different values for TARGETDIR?
On one I get it as C:\ and on the other as D:\.
Or is it an issue with the install project?
Thanks!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 18, 2009
11:51 AM
InstallScript MSI projects typically use INSTALLDIR as the installation target location (TARGETDIR is a copy of INSTALLDIR's value). INSTALLDIR is initialized by Windows Installer, and based on the machine the installation is running, the INSTALLDIR path could vary. Most of the time this is because Windows Installer resolves the path to install to a drive on the machine with the largest amount of free space available.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2009
10:58 PM
it may be also possible that the OS was installed in D:\ drive on 2nd machine.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2009
11:21 PM
When a directory entry fails to resolve it'll usually resolve to the root of the biggest hard drive.