maurice-daly / DriverAutomationTool

Home of the Driver Automation Tool
https://www.msendpointmgr.com
BSD 2-Clause "Simplified" License
395 stars 120 forks source link

[6.5.6] MSI Must Be Launched from CLI as Local Administrator to Install #257

Open cameronkollwitz opened 3 years ago

cameronkollwitz commented 3 years ago

As stated in the title, attempting to launch the MSI directly from File Explorer on a Local Administrator account will produce an error stating the installation has been restricted by an Administrator.

You can work around this by launching "Driver Automation Tool.msi" from a Command Prompt or PowerShell prompt (launched as Local Administrator) does not produce this error and installation can proceed.

OS: Windows Server 2019

cameronkollwitz commented 3 years ago

Additionally, this error appears if you try to Uninstall the application via Control Panel or Apps:

image

You can also work around this by launching the MSI from Command Prompt or PowerShell and then selecting "Remove" from the prompt and the issue does not appear.

JCPine77 commented 3 years ago

The right-click RunAs function for .msi files can be added to File Explorer by merging the following in the registry.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command] @=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\ 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\ 73,00,69,00,65,00,78,00,65,00,63,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,\ 00,69,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00

nodiaque commented 2 years ago

yeah, but compiling an app as user installable when default install path is program file is a big mistake. This msi should have an administrator manifest.