Zinthose
11th June 2009 04:56 UTC
LGP Startup/Shutdown Script
My first NSIS contribution... I'm so excited. :D
I just released an ALPHA version of my Local Group Policy Startup/Shutdown Script header on the Wiki.
LGP Startup/Shutdown Script
I would greatly appreciate any feedback on it.
Zinthose
11th June 2009 19:30 UTC
I updated the code to permit transparent use of the functions during un.installations. Took me a bit to figure it out but think the solution is quite elegant.
## Example:
!define LGPScript::Create "!insertmacro _LGPScript_Create"
!macro _LGPScript_Create Mode Command Parameters ReturnCode
Push "${Mode}"
Push "${Command}"
Push "${Parameters}"
!ifdef __UNINSTALL__
Call un
._LGPScript_Create
!else
Call _LGPScript_Create
!endif
Pop ${Returncode}
!macroend
>