|
-
May 9th, 2001, 02:46 PM
#1
Thread Starter
Hyperactive Member
Remove .INI entry??
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!!
"If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"
-
May 9th, 2001, 03:29 PM
#2
Fanatic Member
Code:
WritePrivateProfileString Section, Key, vbNullString, FileName
Hope this helps you out.
The stuff in italics are dynamic variables, the bold stuff is mandatory for it to work.
-
May 9th, 2001, 03:35 PM
#3
Thread Starter
Hyperactive Member
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!
"If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"
-
May 9th, 2001, 03:40 PM
#4
Fanatic Member
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:
Code:
vbCrLf & "YourKey="
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
-
May 9th, 2001, 03:46 PM
#5
Thread Starter
Hyperactive Member
Thanks for the further explanation. I think I can get it.
Last stop before the documentation! Yuck!
thanks again......later
"If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"
-
May 9th, 2001, 04:16 PM
#6
Thread Starter
Hyperactive Member
GOT IT!!
Worked perfectly. Thanks.
"If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|