I have moddified my setup program to add an entry to the [386Enh] section of the System.ini file. I am unable to figure out how to remove this one entry on uninstall.
Any leads would be much appreciated!!
:) :)
Printable View
I have moddified my setup program to add an entry to the [386Enh] section of the System.ini file. I am unable to figure out how to remove this one entry on uninstall.
Any leads would be much appreciated!!
:) :)
Hope this helps you out.Code:WritePrivateProfileString Section, Key, vbNullString, FileName
The stuff in italics are dynamic variables, the bold stuff is mandatory for it to work.
This is what I am currently using to write the string.
Will this work to remove the string when I uninstall??
Can I just call it again??
I had no problem inserting the string during install, just have had trouble removing the string at uninstall.
Thanks again!
The vbNullString will nullify the entry. It has worked well for my INI file purposes. You could also load the INI file into your uninstall and look for:
While you go through the file, add anything that doesn't work to a variable with vbCrLf and when you hit that, skip it, then continue on with the rest of the file. Just another suggestion :)Code:vbCrLf & "YourKey="
Thanks for the further explanation. I think I can get it.
Last stop before the documentation! Yuck!
thanks again......later
Worked perfectly. Thanks.