Hello all,
We currently have a working installer (exe) that can be used to install on a single user machine. We would like to be able to allow the user to install the application via command line and pass in arguments such as a registration key to make the process of onboarding easier.
Use case: Run our .exe installer whilst passing command line arguments properties that are used in an attached file.
Example command line: installer.exe REGKEY=12345 FIREWALL=enabled APPLICATION=disabled
When the user decides to install the application only via command line this I would like to execute a custom action that will launch an attached Javascript file. The Javascript file will take the properties from the command line and 'do something' (calls our api to register application and toggles some settings).
Questions:
1. How can we launch the custom action only if user decides to install via command line, is this possible?
2. How do I pass in the properties from the command line into the JS file?
Thanks in 'advance'
Jason