diff --git a/CMPackager.ps1 b/CMPackager.ps1 index 6f7eb77..25e72c3 100644 --- a/CMPackager.ps1 +++ b/CMPackager.ps1 @@ -1704,10 +1704,10 @@ Combines the output from Get-ChildItem with the Get-ExtensionAttribute function, Write-Host "Superseding $($DeploymentType.LocalizedDisplayName)" $SupersededDeploymentType = $OldAppDeploymentTypes | Where-Object LocalizedDisplayName -eq $DeploymentType.LocalizedDisplayName if ($UninstallOldApp) { - Add-CMDeploymentTypeSupersedence -SupersedingDeploymentType $DeploymentType -SupersededDeploymentType $SupersededDeploymentType -IsUninstall $true | Out-Null + Set-CMApplicationSupersedence -Name $NewApp.LocalizedDisplayName -CurrentDeploymentType $DeploymentType -SupersededApplication $OldApp -OldDeploymentType $SupersededDeploymentType -IsUninstall $true | Out-Null } else { - Add-CMDeploymentTypeSupersedence -SupersedingDeploymentType $DeploymentType -SupersededDeploymentType $SupersededDeploymentType | Out-Null + Set-CMApplicationSupersedence -Name $NewApp.LocalizedDisplayName -CurrentDeploymentType $DeploymentType -SupersededApplication $OldApp -OldDeploymentType $SupersededDeploymentType -IsUninstall $false | Out-Null } } } diff --git a/Disabled/Screenpresso.xml b/Disabled/Screenpresso.xml new file mode 100644 index 0000000..2f44c25 --- /dev/null +++ b/Disabled/Screenpresso.xml @@ -0,0 +1,62 @@ + + + Screenpresso + Screenpresso captures your desktop (screenshots and HD videos) for your training documents, collaborative design work, IT bug reports, and more… + Learnpulse + False + https://www.screenpresso.com/ + Screenpresso.ico + + + + https://www.screenpresso.com/binaries/releases/stable/dotnet47/ScreenpressoSetup.msi + ScreenpressoSetup.msi + + + #Script to check version + $version = ([string] (Get-AppLockerFileInformation -Path "$Global:TempDir\$DownloadFileName" | select -ExpandProperty Publisher | select BinaryVersion)).TrimStart('@{BinaryVersion=').trim("}") + + + + + + Screenpresso x64 silent install + MSI + ScreenpressoSetup.msi + False + True + True + Download + msiexec /i ScreenpressoSetup.msi /q /norestart /l*v install.log + powershell.exe -noprofile -noninteractive -command ""`& {exit ((Get-Package screenpresso | Uninstall-Package -AllVersions -force).ExitCode)}"" + InstallForSystem + WhetherOrNotUserLoggedOn + Hidden + 5 + 60 + BasedOnExitCode + Custom + + + File + screenpresso.exe + %ProgramFiles%\Learnpulse\Screenpresso + Version + $Version + GreaterEquals + True + + + + + + True + + + True + False + + + True + + \ No newline at end of file diff --git a/ExtraFiles/icons/Screenpresso.ico b/ExtraFiles/icons/Screenpresso.ico new file mode 100644 index 0000000..f7019f8 Binary files /dev/null and b/ExtraFiles/icons/Screenpresso.ico differ