Add "Run as administrator" to MSP files


  1. Posts : 174
    Windows 10 Enterprise x64 1709
       #1

    Add "Run as administrator" to MSP files


    To add support for MSP files as well, I made some changes but won't work, please advise :)

    Code:
    [HKEY_CLASSES_ROOT\MSI.Package\Shell\RunAS]
    "HasLUAShield"=""
    [HKEY_CLASSES_ROOT\MSP.Package\Shell\RunAS]
    "HasLUAShield"=""
    [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
    [HKEY_CLASSES_ROOT\MSP.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
      My Computer


  2. Posts : 14,005
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #2

    Just curious, since the .msp files are patches [versus .msi which are installer files] wouldn't it be just as easy to right-click one and choose Apply to get it installed?
      My Computers


  3. Posts : 174
    Windows 10 Enterprise x64 1709
    Thread Starter
       #3

    This question can be asked for MSI files as well, so we can say that doing so for MSI files is also useless, since eventually we'll get to the Admin mode when needed even if we don't run MSI files as Admin!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:12.
Find Us




Windows 10 Forums