PDA

View Full Version : Location of Last Install


nancyp
06-13-2001, 04:14 PM
I am writing the %AppDir% value to an INI file, but I just realized that the variables I am trying to load in the INI variables can not be loaded because it will not know the value of %AppDir% until the screens are processed and that gives the path to the ini file. How can I get the value of this variable loaded, on an re-install, before the INI variables are loaded.

Mark
06-13-2001, 04:46 PM
Hi,
What I would do is write the location of the last installation into the Registry instead of using an INI file. That way you will always know the exact location of the Registry value.
So at the end of each installation write %AppDir% into the registry. And at the beginning of each installation, if the registry value exists, read it into %AppDir%.

mark.