A huge collection of 3400+ free website templates JAR theme com WP themes and more at the biggest community-driven free web design site
Home / Microsoft / Converted App-V 5 packages fix for Windows 10 1703 and later

Converted App-V 5 packages fix for Windows 10 1703 and later

This is a quick and dirty script to fix App-V 4.x packages converted to App-V 5 and the problems running those packages in Windows 10 1703 and later.

See this example as an inspiration, most likely you have to edit the script to fit your environment.

A prereq is the tool «TweakAppV» by Caphyon available here: https://www.advancedinstaller.com/tools.html

The solution was found by british_gov in this thread: https://social.technet.microsoft.com/Forums/en-US/f68b042c-f024-4b62-8540-81855b735793/appv-application-fails-to-launch-on-1703-but-works-on-1607?forum=mdopappv

$TweakAppV = "${env:ProgramFiles(x86)}\Caphyon\TweakAppV\TweakAppV.exe" 
 
if (!(Test-Path $TweakAppV)){Throw "TweakAppV.exe must be installed"} 
 
$LogFile = "C:\Temp\AppV_Mod.log" 
 
$AppVPackagesPath = "C:\Temp\AppV5ToFix" 
$AppVPackages = Get-ChildItem $AppVPackagesPath -Recurse -Include "*.appv" 
$RegKeysToDelete = @( 
"registry\machine\system" 
"registry\machine\software\microsoft\windows" 
"registry\machine\software\wow6432node\microsoft\windows" 
"registry\machine\software\microsoft\windowsnt" 
"registry\user\[{AppVCurrentUserSID}]\system" 
"registry\user\[{AppVCurrentUserSID}]\Network" 
"registry\user\[{AppVCurrentUserSID}]\software\microsoft" 
"registry\user\[{AppVCurrentUserSID}]\software\classes" 
) 
 
foreach ($package in $AppVPackages) 
{ 
    $FullName = $package.FullName 
    "# Working on $FullName" | Out-File $LogFile -Append -NoClobber 
 
    foreach ($RegKey in $RegKeysToDelete) 
    { 
        "--- Working on key $RegKey" | Out-File $LogFile -Append -NoClobber 
        Start-Process "$TweakAppV" -ArgumentList "/Update `"$FullName`" /Del-RegistryKeyAndSubkeys $RegKey" -Wait 
    } 
}

 

Get-Uninstall -Computer $ENV:COMPUTERNAME -Product «*Java*» | Select-Object DisplayName, DisplayVersion, GUID, UninstallString -Verbose | export-csv ‘c:\exportUninstall.txt’

Espero que les haya gustado y servidor de ayuda.
Un saludo =)

Jesus

Sobre nosotros dnx0472

Check Also

Ampliacion de esquema AD

Best free WordPress theme

Deja un comentario