Skip to content
⌘ NSIS Forum Archive

GetDrives macro in the uninstall section

2 posts

jsheth#

GetDrives macro in the uninstall section

I am trying to use the GetDrives macro in my unistall section.
Gives me an error:

Section: "Uninstall"
ExecWait: "unregister.bat" (->)
!insertmacro: GetDrivesCall
Call must be used with function names starting with "un." in the uninstall section.
Usage: Call function_name | [:label_name]
Error in macro GetDrivesCall on macroline 7


Do i have to duplicate the macro and prefix the function with 'un.' ?
Animaether#
yep. See the help file / the wiki for a way to do so with ease 🙂 (just a few lines of change, no need to duplicate the entire code in your own source)