I have a Visual Studio 2008 ASP.NET application project for which I have used a Deployment Project to create a web installer.
I wish to create a network installation of this application, but the files end up in the default directory specified in the installer rather than the TARGETDIR specified on the command line.
In other words, instead of extracting the files to c:\Output, they end up in c:\inetpub\wwwroot\TestWebSetup.
Looking at the msiexec log, I see that the TARGETDIR property is set to the value specified on the command line, but later it is modified to the value specified in the installer:
MSI (c) (04:0C) [09:46:34:546]: Command Line: TARGETDIR=c:\output ACTION=ADMIN CURRENTDIRECTORY=c:\Install CLIENTUILEVEL=0 CLIENTPROCESSID=2820
...
MSI (c) (04:0C) [09:46:34:562]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'c:\output'.
...
MSI (c) (04!4C) [09:46:35:202]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'c:\output'. Its new value: 'C:\inetpub\wwwroot\TestWebSetup\'.
Is there anything I can specify on the command line for msiexec or do I need to modify the installer?
Note that at the moment I am limited to using Visual Studio Deployment projects and the installer should still be able to run normally, i.e. one installer for doing network as well as normal installations.