Having recently been required to package an application called Draftsight for some engineers, i ran into a few troubles with getting the application to silently install in a manner that still allowed the users to enter the license key without hardcoding the license key into the deployment.
Through some experimentation and research(Ha! Google), i was able to figure out the installation and uninstallation parameters that are required to silently install this application.
Install and Uninstall Commands
Install command below will allow the package to be installed quietly, with no restart and will not set a license for the application. This will allow users to either select trial mode or enter their license key after the installation has completed.
Install – msiexec.exe /i “DraftSight.msi” /quiet /norestart LICENSETYPE=0
The uninstall command below will require some extra effort in validating the product code on your systems registry. This can be found by navigating to the following locations dependant on your system architecture (x64 or x32)
x64 -HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
x32 – HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Uninstall – MsiExec.exe /X{productcode} /quiet /norestart
Hopefully the commands above will help you in packaging this application for your organisation and save you some time!
Thanks for reading.