My first NSIS contribution... I'm so excited. 😁
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.
LGP Startup/Shutdown Script
2 posts
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