Software silent installation

Software silent installation


Test script before deploying.

Function Install-Software ($installer, $arguments) {
    If (Test-Path $installer) {
        try {
            $process = Start-Process -FilePath $installer -ArgumentList $arguments -PassThru -ErrorAction Stop
            Write-Output "Starting software installation..."

            # Start the progress bar
            $progress = 0
            while (!$process.HasExited) {
                $progress = ($progress + 1) % 100
                Write-Progress -Activity "Installing software..." -Status "$progress% Complete:" -PercentComplete $progress
                Start-Sleep -Seconds 1
            }

            # Clear the progress bar
            Write-Progress -Activity "Installing software..." -Completed

            if ($process.ExitCode -eq 0) {
                Write-Output "Software installation successful."
            } else {
                Write-Output "Software installation failed with exit code $($process.ExitCode)."
            }
        }
        catch {
            Write-Output "Failed to install software. Error: $_"
        }
    }
    else {
        Write-Output "$installer does not exist."
    }
}

# Install software
$installer = "Path\to\your\installer.exe" # Replace this with the path to your installer
$arguments = "/S LICENSE=True USERNAME=XXX USERCOMPANY=XXXXX SERIALNUMBER=XXX-XXXXXXXX SAVESITELICENSECODE=XXXXXXXX" # Replace this with your installer's specific arguments

Install-Software -installer $installer -arguments $arguments
    • Related Articles

    • Software not registering manual file registration steps

      There could be many possible issues from installation problems, firewalls, permissions, etc. In almost all cases they can be resolved, but for some odd ones. Follow the steps below. The registration file is attached to this email.  1. Download and ...
    • SCCM script with Silent Install

      #Get Folder to Install SW Because installing over the wireless may take to long. Get-Item "\\SERVER\0rganize\SWLicensed\ProLandscape\PLSFiles" | Copy-Item -Destination "C:\Downloads\SW" -Recurse Start-Sleep -S 300 #Execute Installation & ...
    • PRO Landscape Software Copyright Information

      User’s Guide ® 2018 Drafix Software, Inc. All rights reserved. This publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose. Drafix Software, Inc., makes no warranty, either expressed or implied, including but ...
    • Transferring software to another computer

      You can either email or call tech support and let us know that you are moving the software to another computer. Please provide us the registration details of the system being replaced so that we can deactivate it. For versions 18 and below. Please ...
    • Registering your PRO Landscape Software

      You can locate this information with the following instructions: 1. Open the PRO Landscape Dashboard. 2. Click on Register PRO Landscape link. 3. Click on the print or register now button. A notepad document will popup. 4. Copy all the information ...