Requirements.
A custom variable, for instance $SERIALNUMBER$ can be entered using the command line at runtime, using SERIALNUMBER=xxxxxxx
This might or might not be supplied in the commandline.
I have tried to then use this variable in my code, to check the value, for example using and IF statement, SERIALNUMBER = xxxxxxx
The install will not compile as I have not defined SERIALNUMBER in the script
If I include a SERIALNUMBER= statement in the code, the value of SERIALNUMBER that I have passed in from the command line will be overwritten.
Is there any way, other than the obvious, manually parsing the command line in the script to try to pull out the variables, to achieve this?
It would be nice if I could define my variables before the script, and before the Command line is parsed, using default values,
then I could easily check if the SERIALNUMBER variable has been set.

