Skip to content

Instantly share code, notes, and snippets.

View Firewaters's full-sized avatar

Daniel Firewaters

View GitHub Profile
@Firewaters
Firewaters / install-app.ps1
Created August 1, 2023 00:57
Basic PowerShell Function to download and install MSI or executables on a system, this can also compare and upgrade based on file version.
function Install-App {
<#
.DESCRIPTION
Basic PowerShell Function to download and install MSI or executables on a system, this can also compare and upgrade based on file version.
.PARAMETER msiURL
The url to the .msi file
.PARAMETER exeURL
The url to the .exe file
.PARAMETER InstallCheck
The executable to check if already installed