PDA

View Full Version : Populating session variable in a file


sjarch
01-29-2006, 07:34 PM
Hi,

I am a newbie in this field of set up and install. I trying use to this product as an installer for our application. I need to populate %AppFolder% actual value in one of my application file after installation. What is the procedure to fulfil this requirement. This may be a basic thing. Please help.

Thanks
SJ

Eagle
01-30-2006, 07:17 AM
there are posts in this forum on how to do what you want...

below is registry related, however applies to most Path setting for Session Variables.

http://www.indigorose.com/forums/showthread.php?t=13299

eg: using the lua variable: strAppLoc from above post
INIFile.SetValue(_TempFolder.."\\My Settings.ini", "Location", "AppFolder", strAppLoc);

--another way:
INIFile.SetValue(_TempFolder.."\\My Settings.ini", "Location", "AppFolder", SessionVar.Expand("%AppFolder%"));


hth