PDA

View Full Version : Auto filling the right install directory


easy
03-01-2005, 10:38 AM
Hello,

I am doing a setup installer for an addon. So this addon needs
to install into the directory of the main programm.

I have no problems reading out the registry to find out if the
programm is installed and where it is but I can't find a solution
to update the EditBox with the new information.

Can someone help me?

csd214
03-01-2005, 11:28 AM
By default the edit box (screen Select Install Folder) displays what's stored in %AppFolder%.

When you have read the registry value into sAppFolder (as an example), add:
SessionVar.Set("%AppFolder%", sAppFolder);


* IMPORTANT *
Don't have thes commands on Select Install Folder.On Preload.
YOU MUST PERFORM THESE ACTIONS ON AN EARLIER STAGE, you may use the previous screen.On Next or Actions.On Startup.

HTH.

easy
03-01-2005, 11:33 AM
Thank you.

csd214
03-01-2005, 11:50 AM
No problem. You can find more info about Session Variables in this thread (http://www.indigorose.com/forums/showthread.php?t=8991)

:)