top of page
Search

"How to Use Powershell Script or Switches for Installing different Softwares: A Comprehensive Guide" - Part 1

Jun 19, 2024
1 min read
  1. Adobe Acrobat Pro (switch/script)

Start-process setup.exe /sAll

Start-Sleep -seconds 25


2. Adobe Captivate (switch/script)

Start-Process setup.exe -Wait -ArgumentList '--silent'

Start-Sleep 30


3. Adobe Reader (switch)

filename.exe /sAll /qn


4. Camtasia (switch/script), make sure you check for dependency is installed.

Part -1 checking for redistributable, if not available it will install, repeat this step if two

                 dependency needs to be installed.

$Counter = 0

$CounterMin = 1

$Version = 'Put version number'


$Installedversion = Get-ItemPropertyvalue -Path 'Registry Path' -Name Version

$FinalVersion1 = $Installedversion.substring(1,$Installedversion.length-1)


if (($FinalVersion1 -lt $Version) -or ($FinalVersion1 -eq $NuLL))

{

Start-Process redistributablefilename.exe -ArgumentList "/install /quiet /norestart"

Start-Sleep -seconds 15

}


Part - 2 Installation of software

Start-process camtasia.msi -ArgumentList " TRANSFORMS=filename.mst /quiet /norestart"

Start-Sleep -seconds 25


5. Office Timeline Pro (switch/script), make sure you check for dependency is installed.

Part -1 checking for redistributable, if not available it will install, repeat this step if two

dependency needs to be installed.

$Counter = 0

$CounterMin = 1

$Version = 'Put version number'


$Installedversion = Get-ItemPropertyvalue -Path 'Registry Path' -Name Version

$FinalVersion1 = $Installedversion.substring(1,$Installedversion.length-1)



if (($FinalVersion1 -lt $Version) -or ($FinalVersion1 -eq $NuLL))

{

Start-Process redistributablefilename.exe -ArgumentList "/install /quiet /norestart"

Start-Sleep -seconds 15


}


Part - 2 Software installation

Start-process msiexec.exe -ArgumentList "/i OfficeTimeline.msi LICENSEKEY=Enter

License Key /norestart /passive"

Start-Sleep -seconds 25

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

Disclaimer: The above content is created at Tek-Doyen's sole discretion. Razorpay shall not be liable for any content provided here and shall not be responsible for any claims and liability that may arise due to merchant’s non-adherence to it.

bottom of page