PDA

View Full Version : Logging and WriteProfString



jerduval
09-02-2003, 05:20 AM
Hello,

I have done this script in my installation :
Enable(LOGGING);
WriteProfString (TARGETDIR+"\\params.ini","FLW","DATABASE",TARGETDIR+'\\DATABASE\\');
WriteProfString (TARGETDIR+"\\params.ini","FLW","TMP",TARGETDIR+'\\TMP\\');

After the installaton, all is right.

If i add a new line in my ini file, this line is not remove after uninstalling, but if I update a line which as been write by script, this line is erase while uninstalling.

Is someone can help me to find why ?

After install :
[FLW]
DATABASE=C:\FLW\DATABASE\
TMP=C:\FLW\TMP\

After update :
[FLW]
DATABASE=\\PC-JDV\FLW\DATABASE\
TMP=\\PC-JDV\FLW\TMP\
USER=ADMINISTRATEUR

After uninstall :
[FLW]
USER=ADMINISTRATEUR

Thanks in advance
Jerome DUVAL
Holy-Dis Corporation

niranbhimaiah
09-02-2003, 07:48 AM
You can try the following:

Write the ini temporarily to any folder (say temp folder ) and then copy the ini file from this temp folder to your destination folder using XCopyFile function. On uninstallation this file will be unistalled.

Regards
Niran Bhimaiah