1

I have an .MSI installer that I created using WIX and works fine when opening the file from windows explorer or installing from a command window using msiexec /i. The problem is that I need to use /a to install it using a group policy when the computer turns on.

When using the /i option the ProgramFilesFolder value is set correctly to "C:\Program Files (x86)\".

When using the /a option the value of ProgramFilesFolder is set to "C:\", and then I get an error (on the Log) that says:

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203. The arguments are: C:\Referrals.msi, -2147287035,

Note: I am not running the .MSI file from "C:\"

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
user1845791
  • 993
  • 2
  • 9
  • 17

2 Answers2

0

Try

msiexec /a TARGETDIR="c:\temp\location" /passive
saschabeaumont
  • 22,080
  • 4
  • 63
  • 85
0

I think you may have the msiexec.exe command line mixed up: /a is admin install. This is essentially a command to create a network installation point with extracted files to use for installation on a lot of computers. This ensures the source files are available for patching, self-repair, repair, reinstall, etc...

To deal with advertisement and group policy you need to use these command line options. So a very basic operation would be advertise product to all users silently and write a log file:

msiexec.exe /JM "Installer.msi" /QN /L* "C:\msilog.log"
Community
  • 1
  • 1
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164