The update is still not able to complete. As mentioned previously, the only way to get it to work is to right-click and choose “Run as Administrator”. Again, I don’t want the user to have to go through this process. I want it to be automatic but the user can be prompted if necessary.
As you suggested, I changed in both the original install V12.3.1 (target) and in V12.3.2 (update) the “Installation Type” to read “Per-machine only (fails if user is not administrator)” on the “Install Parameters” page. In addition, I do have “Run as Administrator” checked on that page in both cases for an exe build. However, when I try to build both msi files needed for the patch, it automatically unchecks “Run as Administrator” on the “Install Parameters” page.
I then created the msp patch file using the two msi files created above and then generated an Update Configuration File from the patch. I then updated these two files on my website. I uninstalled and reinstalled V12.3.1 to take on the new settings above. When checking for updates with the Updater it says one exists (V12.3.2), it downloads it, but when it gets to my custom action which writes to the LM registry, it fails. Again, if I right-click on the Updater and “Run as Administrator”, then it gets past this point.
Just as a test, I tried installing the software using the target V12.3.1 msi file and it gives the same error that it can't write to the LM registry. Though, right-clicking on the msi file in this case does not give an option to “Run as Administrator”. So the msi’s or msp’s are not being built with “Run as Administrator”, even after changing what you requested. How can I get them to “Run as Administrator”?
What am I doing wrong? I’m trying to get this next version of our software out with this Updater feature included and this seems to be taking too long. This was due last week. Please help!
FYI: I also am going to apply a digital signature to suppress the elevation prompt. I’m in the application process for one and they will be sending my certificate today or tomorrow.
Thanks again for your help.