EXE App Installation

SOTI MobiControl
Windows

he EXE App Installation script allows IT administrators to seamlessly deploy EXE-based applications across Windows devices within the organization. This functionality ensures that new software can be efficiently installed on multiple devices, helping streamline the rollout of essential applications while maintaining control over the deployment process, all from a centralized management console.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

EXE app installation

1 # Define the download link for the Enterprise app
2 $downloadLink = "https://nodejs.org/dist/v10.18.0/node-v10.18.0-x64.msi"
3 # Define the directory where you want to save the downloaded EXE file
4 $downloadDir = "C:\Users\vkhandelwal\nodejs"
5 # Define the path including the filename for the downloaded EXE file
6 $downloadPath = "$downloadDir\node-v10.18.0-x64.msi"
7 # Create the directory if it doesn't exist
8 if (-not (Test-Path -Path $downloadDir)) {
9 New-Item -ItemType Directory -Path $downloadDir
10 }
11 # Download the EXE file
12 Invoke-WebRequest -Uri $downloadLink -OutFile $downloadPath
13 # Check if the download was successful
14 if (Test-Path $downloadPath) {
15 Write-Output "Download completed successfully."
16 # Install the Enterprise app
17 try {
18 Start-Process -FilePath $downloadPath -Wait -ArgumentList "/S" # Use /S for silent installation
19 Write-Output "Installation completed."
20 } catch {
21 Write-Output "Installation failed: $_"
22 }
23 } else {
24 Write-Output "Failed to download the Enterprise app."
25 }

Was this helpful?

Need more help?
Ask Community