Support Forum: Get Support for Patch My PC Products and Services

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Report Update/App Install Issues (Enterprises Using ConfigMgr and Intune) => Topic started by: beefy80 on February 19, 2021, 09:41:28 AM

Title: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
Post by: beefy80 on February 19, 2021, 09:41:28 AM
I have received reports from my users today that Power Toys 0.31.2.0 comes up with an MSI when they try to start the app.  Appears to be an issue in Power Toys installer when installed under the System Account.  See
https://github.com/microsoft/PowerToys/issues/9572 (https://github.com/microsoft/PowerToys/issues/9572) for more details.  Wanted to give a heads up in case anyone else notices this issue.
Title: Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
Post by: Andrew Jimenez (Patch My PC) on February 19, 2021, 10:35:40 AM
We are aware of this issue and was hoping that there would be a release to resolve it from the PowerToys team fairly quickly... That does not seem to be the case. It seems PowerToys does not install correctly as SYSTEM at the moment.
Title: Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
Post by: Andrew Jimenez (Patch My PC) on February 25, 2021, 12:21:00 PM
Hi there, I think we have determined that PowerToys is actually just making a bad shortcut in the start menu.
We've tested this a bit, but before we make this the standard for this app, could we get a few testers to use this as a post-install script for this app and confirm it fixes the problem?

$PowerToys = "{0}\PowerToys\PowerToys.exe" -f $env:ProgramFiles
$ShortCut = "{0}\Microsoft\Windows\Start Menu\Programs\PowerToys (Preview).lnk" -f $env:ProgramData

if (Test-Path $PowerToys) {
    if (Test-Path $ShortCut) {
        Remove-Item $ShortCut -ErrorAction "Stop"
    }
    $shell = New-Object -ComObject WScript.Shell -ErrorAction "Stop"
    $shortcut = $shell.CreateShortcut($ShortCut)
    $shortcut.TargetPath = $PowerToys
    $shortcut.Save()
}
Title: Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
Post by: beefy80 on February 25, 2021, 12:24:27 PM
Tested on my device and that seems to fix the issue for me.  So it's a rouge shortcut that is causing the issue.
Title: Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
Post by: Andrew Jimenez (Patch My PC) on February 25, 2021, 12:25:31 PM
Yeah, it seems like the installer is generating some sort of "advertisement" shortcut for users instead of just a shortcut to the install.