Search code examples
installationnsisuninstallation

How to read a command line parameter given to an uninstaller?


Using NSIS, how can I read a (optional) command-line parameter provided to an uninstaller?

I don't need to read it by name-- just reading the first parameter given could be enough.


Solution

  • Use the GetParameters and GetOptions helper functions in FileFunc.nsh (Included with NSIS)