PDA

View Full Version : GetDrives macro in the uninstall section


jsheth
30th May 2008, 14:20
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
30th May 2008, 14:38
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)

http://nsis.sourceforge.net/Sharing_functions_between_Installer_and_Uninstaller