I am trying to install a number of items that are MSI files from Microsoft suchs as SQLTypeCLRs.msi and SharedComponents.msi for SQL Server. When I try and install these I get errors 2502 & 2503 and it fails with a call runtime error. If I open a Command Prompt in Administrator mode and then start the MSI from that command line then it will run as adminsitrator. It's almost as though it doesn't try to access UAC. And you can't right click and click "Run As Administrator" on the file. Is there a way to fix this so it runs MSIs as Administrator so I don't keep getting these errors? I am getting this on my 2 Windows Server 2016 boxes.
I am simply tryihg to install new software that comes to me as MSIs and not EXEs.
Error 2503.Called RunScript when not marked in progress.
Error 2502.Called InstallFinalize when no install in progress.
I suspect your MSI does not have the Word Count Summary property set correctly. It must be set to 3 to ask for UAC's elevation. (info there)
With MSIInfo (with -w flag), a tool from the Windows SDK, we can read the msi information to see if it's the case, it can modify it too I think. I'am not familar with the use of the tool.
ORCA's tool can be used to set the bit correctly too.
As seen from that answer, and quoted only the important details;
Found an answer to the ShellExecuteEx issue which fixed this issues as well.
Domain Admins UAC Permission On Domain Controller