INI Files and uninstall
Posted: Wed Feb 01, 2006 5:05 am
by djehring
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
Posted: Wed Feb 01, 2006 6:17 am
by IanM
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~