setup/PreInstall.ps1

# Pre-install script to check if the MSI PowerShell module is installed

# Check if the MSI PowerShell module is installed
$module = Get-Module -Name MSI -ListAvailable

# If the module is not installed, install it
if ($null -eq $module) {
    Install-Module -Name MSI -Force
}