hanenjom
16th May 2011 18:50 UTC
comunication bteween .ini and .nsi
please, can you help me ?
I need to have a communication between file .ini and .nsi,how can I use "!insertmacro INSTALLOPTIONS_EXTRACT "test.ini" " and both files are not under the same directory?
might know how to put the relative path?
Afrow UK
16th May 2011 19:19 UTC
Use the INSTALLOPTIONS_READ macro.
Stu
hanenjom
16th May 2011 23:11 UTC
the problem that I have the file .ini and the file .nsh in to diffrent directory, and when i put the path of .ini, when i execute my kit.exe I have a problem to dispaly the page, I have a error said me "the system can't open this path.ini".
i used INSTALLOPTION_READ and INSTALLOPTION_DISPALY and ihave the some problem.
my question is how can i read in my file .nsh the path of the file .ini who's in the other directory?
Afrow UK
16th May 2011 23:31 UTC
INSTALLOPTIONS_EXTRACT_AS
They're all in InstallOptions.nsh. Alternatively, switch to nsDialogs :).
Stu
hanenjom
16th May 2011 23:32 UTC
thx
thx for your answers, o will try this tomorrow.
T.Slappy
17th May 2011 07:22 UTC
Please, remove support for those .ini files in NSIS 2.47!
nsDialogs are much better and there are no such problems with them :)