-
If you are upgrading Smart API Manager, please read prepare for the upgrade first.
-
If you are uninstalling Smart API Manager and might need to reuse its configuration settings, Save current configuration before uninstalling.
Run a silent install or uninstall from the command prompt
-
Log on to the Smart API Manager web server as an administrative user for the computer and IIS.
-
Create a command prompt window with administrative privileges (Run as administrator).
-
Navigate to the Smart API Manager installation media or location.
-
Run the SAM_setup.exe executable using the switches and parameters below.
For switches and parameters, note that:
-
All switches and parameters are case sensitive.
-
Spaces are not allowed after any parameter or equal sign (=).
Switches
Switch |
Description |
---|---|
-install |
Installs Smart API Manager. |
-uninstall |
Uninstalls Smart API Manager. |
-q, -quiet, -s, -silent |
Silent mode. |
-l, -log |
Logs information and errors to a specified file, for example: C:\install logs\samserver\3505587.log The full path must be included in quotes if it contains any spaces. |
Parameters
|
Required or Optional |
|
---|---|---|
INSTALLFOLDER |
Optional |
The folder where the software will be installed. If this is not provided, it is set to: C:\Program Files\Intergraph\Smart API Management Server |
SLAACCEPT |
Required |
Approves license agreement. Must be set to YES. |
USERNAME |
Optional |
Name of the user to whom the software is licensed. Left blank if not provided. |
COMPANYNAME |
Optional |
Name of the company to whom the software is licensed. Left blank if not provided. |
Examples
Here are example command-line statements for silent install and uninstall:
-
"C:\Users\samadmin\SAM\SAM_setup.exe" -install -silent -log c:\temp\saminstall.log INSTALLFOLDER="C:\Program Files\Intergraph\Smart API Management Server" SLAACCEPT="YES" USERNAME="samadmin" COMPANYNAME="MyCompanyName"
-
"C:\Users\samadmin\SAM\SAM_setup.exe" -uninstall -silent -log c:\temp\samuninstall.log