Archive: How works define for unistaller


How works define for unistaller
Hallo

installer and unistaller are created in the same file.
is it possible to do one define for both - installer and unistaller?

Thank You


If you mean !define then yes.
If you want to transfer values in variables such as $R0 you must store their values in the registry or an INI file.

Stu


Thank You, Afrow UK

yes, I mean !define

my nsi-file:
!define ECN_DEINSTALL_ALL ; if defined - deinstall of all components

Section -prepareuninstall
WriteUninstaller $INSTDIR\uninstaller.exe
SectionEnd

Section Un.demo
!ifdef ECN_DEINSTALLALL
ExecWait '"msiexec" /x "$EXEDIR\$ECNPARTPATH\demo.msi" /passive '
!endif
SectionEnd

demo.msi is not called from deistaller.


:)

!ifdef ECN_DEINSTALLALL
-->
!ifdef ECN_DEINSTALL_ALL

Stu


Yes,

but there is anothe Problem.
normally all of Un.* sections called by deistaller.
But my Un.webapp would't called.
MessageBox dosen't popup

Section Un.webapp
MessageBox MB_OK "deinstall webapp"
SectionEnd


i have found a problem.
deinstaller would't refresh and i try use it.
deinstaller is refresh, if You click on install-button.
Thanks a lot!


one can create deinstaller like installer with another
"deinstaller.nsi"?


uninstaller and installer need to be in the same script file.

though you can split script files by using a main file that you compile and include the other files using "!include file.nsi" (or .nsh).


also it's not possible to refresh deinstaller without
clicking on installer-button?