PDA

Click to See Complete Forum and Search --> : Aaron Young I'm not sure


ScottF
Dec 30th, 1999, 01:53 PM
I not sure where you want me to place the line. Here where I place it but it didnot work.
[Setup]
Title=Try
DefProgramGroup=Try
DefaultDir=$(ProgramFiles)\Try
SaveSettingString HKEY_CURRENT_USER, "Path", "String", lblDestDir
Setup=setup1.exe

ScottF
Dec 30th, 1999, 02:50 PM
I remember now how to fix the setup where it will place the path in Windows Registry.
Just place this line of code in the cmdInstall click event on the frmBegin
SaveSettingString HKEY_CURRENT_USER, "Path", "String", lblDestDir and Registry.bas in the program.
And save the program then make the setup.exe again and it work. Of course every time you make a new program you have to change the key are you copy over the old path. anyway if you have a better way I'm all ears.