Archive: ini file updates


ini file updates
here is my problem.
i want to make an installer that will update an existing installation.
i want to extract a new ini file, and take all the values out of the old ini file, and place then in the new ini file. the only way that i know to do this, is to manually check each field, and that takes a long time, and every time i deploy a new version of the software, i have to go through the installer script, and add all the appropriate fields to copy over. does anyone know of a way to automatically update an new ini file with values from an old ini file?


Re: ini file updates

Originally posted by qwertyandy
here is my problem.
i want to make an installer that will update an existing installation.
i want to extract a new ini file, and take all the values out of the old ini file, and place then in the new ini file.
Why dont you do this within your app?
My software usually creates every key on the first access, if it does not exist, this would solve your problem and in addition to that your software will then automatically recreate your .ini if it was deleted for some reason.