StartMenu shortcuts, find previous installation/folder
Hello there!
I know the basics with NSIS and simple setups aren't that problem but now I have to write a little more complex setup so I hope you can help me.
1. I've included the components page and let the user decide there to install shortcuts. I wrote a sectiongroup called ShortCuts and in this group two sections called "Startmenu" and "Desktop".
I want that the page to choose the startmenu folder comes only if the user had checked "Startmenu" before at the components page.
Is it possible? If yes how do I implant it?
2. The application (it's an modification for a game) which is going to be installed with my setup needs an already existing folder (the installed game what the modification is for).
How can I make my setup to search automaticaly the destination folder and if it's not found to let the user search manualy and makes the "next" button only available if it's found?
3. I want that the setup detect any previous installations of the application. If the same setup runs again after installation it should be give the two options of uninstalling the app or repair the app. If the user runs a newer setup (with a newer version of the app) it should detect the previous version (and show it to the user) and should give the option to patch it (maybe radio buttons or a checkbox) or to abort the installation.
How can I manage this?
I know it's just not a short question and maybe there are already answers here in the forum but I don't know which search words fits at best. Tried some but don't find help.