I want to use the same function in installation and uninstallation script (checking the admin privelegies for example).
How can I do it?
How to use the same function in install and unInstall script
3 posts
Put the code into a macro:
Stu!macro MyFunc un
Function ${un}MyFunc
...
FunctionEnd
!macroend
!insertmacro MyFunc ""
!insertmacro MyFunc "un."
cool solution, tnx