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
- :
- INSTALLDIR not initialized
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 27, 2008
10:26 AM
INSTALLDIR not initialized
In my installscript MSI project, INSTALLDIR is not initialized before OnBegin, and I'm not able to initialize INSTALLDIR "manually" in the script (OnBegin or OnFirstUIBefore) as before.
Second time this happened, same thing happened yesterday. Running IS2009 Premier - eval ed. SP1 is not installed, was unable to install it (guess it's because I'm running eval. ed). Why I'm running eval. ed.? The dealer/reseller in Norway doesn't distribute IS any more, and Acresso seem not to have a clue where to buy a new license - believe it or not...
Any ideas how to find the error? My guess is the MSI tables are corrupt.. I checked ISYourCompanyDir and ISYourProductDir in the Directory table, both look unchanged. Not sure where to go from there..
Thanks in advance.
Second time this happened, same thing happened yesterday. Running IS2009 Premier - eval ed. SP1 is not installed, was unable to install it (guess it's because I'm running eval. ed). Why I'm running eval. ed.? The dealer/reseller in Norway doesn't distribute IS any more, and Acresso seem not to have a clue where to buy a new license - believe it or not...
Any ideas how to find the error? My guess is the MSI tables are corrupt.. I checked ISYourCompanyDir and ISYourProductDir in the Directory table, both look unchanged. Not sure where to go from there..
Thanks in advance.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2008
06:50 AM
After pulling my hair out (what's left of it) I finally found out what's happening. INSTALLDIR is not initialized and cannot be set in the script if no components have INSTALLDIR as destination. Smells like a bug to me. I only had one component with INSTALLDIR as dest., and the problem occurred when I deleted it. (I was using my own directories and FeatureSetTarget on all the other components/features. )
Mystery solved:)
Mystery solved:)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2008
02:21 PM
INSTALLDIR would be initialized to its default value by the CostFinalize action (assuming this is not an InstallScript MSI project using the MSI 4.5 embedded UI support). CostFinalize will run prior to the OnBegin event.
INSTALLDIR will not retain any value set from first time installs to maintenance installs if there are no components using INSTALLDIR as a destination. This occurs because Windows Installer does not register Directory table paths if they are not used by any components.
INSTALLDIR will not retain any value set from first time installs to maintenance installs if there are no components using INSTALLDIR as a destination. This occurs because Windows Installer does not register Directory table paths if they are not used by any components.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 29, 2008
02:32 AM
Seems like a reasonable explanation - thanks a lot Josh!