Page 1 of 1

Keep settings during upgrade

Posted: Mon Apr 16, 2007 11:52 am
by maurosturaro
I release a new version of my product every 2 month, so users want to launch setup and click next,next,next (I'm adding a Finish button ;-)).

But...
How can I keep the same settings (folders, features, and user input) of the previous version ?
I've start to put each variable in a registry entry at the end of setup script, reading it at the begin.
But it sound a not so nice solution, expecially for the selection of features.
Do you have a better and more Scripting Aware solution ?

Tanks.

Posted: Wed Apr 18, 2007 9:18 am
by neillans
Fraid not - this will have to be something you write specifically for your own product.

Solutions:
- Store in registry
- Store in INI / XML file in your application directory

Posted: Tue Apr 24, 2007 7:02 am
by maurosturaro
Can't be done in application directory becouse the new setup dosn't know where the previous version was installed.
the only way is register or some fixed folder.

but... :o

4 days after your answer the new version 6.5 has a specific function for this! :wink:
and it works better :D , so I'v discard my work and replaced.