Results 1 to 8 of 8

Thread: .ini or registary for program settings

  1. #1

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    .ini or registary for program settings

    A few yrs back Microsoft said to sore program settings in the regristary. That is where mine are stored.
    Now i hear vista won't allow this.
    Is .ini files the solutation ?

  2. #2
    Lively Member
    Join Date
    Nov 2006
    Location
    San Pedro, CA
    Posts
    104

    Re: .ini or registary for program settings

    I have used INI files, due to the ease of remote updating.

    I don't know enought yet about the nuts and bolts of Vista, but a friend has had issue with VB6 and .NET 2003 running right under it... so if I was you, stick with what you know. Most corporate entities are not moving to Vista anytime soon, so XP will be around for a long time.

    If you are concerned, just use and INI file. They are easy and quick.

  3. #3
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: .ini or registary for program settings

    Stick with ini files they are simple and easy at least they don't leave crap in the registry after you've uninstalled.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  4. #4

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: .ini or registary for program settings

    Thanks for your reply
    I have given this more thought and i have 5 programs that write to the registary stuff like combo indexs, option button values, window placements etc. It would be a big hassel to rewrite.
    Here is why i use the registary:
    No need to ship and install more files
    Users Cannot delete them.
    I sell roof estimating programs and not to corp users and i think many people will be using Vista. I understand that all new pc's are loaded with vista.
    I am gonna just wait at this time and see what happens.
    Does anyone know for a fact that vista will not allow registary writes?

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: .ini or registary for program settings

    Quote Originally Posted by isnoend07
    ...
    Here is why i use the registary:
    - No need to ship and install more files
    - Users Cannot delete them...
    True, but "so what" ??? Let them delete "their" files - you would just have everything back to defaults.
    I would use INI or XML file (most likely the xml) rather than registry.

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: .ini or registary for program settings

    I have always use ini files and an occasional registry entry. This is what works for me. I use Ini files because if the user wants to move the installation of any of my programs the registry is not of any use. They could backup the ini file and preserve all information. Especially is the machine crashed and they needed to re-install. The registry would be a complete waste for this and all of their information stored in the registry would be lost also, since no backup could preserve this for a re-install.

    After re-installing the application and copying the ini file back to it's original location all functions would be back to the point they were just before the crash.

    I think that MS has also figured this out by now...

  7. #7
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: .ini or registary for program settings

    Quote Originally Posted by isnoend07
    Thanks for your reply
    I have given this more thought and i have 5 programs that write to the registary stuff like combo indexs, option button values, window placements etc. It would be a big hassel to rewrite.
    The much underused functions "Write / ReadPrivateProfileStruct" make it very easy to store and retrieve a mass of settings with a single call.

    Ini files make life easier if you want to share settings across different logged-in users. If you want individual settings, you could create several ini files based on, say, the currently logged-in user (or just lump it all in one file).

  8. #8
    Addicted Member
    Join Date
    Mar 2005
    Posts
    157

    Re: .ini or registary for program settings

    Or you can do what I did, and created something along the lines of an INI file but encrypted instead and using a setup I made. It is pretty awesome, all my programs I made use the system.

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