Fast gelöst: der Aufruf
Code: Alles auswählen
powershellCall('Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Microsoft.Officehub*"} | Remove-AppxProvisionedPackage -online')
Löscht brav die App. Jetzt habe ich in der Control Datei eine Property definiert:
Code: Alles auswählen
[ProductProperty]
type: bool
name: microsoft.officehub
description: Entfernt die Office 365 App
default: True
Jetzt eine ganz blöde Frage, wie werte ich die mit if auf true aus?
Code: Alles auswählen
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $MicrosoftOfficehub$
Set $MicrosoftOfficehub$ = GetProductProperty("Microsoft.Officehub","")
if $MicrosoftOfficehub$ =true
powershellCall('Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Microsoft.Officehub*"} | Remove-AppxProvisionedPackage -online')
endif