Silent Installation for KingswaySoft Toolkits

29 August 2024
KingswaySoft Team

One of the most exciting steps after deciding to use our solution for your integration needs is properly installing our software in your environment. Generally speaking, this can be done by first downloading the software from our website, then extracting the installation package from the saved zip file, and launching the installer by executing the .msi file. This is generally a manual process and requires human intervention. When doing so, you would be working with the installer interactively and would need to go through various screens and prompts until completion. If your installation involves only a small number of machines, this process should work perfectly fine. However, in cases where the installation is done by an Admin, based on policy, or all installations are required to be fully automated using system provisioning scripts, you will have to look for the unattended silent installation approach.

To achieve this, we can leverage the Msiexec command in the Windows system to launch the installation of an MSI (Microsoft Software Installer) file from the command line. In this blog post, we will go through the process of working with this command to demonstrate how easy it is to set up, so your installations can be performed without required user interaction.

Highlight of Benefits When Silently Installing

  • The process takes less time overall since there is no user interaction with prompts or license acceptance. This is especially true as the number of users or the number of toolkits each requires increases.
  • There would be no user interface apart from a bar to indicate the current progress. This helps to ensure a consistent installation experience between machines.
  • The installation may be optionally logged for greater visibility of the installation process.

To begin, you would first download the toolkits needed and have the MSI file saved in a known location in your file system. In this blog post, we will install our HubSpot toolkit as an example; the same procedure can be applied to any other toolkit desired making sure the file path is correct.

Example of the Command and an Overview of the Parameters Set

msiexec /i D:\Users\test.user\test\IntegrationToolkit-HubSpot-x64.msi /qn /lv D:\Users\test.user\test\logs\file.log ACCEPT_EULA=1

1. msiexec will call the Msiexec executable program to interpret the MSI file you want to work with.

2. The parameter we include in the command; in this case /i for a normal installation.

3. The path to the installer file we downloaded before. Please note that adding the full path is recommended over a relative path as you may come across behaviors such as FileNotFound, as an example.

4. Additional parameter we would include: /qn to specify there is no UI during the installation process.

Optionally, you may log into a specific file to capture the details during the installation process. This may be appended as it is shown in the above snippet.

5. The parameter /lv in our example provides logging information, specifically verbose output, which provides more information about the installation.

6. The full path to the log file where the information will be written to.

7. Lastly, public properties may be included in the command and they come in the form of PROPERTY_NAME=Value. Our component only requires to explicitly state the acceptance of the EULA License agreement; and when set to 1 is True.


As shown in the image below, the log will also indicate whether the process was successful. This may be used as an alternative to checking if the existing software is installed under the Control Panel, or if the License Manager is present when searched.

Upgrading Toolkit to Newer Version or Uninstalling 

The process for upgrading an existing toolkit is identical to the initial installation, as the installer checks for an older version and replaces it with the current one. However, as a best practice, we generally recommend performing a full uninstall before installing a different version. If you have an existing toolkit installed and need to use an earlier version, you would also need to uninstall the current version before running the installation command above. The uninstall command is nearly identical to the installation command, with the only change being the /x parameter, which lets the command know the MSI file will be used to uninstall the software. Shown below is an example of this command.

msiexec /x D:\Users\test.user\test\IntegrationToolkit-HubSpot-x64.msi /qn /lv D:\Users\test.user\test\logs\file.log

Conclusion

In this blog post, we have shown that installing/upgrading/uninstalling our toolkits can be easily done using the Msiexec command. The process is straightforward, and once set up, it can scale for both number of toolkits and number of machines. This approach saves time and ensures consistent installation across all machines, as there is no user interaction involved. You can apply this method to any of our toolkit to give you greater control over your installation process.

We hope this post was helpful and provided helpful insights into working with the Msiexec command and with our toolkits.

Archive

December 2024 1 November 2024 3 October 2024 1 September 2024 1 August 2024 2 July 2024 1 June 2024 1 May 2024 1 April 2024 2 March 2024 2 February 2024 2 January 2024 2 December 2023 1 November 2023 1 October 2023 2 August 2023 1 July 2023 2 June 2023 1 May 2023 2 April 2023 1 March 2023 1 February 2023 1 January 2023 2 December 2022 1 November 2022 2 October 2022 2 September 2022 2 August 2022 2 July 2022 3 June 2022 2 May 2022 2 April 2022 3 March 2022 2 February 2022 1 January 2022 2 December 2021 1 October 2021 1 September 2021 2 August 2021 2 July 2021 2 June 2021 1 May 2021 1 April 2021 2 March 2021 2 February 2021 2 January 2021 2 December 2020 2 November 2020 4 October 2020 1 September 2020 3 August 2020 2 July 2020 1 June 2020 2 May 2020 1 April 2020 1 March 2020 1 February 2020 1 January 2020 1 December 2019 1 November 2019 1 October 2019 1 May 2019 1 February 2019 1 December 2018 2 November 2018 1 October 2018 4 September 2018 1 August 2018 1 July 2018 1 June 2018 3 April 2018 3 March 2018 3 February 2018 3 January 2018 2 December 2017 1 April 2017 1 March 2017 7 December 2016 1 November 2016 2 October 2016 1 September 2016 4 August 2016 1 June 2016 1 May 2016 3 April 2016 1 August 2015 1 April 2015 10 August 2014 1 July 2014 1 June 2014 2 May 2014 2 February 2014 1 January 2014 2 October 2013 1 September 2013 2 August 2013 2 June 2013 5 May 2013 2 March 2013 1 February 2013 1 January 2013 1 December 2012 2 November 2012 2 September 2012 2 July 2012 1 May 2012 3 April 2012 2 March 2012 2 January 2012 1

Tags