diff --git a/Installer/Setup Packager for Intune.msi b/Installer/Setup Packager for Intune.msi index a67f179..ec676e2 100644 Binary files a/Installer/Setup Packager for Intune.msi and b/Installer/Setup Packager for Intune.msi differ diff --git a/Scripts/Intune.ps1 b/Scripts/Intune.ps1 index 7ceb974..8aa7a4a 100644 --- a/Scripts/Intune.ps1 +++ b/Scripts/Intune.ps1 @@ -14,8 +14,17 @@ Param( Set-ExecutionPolicy ByPass -Scope CurrentUser # Connect to Intune -# Install-Module -Name "IntuneWin32App" -Connect-MSIntuneGraph -TenantID $Tenant | Out-Null +If (Get-InstalledModule "IntuneWin32App") +{ + Connect-MSIntuneGraph -TenantID $Tenant | Out-Null +} +Else +{ + Write-Host "IntuneWin32App module not found - please install it first." -ForegroundColor Black -BackgroundColor Yellow + Write-Host "https://github.com/MSEndpointMgr/IntuneWin32App" + # Install-Module -Name "IntuneWin32App" + Exit 1 +} # Get MSI meta data from .intunewin file $IntuneWinMetaData = Get-IntuneWin32AppMetaData -FilePath $IntuneWinFile diff --git a/SetupPackager.exe b/SetupPackager.exe index ef7a9b6..38a363d 100644 Binary files a/SetupPackager.exe and b/SetupPackager.exe differ