You can run a silent install of ShareGate Desktop with PowerShell or the command prompt. This action can be useful to deploy ShareGate Desktop to your users, run the installer as an admin, troubleshoot installation failures, and more.
- Download the latest ShareGate Desktop installer to your drive.
- Click on the Start menu in Windows.
- Search Command Prompt.
- Open Command Prompt.
Note: You have to run the script in an elevated session. The usual method is to right-click on the application (Command Prompt or PowerShell), and select Run as administrator in the dropdown to start Command Prompt as an admin.
- Access the folder where the installer (MSI file) is located with the following command:
cd %UserProfile%\DownloadsNote: CD stands for Change Directory. If your install file is not in your Downloads folder, you will have to adjust the path to point to the folder that contains your ShareGate Desktop install file.
- To install ShareGate Desktop for the current user only, use the following command line:
msiexec /i Sharegate.msi /q SHAREGATEINSTALLSCOPE=PERUSER RESTARTEDASADMIN=1
- To install ShareGate Desktop for all users, use the following command line:
msiexec /i Sharegate.msi /q SHAREGATEINSTALLSCOPE=PERMACHINE RESTARTEDASADMIN=1 ALLUSERS=1
- Make sure you update the name of the file to reflect the exact name of the install file you downloaded in your script. For example, replace Sharegate.msi with Sharegate.12.5.0.msi in the script if that is the name of the file you downloaded.
- You can run the scripts with PowerShell as well. Check this article to set the location of the MSI file, and then you can run the same command line.