|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
add macro in MUI_PAGE_DIRECTORY
Hello,
it's my first time with nsis, and i have this installer and i'd like to add a macro for remove a directory when the user uninstall the software. What should i do to add in Direcotry Page a checkbox to save this information? How can i do to inform the uninstall that it has to delete the directory? thx code: |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
any hint or examples? i searched for on google but i have not found good suggesition...
|
|
|
|
|
|
#3 |
|
Senior Member
|
maybe you should try a custom page in the installer and then you could write a config file to the install dir and while installing you could perforam a simple loop to remove all those directories
What some invent the rest enlarge |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
ok, i'ill try, and if i want to show just simple popup that ask if the user want to remove the directory too, what should i do to do it?
|
|
|
|
|
|
#5 |
|
Senior Member
|
try a messagebox and if he/she clicks yes then remove it
What some invent the rest enlarge |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
thx so much...i've found this:
code: but how can i do to call a function if the user pressed ok button? |
|
|
|
|
|
#7 |
|
Senior Member
|
Call Function_Name
What some invent the rest enlarge |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
i found this script:
check here http://nsis.sourceforge.net/Common_I...ponents_Choise maybe it can be helpful if i want to add a check box to allow the user to delete some directories during uninstall process...but it's my first time with nsis and i have some problem to understand how it work, for example: who's going to call the function .onSelChange? What should i do to put the checkbox in my MUI_PAGE_DIRECTORY? And above all, is it possible? thx so much for your support. |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Feb 2008
Posts: 20
|
i did some test with this macro:
code: where "a" is my function to load field into the macro, but it is not that i'm looking for...i'd like to create a my personal page with a textfield and a checkbox, of course next and previous buttons too. any hint? thx |
|
|
|
|
|
#10 |
|
Senior Member
|
to create a customised page try InstallOptions or nsDialogs. they are included with nsis and u can have a look at the examples in the examples directory
What some invent the rest enlarge |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|