In WiX how can I select an IIS website by name?

前端 未结 5 1881
傲寒
傲寒 2021-01-31 22:31

What I would like to do is show the installer user a list of the websites on their server and allow them to choose one (using the method described here: http://www.cmcrossroads.

5条回答
  •  甜味超标
    2021-01-31 22:59

    Reply on For IisEnumSites:Exception: 0x80004005 : Modify, Mode, Record

    I have similar experience and what I found so far is the site Id that extract from parseInt:

    record = Session.Installer.CreateRecord(6);
    record.IntegerData(1) = parseInt(site.Name.substr(6));  // WebSiteNo
    

    I have a website with a name like W3SVC/1528550093 and I suspect 1528550093 is too big for the AvailableWebSites table.

    Once I have the if statement to filter out these big number, and the script work fine.

    Hope this help for other.

提交回复
热议问题