Archive: LGP Startup/Shutdown Script


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.


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
>