IIS API - Create virtual directories?

前端 未结 4 2197
离开以前
离开以前 2020-12-09 00:55

Just looking for the relevant documentation. An example is not necessary, but would be appreciated.

We have a situation where we are having to create 100s of virt

4条回答
  •  青春惊慌失措
    2020-12-09 01:25

    The WIX installer tool creates a way to manage this - you would define them as a part of the installation build instructions. It make some work to get all of the project configured but after that maintenance should be a breeze... Here is an excerpt from the Tutorial on creating the Virtual Directory entries...

    6.3 Web Directory

    The WiX toolset has additional libraries that allow the installer to perform additional tasks like creating a web directory in IIS. To use these extensions, all you have to do is to link against the appropriate WiX library. The linker will include the necessary helper DLLs into the installation package automatically.

    First, we have to create the web site with the files belonging to it:


      
        
          
            
          

        

      

    The next step is to create the virtual directory:

          
            
              
            

          

        

    Finally, create an entry to reference the web site:

      
       
      

提交回复
热议问题