I want to run a msi
package from a .cmd
file, but I have two drawbacks:
-
This code allows me to install the package
msi
, but I get the window where it asks me to press the next button andfinish
, also asks me if I want to run as administratormsiexec /i "C:\pruebainstall\setup2.msi"
-
Then I run the following code to install the
msi
package as administrator.msiexec /a "C:\pruebainstall\setup2.msi"
And with this, the installation assistant shows me and it no longer asks me to run as administrator, but the problem is that I get a message saying that the installer does not have administrator privileges and does not allow me to install.
I would appreciate if you could help me with this code in such a way that when I run the file .cmd
I can install without showing the installation wizard and that I do not request installer permissions.
Thanks