Adding NEW registry with Admin rights windows 10 - Advanced Installer Community
Winchmore
Posts: 1
Joined: Fri Apr 24, 2020 11:24 am

Adding NEW registry with Admin rights windows 10

Hi Iam looking for a solution to install new reg entry to user PC who does not have access to the network.

User will get a reg file to install new entry on XXX i.e [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\XXX

Tried with script but it wont work without the PC admin login \PW

Cannot import RegFix.reg: not all data was successfully written to the registry. Some keys are open by the system or other processes, or you have insufficient privileges to perform this operations.

Looking for a easy solution to do this. Would you be able to advise if any off your product could do this. The pw would need to be hidden within the Exe\msi



Many Thanks for your help
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Adding NEW registry with Admin rights windows 10

Hello and welcome to Advanced Installer forums,

First of all, please keep in mind that working with registries will require administration privileges.

With that being said, your setup should run as administrator. To do so, you can simply check the "Run as administrator" option from the "Install Parameters" page.

If the user is administrator, the setup will be launched with administrator privileges. If the user is not the administrator, the there will be a prompt asking for the credentials. Please note that this all happens before the installation even starts.
credentials.png
credentials.png (74.92 KiB) Viewed 2185 times

When the credentials are entered, the user will be able to proceed with the installation.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”