Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment via Intune leads to errors at starting PowerToys #8622

Closed
tomsoe opened this issue Dec 16, 2020 · 7 comments
Closed

Deployment via Intune leads to errors at starting PowerToys #8622

tomsoe opened this issue Dec 16, 2020 · 7 comments
Labels
Area-Enterprise Issues relevant to large enterprises, SCCM, run as admin restrictions, ... Area-Setup/Install Refers to installation mechanism Issue-Bug Something isn't working Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Planning-Consideration Consideration for 2021 stability release Status-Blocked We can't make progress due to a dependency or issue Status-No recent activity no activity in the past 5 days when follow up's are needed

Comments

@tomsoe
Copy link

tomsoe commented Dec 16, 2020

ℹ Computer information

  • PowerToys version: 0.27.1
  • PowerToy Utility: All
  • Running PowerToys as Admin: No
  • Windows build number: Microsoft Windows 20H2 (OS-build 19042.685)

📝 Provide detailed reproduction steps (if any)

  1. Installing PowerToys via Intune through Company Portal. The initial package is made with PowerShell App Deployment Kit with this parameter for installation: Execute-Process -Path "$dirFiles\PowerToysSetup-0.27.1-x64.exe" -Parameters '--silent'

The installation is working fine while running the script in admin context, but when I install via Intune I stuble upon a couple of errors.

My two cents are that there might be issues with the context which the package runs from:
User context: Runs OK*
Admin context: Runs OK
System context: Failed

*User context is not an option in this case since the application prompts for elevated rights when running the installation *.exe. The users are not allowed to run anything with elevated rights in my environment.

✔️ Expected result

What is the expected result of the above steps?
I guess I expect the application to be installed with no errors as it does when installing it manually or in admin context.

❌ Actual result

What is the actual result of the above steps?
If I install PT manually in user and admin context it works as expected. All features runs OK.
If I install the application through Company Portal the installation progress reports no errors for users, but when you start the application from the start menu you're in a loop of errors.

The application doesn't seem to start when running it. No logo in the bottom-right corner (^), neither any signs of PowerToys running in Task Manager.

If you start explorer.exe while PT is installed it will just crash over and over. If you start explorer.exe in admin context it might not crash however this isn't consistant.

PowerToys also fails to create the schedule task. When running in '--silent' you won't get the error, but when you run it with '--no_full_ui' you'll get the errormsg.

I get these errors in eventwr.msc (appologies for foreign language):
Programnavn med feil: PowerToys.exe, versjon: 0.27.1.0, tidsangivelse: 0x5fcfc216
Modulnavn med feil: PowerToys.exe, versjon: 0.27.1.0, tidsangivelse: 0x5fcfc216
Unntakskode: 0xc0000409
Feilforskyvning: 0x000000000009943d
Feil prosess-ID: 0x32b8
Feil starttid for program: 0x01d6d2b64f137741
Feil programbane: C:\Program Files\PowerToys\PowerToys.exe
Feil modulbane: C:\Program Files\PowerToys\PowerToys.exe
Rapport-ID: 88d7da11-98dd-49c7-a2b4-b3e7ab8e6cd9
Fullstendig navn på feilpakke:
Relativ program-ID for feilpakke:

Programnavn med feil: explorer.exe, versjon: 10.0.19041.662, tidsangivelse: 0x996782f8
Modulnavn med feil: ucrtbase.dll, versjon: 10.0.19041.546, tidsangivelse: 0x43cbc11d
Unntakskode: 0xc0000409
Feilforskyvning: 0x000000000007287e
Feil prosess-ID: 0x4308
Feil starttid for program: 0x01d6d2b62d9ae29f
Feil programbane: C:\Windows\explorer.exe
Feil modulbane: C:\Windows\System32\ucrtbase.dll
Rapport-ID: f023a40b-df89-4fdf-ab6c-15b260fc93bc
Fullstendig navn på feilpakke:
Relativ program-ID for feilpakke:

I've tried PT 0.25 - experimental 0.28. with the same errors as mentioned.
Intune is using system account to install software.

The only related issue I've stumbled upon is #1910

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

@tomsoe tomsoe added the Issue-Bug Something isn't working label Dec 16, 2020
@ghost ghost added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Dec 16, 2020
@Aaron-Junker Aaron-Junker added the Area-Setup/Install Refers to installation mechanism label Dec 16, 2020
@crutkas crutkas added Planning-Consideration Consideration for 2021 stability release and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 17, 2020
@enricogior
Copy link
Contributor

@tomsoe
I suspect the only solution here is to provide the functionality to extract the msi from the .exe as in #8602
On your side, you will have to add a pre step of installing .NET Core and keep that step updated when we will switch to .NET 5.0 and later.
You will have to uninstall the existing installation of PowerToys before installing a new version.
Would that be an acceptable solution for you?

@tomsoe
Copy link
Author

tomsoe commented Dec 17, 2020

@enricogior
Thanks for replying! :)

I tried your suggestion to extract the msi from the *.exe.
I did this by running the *.exe and extract *.msi from %Temp%.

I used this command to uninstall which is also used in my pre-installation section

        if(Test-path "C:\Program Files\PowerToys\PowerToys.exe"){
        Execute-MSI -Action Uninstall -Path "{3E993172-002F-4D62-BC26-8A3B0F036F7F}" 
        }

I also added an if statement to check the current version of .NET on the device. If its outdated or doesn't exist it will install .NET 3.1.

I used this command to install:
Execute-MSI -Path "$dirFiles\PowerToysBootstrappedInstaller-0.27.1.0.msi"-Parameters "/qb-!"

Result:
Same as I originally mentioned above, e.g:
Script works when running locally.
While running in system context: Explorer.exe crashes when PT is installed. No PT running in Task Manager.

@tomsoe
Copy link
Author

tomsoe commented Jan 11, 2021

Hi, do you have any update on this issue, @crutkas ? :)

@crutkas crutkas added the Area-Enterprise Issues relevant to large enterprises, SCCM, run as admin restrictions, ... label Feb 9, 2021
@enricogior
Copy link
Contributor

We will revisit this issue after we fix #9720, #9169, #8523

@enricogior enricogior added the Status-Blocked We can't make progress due to a dependency or issue label Mar 9, 2021
@tomsoe
Copy link
Author

tomsoe commented Mar 9, 2021

Alright @enricogior. If there is anything I can help with, let me know! :)

@crutkas
Copy link
Member

crutkas commented Dec 1, 2021

@tomsoe, #13647 says they are installing via intunes and 2 of the 3 items here are fixed.

@crutkas crutkas added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Dec 1, 2021
@ghost ghost added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Dec 7, 2021
@ghost
Copy link

ghost commented Dec 7, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

@ghost ghost closed this as completed Dec 12, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Enterprise Issues relevant to large enterprises, SCCM, run as admin restrictions, ... Area-Setup/Install Refers to installation mechanism Issue-Bug Something isn't working Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Planning-Consideration Consideration for 2021 stability release Status-Blocked We can't make progress due to a dependency or issue Status-No recent activity no activity in the past 5 days when follow up's are needed
Projects
None yet
Development

No branches or pull requests

4 participants