Link to home
Start Free TrialLog in
Avatar of sblanken

asked on

IIS virtual directory issue when installing an MSI silent


I'm trying to install an MSI package that will install as a virtual directory in IIS. I use this command

msiexec /i c:\DRDBService.msi TARGETDIR=C:\Inetpub\wwwroot\DR /quiet /qn /L*V "c:\out.log"

The install is OK, except is not installing in the target directory, but in the default package directory

I checked the out.log and I can see this error

Action start 18:46:51: WEBCA_EvaluateURLs.
DEBUG: Error 2769:  Custom Action WEBCA_EvaluateURLs did not close 2 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: WEBCA_EvaluateURLs, 2,
MSI (s) (14:D0) [18:46:51:198]: Doing action: CostInitialize
Action ended 18:46:51: WEBCA_EvaluateURLs. Return value 1.

Attached is the full log. I need this package to install silently in my target directory. This package is part of a complex installation, on many other specific servers with specific roles, and I cannot install it in any other folder except my needed target. Its too much overkill to change the rest of the installation to match the package destination folder.

Note that I have 6 other MSI packages the same as this one, but I assume that if I figure out one, Ill be OK with all of them


Avatar of Sam Panwar
Sam Panwar
Flag of India image


As per my understanding you have to first install all window updated like security patch and service pack on the server and then try to install the MSI file again. It will resolve the problem.
Avatar of sblanken


Didn't work :(. It change it back from my value to default, see below...It also gave me the same error as above, the MSIHANDLE error.

MSI (s) (E0!48) [09:03:58:306]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'C:\Inetpub\wwwroot\DR'. Its new value: 'c:\inetpub\wwwroot\DRDBService\'.

Any help is appreciated. Thanks
Avatar of Vadim Rapp
The change of your TARGETDIR is being made by custom action injected by visual studio setup; from the log, it's not totally clear which one of the two - WEBCA_EvaluateURLs  or WEBCA_SetTARGETSITE

If you author your installation with visual studio, there's not much you can do to avoid it without hacking the msi. See this link for more information and solution:
I found the solution

msiexec /i c:\DRDBService.msi TARGETDIR=C:\Inetpub\wwwroot\DR TERGETVDIR=DRDB /quiet /qn /L*VX c:\out.log

I forgot to include the virtual dir parameter.

This should remain for future reference
Avatar of sblanken

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial