Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to Load INSTALLDIR dynamically


3 replies to this topic

bernadettefearon

bernadettefearon
  • Members
  • 94 posts

Posted 12 December 2001 - 13:35

Hi all,
Does anyone know where the value of INSTALLDIR is kept?
I want to load it with the value of a property (which is a registry key value).
I tried putting the property name against GeneralInformation-project properties-Destinationfolder but to no avail.
Is it possible to do this?
Thanks
Berni

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 12 December 2001 - 16:23

INSTALLDIR is a key to the directory table.  Directories are not quite the same as properties.  If you want to set it use a Type 35 Custom Action or call MsiSetTargetPath.


Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 12 December 2001 - 16:33

I should add there are lots of implications if you attempt to change the directory during an upgrade or are installing for another user so take care,

See Msi Documentation

Windows Installer
--Using Windows Installer
------How do I change the target location for a directory?.


bernadettefearon

bernadettefearon
  • Members
  • 94 posts

Posted 14 December 2001 - 15:38

Thanks for your help Ian -
I got it going with the CA35,
Thanks again
Berni