xmcs pc wrote:
> 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.  

The WiX CAs don't persist that data outside the install transaction so 
if you're using properties to define it, you need to persist them and 
load them for uninstall.

> 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).

Correct. The WiX CAs don't support that kind of "high-impact" 
maintenance mode. In MSI terms, it'd be like changing the install 
directory. If you want to do that, you need some kind of 
uninstall/reinstall, like a major upgrade.

-- 
sig://boB
http://bobs.org



-------------------------------------------------------------------------
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