Opened 10 years ago

Closed 10 years ago

#912 closed defect (fixed)

Installer: IIS7 Custom Action contains defects

Reported by: jbirch Owned by:
Priority: medium Milestone: 2.1
Component: Installer Version:
Severity: major Keywords:
Cc: jng External ID:


Currently, the IIS7 custom action:

  • Does not associate the MapGuide virtual directories / applications with the correct app pool
  • Does not set up handler mappings for the mapagent or PHP correctly

Patch for the first defect forthcoming; am looking at the second now.

Attachments (2)

mginstall_iis7_webpoolfix.patch (1.9 KB) - added by jbirch 10 years ago.
iis7_set.log (5.7 KB) - added by jbirch 10 years ago.

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by jbirch

comment:1 Changed 10 years ago by jng

Applied patch in r3741

comment:2 Changed 10 years ago by jbirch

Gah... I'm attaching a log of what's happening to me. No matter what I do, the script does not seem to create the web.config files properly. Run as admin, etc, etc. I did find some defects in the CA, and I'll be checking those in shortly.

Changed 10 years ago by jbirch

Attachment: iis7_set.log added

comment:3 Changed 10 years ago by jng

I haven't *really* had a thorough read of the code in the IIS7 action module, but it looks like just a series of appcmd.exe calls.

If that is the case, I'm in favour of scrapping the existing C++ code and going for the simpler wix CA approach.

comment:4 Changed 10 years ago by jbirch

I think I've puzzled out in my head why this isn't working.

The current CAs are being executed in immediate mode because in deferred mode the installer properties (such as the install location) are not available. However, in immediate mode the files haven't been copied to the destination yet so the IIS config tool can't create web.config files in those directories.

I believe that using type 51 CAs is the only way of dealing with this without hard-coding the parameters, so I'll go ahead and make those changes to use the WiX built-in CAs and remove the IIS7 custom action project from the build, etc.

comment:5 Changed 10 years ago by jbirch

Partial work done in r3812

comment:6 Changed 10 years ago by jbirch

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.