I followed the instructions in this answer about making a setup.msi work for non-elevated users: https://stackoverflow.com/a/55700346/11860907
I have used these instructions for a different application with success.
When I run the .msi as it is, it requires admin permission to install but otherwise installs with no issue.
Here is the .bat file I ran to remove the admin permission prompt
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\MsiInfo.exe" "C:\Users\jbrown\source\repos\Step File Generator\Step File Tool\Release\Step File Tool.msi" -w 10
pause
After I ran this bat and tried to install the msi, it continued past the part that usually asks for admin permission but then why do I get the following error?
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2920.
I researched this error code without helpful results. The following suggested I get an msi log: https://www.itninja.com/question/the-error-code-is-2920
When I try to run the msi through powershell with this command:
msiexec /l*v "H:\log.log" /i '.\Step File Tool.msi'
I get the following error:
This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
And the the following is the log output:
=== Verbose logging started: 12/11/2020 11:31:47 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\WINDOWS\system32\msiexec.exe ===
MSI (c) (84:A0) [11:31:47:820]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (84:A0) [11:31:47:820]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (84:A0) [11:31:47:839]: Resetting cached policy values
MSI (c) (84:A0) [11:31:47:839]: Machine policy value 'Debug' is 0
MSI (c) (84:A0) [11:31:47:839]: ******* RunEngine:
******* Product: .\Step File Tool.msi
******* Action:
******* CommandLine: **********
MSI (c) (84:A0) [11:31:47:841]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (84:A0) [11:31:47:884]: Note: 1: 1324 2: . 3: 1
MSI (c) (84:A0) [11:31:47:884]: MainEngineThread is returning 2
=== Verbose logging stopped: 12/11/2020 11:31:47 ===