Results 1 to 6 of 6

Thread: Remove .INI entry??

  1. #1

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510

    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!"

  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    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.
    -Excalibur

  3. #3

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    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!"

  4. #4
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    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
    -Excalibur

  5. #5

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    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!"

  6. #6

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510

    Cool 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
  •  



Click Here to Expand Forum to Full Width