- NSIS Discussion
- different versions to uninstall with different dirs ?
Archive: different versions to uninstall with different dirs ?
krutch
7th April 2004 22:50 UTC
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?
Joost Verburg
8th April 2004 13:10 UTC
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.
krutch
8th April 2004 16:19 UTC
How do i do that ?
Oh and no the 2 CZ versions don't have there uninstaller.
Joost Verburg
8th April 2004 16:56 UTC
Use InstallOptions to create a custom page.
krutch
8th April 2004 23:16 UTC
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...
Joost Verburg
8th April 2004 23:18 UTC
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.
krutch
8th April 2004 23:20 UTC
I just thought someone could help me ?
Joost Verburg
8th April 2004 23:35 UTC
See 'Examples\Modern UI\InstallOptions.nsi' for an example of InstallOptions usage.
krutch
8th April 2004 23:36 UTC
I am not trying to get help for the installtion i am trying to get help for the uninstalltion.
krutch
8th April 2004 23:46 UTC
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
Joost Verburg
9th April 2004 18:39 UTC
You can indeed also use the components page.
krutch
9th April 2004 18:52 UTC
umm wouldn't that just install the script pack again instead of uninstalling it ?
Joost Verburg
9th April 2004 20:27 UTC
The uninstaller also has a components page. If you want to design your own page use InstallOptions.