Hi,

 

I am new to the Wix development and trying to develop an MSI. Following are the core functionalities of the MSI.

 

Copy config files to destination directory (webroot)

Copy a .dll file to the destination

Create an app pool

Create a (IIS 6.0) virtual directory under an existing web site’s web directory and point it to the App Pool.

 

Here is a brief structure of IIS Manager.

 

Application Pools

      | AppPool1 (App Pool)

      |AppPool2 (App Pool)

      :

      :

Web Sites

      | Default Website (Web Site)

      | MySite (Web Site)

            | ServiceLibrary (Web Dir)

                  | My Service (Virtual Directory)

 

 

After I run my MSI, It is supposed to create an Application pool with the name “MyAppPool”

Create an virtual directory “My Service” under the preexisting web site “MySite => ServiceLibrary” and set the app pool to “MyAppPool”

 

After I ran this MSI. It is copying the files into right directory (physical) , but creating the Web Directory “ServiceLibrary” under the “Default Web Site” and creating Virtual Directory “My Service” under that.

 

Lets say If I delete the “Default Web Site” and Install it again, It is installing it under another different web site.

 

Please find the attached .xml file for my wxs content. I need to wrap this up ASAP. Please help me to create a virtual directory under right web site.

 

Thanks Inadvance!!!

 

Ravi.

Ravi K Reddy Yellasiri

 

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
  <Product Name='My Service 1.0' Id='53E8696B-AC84-477f-97C3-31EE09236B22'
    Language='1033' Codepage='1252' Version='1.0.0.0' Manufacturer='Microsoft Ltd.' >
    <Package Id='????????-????-????-????-????????????' Keywords='Installer'
      Description="My Service 1.0 Installer"
      Comments='My Service' Manufacturer='Microsoft Inc.'
      InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252'  />

    <Property Id='DiskPrompt' Value="HtmlHelper Service 1.0 Installation [1]" />
    <Media Id='1' Cabinet='Service.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />

    <Property  Id="WEBROOT" Value='c:\MyServices\webroot\' />

    <WebSite Id='MYSITE' Directory='WEBROOT' Description='MySite'>
      <WebAddress Id='AllUnassigned' Port='80' />
    </WebSite>

    <WebDirProperties  Id="ScriptOnly" Read="yes" Write="no" AspDetailedError="no" Execute="no" Script="yes" />

    <Directory Id='WEBROOT' Name='webroot'>
      <Component Id='IISSetCom' Guid='3BAC3E7F-711A-4c16-8398-763D522BB9B1' Permanent='no'>

        <WebAppPool Id='MyAppPool' Name='MyAppPool' Identity='networkService' />

        <WebVirtualDir Alias='ServiceLibrary' Directory ='SERVLIB' Id='SrvLibId' DirProperties='ScriptOnly' WebSite='MYSITE'>

          <WebVirtualDir Directory='ServDir' DirProperties='ScriptOnly' Id='VirtDir' Alias='MyService'>
            <WebApplication Id='ServWebApp' WebAppPool='MyAppPool' Name='MyAppPool' ParentPaths='default' />
          </WebVirtualDir>

        </WebVirtualDir>

      </Component>

      <Directory Id='SERVLIB' Name='ServLib' LongName='ServiceLibrary'>
        <Directory Id='ServDir' Name='ServDir' LongName='MyService'>
          <Component Id='ConfigFiles' Guid='50D875E8-90F7-4884-A02F-41251010A469' Permanent='no'>
            <RemoveFolder Id='RemoveServDir' On='both' Property='ServDir'/>
            <CreateFolder Directory='ServDir' />
            <File Id='ServiceWebCon' Name='WebConf' LongName='Web.config' DiskId='1'
                Source='.\Service\Web.config' Vital='yes'>
            </File>
            <File Id='ServiceAsmx' Name='asmx' LongName='MyService.asmx' DiskId='1'
                Source='.\Service\MyService.asmx' Vital='yes'>
            </File>
          </Component>

          <Directory Id='BinDir' Name='bin' >
            <Component Id='BinFiles' Guid='302D0CAD-C69E-4a8d-AC2D-0303D274C0AC' Permanent='no'>
              <File Id='dll1' Name ='dll1' LongName='MyService.dll' DiskId='1' Source='MyService.dll' Vital='yes' />
            </Component>
          </Directory>
        </Directory>
      </Directory>
    </Directory>

    <Feature  Id="Complete" Title="My Service 1.0" Description="Complete Installation" Level="1" >
      <ComponentRef  Id="ConfigFiles" Primary="yes"/>
      <ComponentRef  Id="BinFiles"/>
      <ComponentRef  Id="IISSetCom"/>
    </Feature>

  </Product>
</Wix>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to