I'd like to confirm if my thinking/understanding is correct here...

In my setup, I allow the user to select the port and host header for an installed website. Custom dialog, then pass the port and host header to the <WebAddress> and I'm done. Seems so simple - Wix rocks!

Problem #1 - if I don't persist the user-defined port and host header (i.e. to registry), and then re-use those values in <WebAddress>, the uninstall doesn't remove the website. After thinking about it for a bit, this seems reasonable since you want to be absolutely sure you are removing the proper website and unless WiX persists the SiteId of the created IisWebServer metabase object for future reference, there is no way to guarantee you are operating on the same site. Requiring an exact match of ip, port, and host header is probably the safest choice if you don't have the SiteID on hand.

Problem #2 - If I want to allow the user to modify the host header setting from a maintenance dialog (i.e. Add/Remove Programs... Change), then I would need to ensure the "current" host header is used during IIS "unpublish phase" (to ensure the IIS CA matches the currently-installed site), then use the "new" host header during IIS "re-publish phase". From what I can see in the InstallExecute tables, there is only a single IIS configuration action, so it looks like there is no place for me to insert a custom action to switch out property values between IIS "unpublish" and "re-publish" (I made those terms up... think in terms of the distinct RemoveFiles and InstallFiles actions).

So... if my understanding thus far is correct... the best option would be to disallow modifying any of the <WebAddress> parameters during maintenance. If they need to be changed, then a complete uninstall and re-install is in order.

make sense?  or am I missing something?

_________________________________________________________________
Say hello to the next generation of Search. Live Search – try it now. http://www.live.com/?mkt=en-ca


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to