-1

I have a msi file when I install it writes instructions to HKEY_LOCAL_MACHINE;and give UAC to user to do it or not I want to edit this behaviour I mean prompting for a UAC in a way that it will do all the installation without prompting to user for a UAC in windows 7.My question is what needs to be modify in a file.

user2959423
  • 29
  • 1
  • 5

1 Answers1

0

When UAC is enabled an elevation dialog is always required to get the privileges to write to HKLM. There isn't anything you can modify to prevent this requirement for elevated privilege. You could run the MSI as administrator, or start it from an exe (but the exe will require an elevation dialog anyway), but again these are just ways to get the required elevated privileges.

So you could open the MSI file with Orca, View Summary Information, and then check the UAC compliant box, but if the install really requires elevation then the install will fail with "You do not have sufficient privileges...."

PhilDW
  • 20,260
  • 1
  • 18
  • 28