Archive: different versions to uninstall with different dirs ?


different versions to uninstall with different dirs ?
Hi i have more then 5 versions of a script pack i make for cs and on one of them it goes into a whole different dir.
The problem is instead of just adding that dir to the uninstall for all of the versions is.
If I did try to just add the dir for the other versions the user installs would install a version and not the other then when he uninstalled it.
It would also uninstall any other scripts that might not be mine.

like this

most of the versions would install here
C:\Program Files\Steam\SteamApps\person@email.com\counter-strike\cstrike

2 of the versions installs to

C:\Program Files\Steam\SteamApps\person@email.com\condition zero\czero

so if i put the uninstall for both dirs when the person uninstalls ether cs or cz it would uninstall both even if they only wanted to uninstall cs or cz.

so i need a way to have the uninstaller be able to check for which version to unstall CS or CZ then have the 2 CZ versions uninstalled with out cs uninstalled or the other way around.

any help here?


If the old one has an uninstaller too the user can use that uninstaller.

If you want one uninstaller to be able to remove both add a custom page and let the user choose.


How do i do that ?
Oh and no the 2 CZ versions don't have there uninstaller.


Use InstallOptions to create a custom page.


OK well looking at installopetions didn't help me.

I need the uninstaller to have 2 options
1: uninstall CS script pack
2: uninstall CZ script pack


so that way they can pick which one that want to uninstall.

so how do i do that so it will uninstall the 2 CZ versions if they pick CZ, and if they pick CS uninstall the CS versions.

How do i do this any help here.
paste code or something...


This forum is not a script writing service. Try to create it yourself and if you have a problem, attach relevant script code with a description.


I just thought someone could help me ?


See 'Examples\Modern UI\InstallOptions.nsi' for an example of InstallOptions usage.


I am not trying to get help for the installtion i am trying to get help for the uninstalltion.


ok i fixed it :)
heres what i did..
I added

!insertmacro MUI_UNPAGE_COMPONENTS

to the pages

then i added more then one section in the uninstall


You can indeed also use the components page.


umm wouldn't that just install the script pack again instead of uninstalling it ?


The uninstaller also has a components page. If you want to design your own page use InstallOptions.