Sp33dy G0nz4l3s
20th May 2006 08:12 UTC
Make a Reinstaller
Hi,
I would make a reinstaller for my installer:)
In this reinstaller the sections which was installed should be marked.
If the user clicks on next the respective sections will be reinstalled.
If he makes the marking away the respective section should be deinstalled. If he marks something which isn't already marked the section should be installed.
Is this possible?
With marked I mean the hook:
http://www.pc-multimedia.net/1.gif
Red Wine
20th May 2006 13:15 UTC
It is possible, you may add the described abilities to your installer, there is not real need to build a "reinstaller" for that.
Brummelchen
20th May 2006 20:17 UTC
speedy - set marks in registry or ini-file what was installed.
Database
21st May 2006 11:29 UTC
Please could someone provide a detailed explanatino of how to do this? I need to be able to do this too.
Red Wine
21st May 2006 12:54 UTC
you may use the InstallDirRegKey (or create a INI for this reason) to store info about components e.g. if component "help files" is installed it is 1, if not installed it is 0. Next time when installer is launched disable the directory page and compare users selection with stored values. So if a component is installed (1) show it checked, then see if users made it not checked, uninstall it, and vice versa. Also you should update your uninstaller every time so when users wish to uninstall the application nothing left behind.