Skip to content
⌘ NSIS Forum Archive

Is it possible to undefine/redefine a macro

3 posts

Sheik#

Is it possible to undefine/redefine a macro

Hi all,

I am not sure if this is possible or not.

Lets say I include a .nsh file that creates a macro.
Lets say I then want to override/replace that macro with my own version of that macro...

Is this possible?

Is there a way to undefine the old macro, and replace it with my version?

Thanks!
Scott
Red Wine#
Code within a macro executed when the macro called with !insertmacro.
So instead of calling the macro you're referring call your own.
Comm@nder21#
Is there a way to undefine the old macro, and replace it with my version?
currently not.

but as red wine said: just write your own macro with a new name.