Author Topic: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app  (Read 861 times)

Offline beefy80

  • Newbie
  • *
  • Posts: 8
    • View Profile
MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
« 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 for more details.  Wanted to give a heads up in case anyone else notices this issue.

Offline Andrew Jimenez

  • Patch My PC - Support Engineer
  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
« Reply #1 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.

Offline Andrew Jimenez

  • Patch My PC - Support Engineer
  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
« Reply #2 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()
}

Offline beefy80

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
« Reply #3 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.

Offline Andrew Jimenez

  • Patch My PC - Support Engineer
  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: MSI Missing File Issue with Powertoys 0.31.2.0 when opening app
« Reply #4 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.