Update software without admin rights and access the registry

10,420

It may be too late but if you can do one last administrative update you can set the permissions on the registry key via RegistryKey.GetAccessControl, set write access to the key, then use RegistryKey.SetAccessControl to save the setting (This will require admin privs the first time you try to do it)

Share:
10,420
slfan
Author by

slfan

Dipl. Ing. ETH Zürich (Switzerland) / dipl. Wirtschaftsing. STV MCPD Web / Windows .NET 4.0 / Silverlight + Azure / MCSD Web .NET 4.5 / Xamarin Mobile Developer Microsoft Certified Trainer since 2005 Software Developer and Architect C#, ASP.NET/MVC, .NET Core, WPF, Services, WCF, Entity Framework, Azure, Xamarin

Updated on June 04, 2022

Comments

  • slfan
    slfan almost 2 years

    I have a .NET application that still uses the registry. I would now like to do updates without the user being administrator and without changing the group policy object. During the update process I need access to the registry. The initial installation of the application can be done by an admin.

    Is there any possibility to achieve this goal? Could I use a certifcate for this?