![]() ![]() LogInfo("$logdate > Deployment completed") LogInfo("$logdate > Starting deployment of $appname")Īdd-AppxPackage -register $apppath -DisableDevelopmentMode LogInfo("$logdate > $appname already deployed") If ((Get-AppxPackage).PackageFullName -eq $appname) $sDateTime + " > " + $sBuf | Out-File -FilePath $logFile -Append $sDateTime = Get-Date -UFormat "%Y-%m-%d %H:%M:%S" Write-Host $sBuf -ForegroundColor Magenta If($sBuf.ToLower().Contains("error") -or $sBuf.ToLower().Contains("warning")) $flgpath = Join-Path $env:LOCALAPPDATA\"ClientLog" "Appx_Installflag_$appname.flg" ![]() $logdate = Get-Date -Format "yyyy-MM-dd hh:mm:ss" $date = Get-Date -Format "yyyyMMdd-hhmmss" ![]() $apppath = "C:\Program Files\WindowsApps\Microsoft.WindowsAlarms_10.1706.2401.0_圆4_8wekyb3d8bbwe\appxmanifest.xml" flg mark file ( %LOCALAPPDATA%\ClientLog\Appx_Installflag_%VAR_AlarmsVersion%.flg) doesn’t exist. this script has to execute in the user session,.I’ve got lot’s of comment to this blog post where people have still some issues to deploy AppX’s. So I would like to extend this post here with my script how I solved it on the customer site. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |