Setup Project VS 2008 : Create Web Site, make changes in event viewer, enable MS DTC

Last post 11-16-2008 4:04 AM by Sons Per. 2 replies.

Sort Posts:

  • Setup Project VS 2008 : Create Web Site, make changes in event viewer, enable MS DTC

    11-07-2008, 12:04 PM
    • Member
      point Member
    • Sons Per
    • Member since 11-05-2008, 4:31 AM
    • Posts 2

    Hi,

    By default the Setup project creates a virtual directory under Default website when run through command prompt.

    Please can some one help me to create a new web site instead of virtual directory. I have created custom actions but not able to create a website.

    Also, please let me know if there is any way to make changes to envet viewer and can we enable MS DTC from setup project code.

    Any help in this matter is highly appreciated 

    Thanks in anticipation.

     

  • Re: Setup Project VS 2008 : Create Web Site, make changes in event viewer, enable MS DTC

    11-11-2008, 3:45 AM
    Answer

    Hi,

    Web Setup project installs the website into default virtual directory such as "C:\Inetpub\wwwroot". If we want to install the website to another location, we can create Custom Action to create virtual directory that is specified by "TARGETDIR" of Web Setup project. In order to provide user with dialog where user can input target directory, we can use Orca.exe. For more information, see http://www.codeproject.com/KB/install/ChangeVDirWebSetupProject.aspx

    We also can write event to System Event Log. For more information, see http://www.codeproject.com/KB/cs/WindowsServicesInAction1.aspx

    To start Windows Services from Custom Action, we can use ServiceController class (http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspx).


    I look forward to hearing from you.

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: Setup Project VS 2008 : Create Web Site, make changes in event viewer, enable MS DTC

    11-16-2008, 4:04 AM
    • Member
      point Member
    • Sons Per
    • Member since 11-05-2008, 4:31 AM
    • Posts 2

    Hi Thomas, Thanks for reply.

     I had a query is it must to use orca.exe?

    Can we not create web site and change the physical path without that?

    What I could do in last few days is I have created app pool, web site , I make changes to the web.config and I can grant the permission to the eventlog's Network user.

    For doing all this I have not used orca.exe

    I wanted to know one more thing , by default setup projects creates a virtual directory, can I not write something that will stop it from creating the default virtual directory?

    Please reply asap

    Thanks

Page 1 of 1 (3 items)