Skip to content
⌘ NSIS Forum Archive

NSIS optional component / page for uninstaller

11 posts

ozmen_celik#

NSIS optional component / page for uninstaller

i tried triggering to function but it looks it doesnt work if i want to delete additional files. P.S : I already have uninstall section works for installed files as aspected. It just a additional files that does not comes with installing. So any suggestion ?

Thanks

Here are my codes...

ozmen_celik#
Honestly i dunno how to do it and iwill be happy if u give me an fixed code suggestion bases of my codes.

Thanks

Anders would u mind to open pull request with fixing my code if u dont mind pls ?
Anders#
GitHub does not allow me to log in anymore, I can't do PRs. Just change the un functions to be sections...
ozmen_celik#
Anders which functions ? Because i have Function un.DeleteAllReports, Function un.onUninstSuccess, Function un.Uninstall, Function un.CompleteUninstall and also must be section /o un. or section un. or just section /o or section ?

Also i added into repo as collaborators. After approve it then u can create pull request i guess ?

Thanks

Also the second uninstall which is deleting reposts must be optional not required as uninstall.
Anders#
I can't use GitHub.

Anyway, Delete instructions are usually placed in sections. Perhaps one section that is always enabled and another you enable based on some condition or user input. Take a look at sections.nsh to help you toggle sections.
ozmen_celik#
I tried but its only delete files in first Section un.Uninstall and not deleting files in second Section /o u.CompleteUninstall . optional section not executing i guess.
ozmen_celik#
Thank you for succession but what kind of condition i need for that ? Because i tried one but it looks selecting it and deleting it dont work.

Click image for larger version

Name:	Ekran Resmi 2024-04-15 15.58.40.png
Views:	92
Size:	524.6 KB
ID:	4630469
Anders#
If you have a components page in the uninstaller then you don't need to handle .OnSelChange. And even if you wanted to, it would be un.onSelChange...
ozmen_celik#
Anders when i leave only normal uninstall section and section /o then it wont trigger to Section /o un.CompleteUninstall for deleting files after uninstall.

I think my problem is triggering the Section /o when selected / checked it .

Anders i solved with " un.onSelChange" . Thanks

Just needed to using selected conditions correct and then done .... Thanks again.