Applies to
All ApexSQL products
Summary
This article shows how to perform silent installation and un-installation of ApexSQL products
Solution
To install/un-install an ApexSQL product in silent mode, do the following:
Installation:
To use the silent mode installation, use CLI with the following switches:
/VERYSILENT – suppresses all installation wizard dialogs
/SUPPRESSMSGBOXES – suppresses all messages from the installer
/LOADINF=”filename” – loads the previously saved installer settings (such as the installation directory, shortcuts, etc )
/SAVEINF=”filename” – saves all settings during prototype installation (these settings can be used later in LOADINF switch)
The example in this article is created for ApexSQL Edit, the same can be applied to other ApexSQL products
To create an .inf file that contains all wizard settings, do the following:
-
Open command prompt
-
Navigate to the folder where ApexSQL Edit installation file is located
-
Start the installer with SAVEINF switch
ApexSqlEdit.exe /SAVEINF=“edit.inf“
-
The installation starts. Go through the installation wizard and specify the installation options you want to use in silent installation
All options specified will be saved into the .inf file located in the installer folder
The created the edit.inf file can be edited manually in text editor
[Setup] Lang=default Dir=D:Program FilesApexSQLApexSQLEdit2011 Group=ApexSQLApexSQL Edit2011 NoIcons=0 - See more at: http://207.58.158.132/silent-installation-and-uninstallation-of-apexsql-products/?preview=true&preview_id=154&preview_nonce=03b91d257f&post_format=standard#sthash.mvgBr8JO.dpuf
-
To silently install ApexSQL Edit, use the .inf file created in the previous step and the following command
ApexSqlEdit.exe /VERYSILENT /SUPPRESSMSGBOXES /LOADINF =“edit.inf“
Un-installation:
To un-install an ApexSQL product, use the unins000.exe uninstaller and command line switches. The unins000.exe file is located in ApexSQL product installation folder, e.g. C:\Program Files\ApexSQL\ApexSQLEdit2011
/SILENT – the un-installation progress window is shown, but the user is not prompted for any confirmations and the message stating that uninstall is complete is not shown. Shared files that are no longer in use are deleted automatically without prompting. Only the critical error messages are shown
/VERYSILENT – the un-installation progress window is not displayed
If a restart is necessary, ‘/NORESTART’ switch isn’t used and ‘/VERYSILENT’ is, the uninstaller will reboot without asking
/SUPPRESSMSGBOXES – suppresses all messages from the installer. Use it only together with ‘/SILENT’ or ‘/VERYSILENT’
/LOG – creates a log file that contains details about uninstallation process in the user’s Temp directory
C:\Users\
This is helpful for problem debugging. The log file is created with a unique name based on the current date, e.g. Uninstall Log 2011-11-30 #001.txt
/LOG=”filename” – the same as /LOG but it allows to specify a fixed path/filename for the created log file. If a file with the specified name already exists it will be overwritten. If the file cannot be created, uninstallation process will stop with an error message
/NORESTART – there will be no reboot even if it’s necessary
Example:
Unins000.exe /VERYSILENT
About ApexSQL
ApexSQL is a leading provider of SQL Server tools for database recovery, database auditing, database comparison, documentation as well as SQL Server Management Studio and Visual Studio add-ins for SQL code refactoring, code completion and database source control. We strive to ensure that every one of our tools is standard-defining product in its class, from feature set, to performance, interface and quality
Last updated
November 30, 2011