Microsoft Intune Powershell script to install Fabreasy

Harm Oosthoek created and shared a Powershell script to install the Fabreasy PDF Creator with Microsoft Intune and import the license and settings:

# Path to the Fabreasy installation file
$installerPath = “$PSScriptRoot\fabreasyPDFcreator-setup.exe”

# Install Fabreasy
Start-Process -FilePath $installerPath -ArgumentList “/VERYSILENT” -Wait

# Copy settings and license to C:\Fabreasy
$destinationPath = “C:\Fabreasy”
if (-Not (Test-Path -Path $destinationPath)) {
New-Item -ItemType Directory -Path $destinationPath
}

$settingsPath = “$PSScriptRoot\settings.dat”
$licenseFilePath = “$PSScriptRoot\license.txt”
Copy-Item -Path $settingsPath -Destination “$destinationPath\settings.dat” -Force
Copy-Item -Path $licenseFilePath -Destination “$destinationPath\license.txt” -Force

# Import settings
Start-Process -FilePath “C:\Program Files (x86)\fabreasy\Fabreasy_ImpExp.exe” -ArgumentList “Import $destinationPath\settings.dat” -Wait

# Activate the license
Start-Process -FilePath “C:\Program Files (x86)\fabreasy\Fabreasy_utility.exe” -ArgumentList “$destinationPath\license.txt” -Wait