Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix Installer: Error 1925 when using silent installer

In my wix setup, I use InstallScope="perMachine". In the interactive setup, there is no problem and it installs my application perfectly. However, when I try to install it from command line using /qn, I get the following error.

MSI (s) (60:EC) [11:51:05:268]: Product: ClickShare Launcher -- Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation.

Could anyone tell me why it gives such problem only in silent installation? Does command line have different user privileges? Can I somehow detect if the user has required privileges and install the application perUser instead of perMachine? Would this be a solution?

Thanks.

like image 889
Dundar Avatar asked May 07 '26 21:05

Dundar


2 Answers

You can try to set the install per user / per machine code as a parameter

C:\Users\xxxxx\Desktop>msiexec /i "program.msi"  MSIINSTALLPERUSER=1 ALLUSERS=2 /qn

this helped us on a application that did NOT require admin priviledge on interactive, but did require admin priviledge on silent mode....

maybe it helps some other users in the future... (from google searches)

like image 117
snapo Avatar answered May 09 '26 13:05

snapo


Starting with Windows Vista, MSI installs running from a standard user process requiring elevation cannot do so when running silent. This is due to UAC. Elevate the process prior to invoking msiexec.

like image 22
Christopher Painter Avatar answered May 09 '26 13:05

Christopher Painter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!