INI Files and uninstall

Got a problem you cannot solve? Try here.
djehring
Posts: 1
Joined: Wed Feb 01, 2006 5:00 am
Contact:

INI Files and uninstall

Postby djehring » Wed Feb 01, 2006 5:05 am

Is there a simple way to prevent an uninstall removing INI file entries created by an install ? I use an inifile to store details which currently get deleted when a new release of the installer causes the previous version to uninstall.

Thanks

David
David Jehring

IanM
Posts: 42
Joined: Tue Mar 08, 2005 1:23 pm

Postby IanM » Wed Feb 01, 2006 6:17 am

I have just solved this - drop the Edit INI command and use CallDll with a call or WritePrivateProfile String

-paste this into your project then adjust the parameters for your own use

~InstallAware Clipboard Data~
~Call DLL Function~
~{B56769E8-023A-43D4-9FC6-872E905215F1}~
~kernel32.dll,WritePrivateProfileString,void,,"pointer to string",Database,"pointer to string",dbRestruct32,"pointer to string",1,"pointer to string",$TARGETDIR$\\GPACC.INI,$~
~mIDEFunc.dll\\mEXEFunc.dll~


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 171 guests