allow user to define target dir for deployment

Last post 06-19-2009 5:09 AM by Thomas Sun – MSFT. 5 replies.

Sort Posts:

  • allow user to define target dir for deployment

    06-16-2009, 6:49 AM
    • Member
      point Member
    • drukasin
    • Member since 06-16-2009, 10:42 AM
    • Posts 4
    hi, i'm trying to create a msi, to install a web application. the default location for this kind of project in under the wwroot. BUT, i want the USER installing this web application to choose where to install it. does anyone knows how can i achieve this?? (something like the fileUpload control, that allows browse..) is there any way i could pass the path as a parameter from txt/xml file? thanks! Drukasin
  • Re: allow user to define target dir for deployment

    06-16-2009, 7:21 AM
    Answer
    • Member
      448 point Member
    • ganeshgopu09
    • Member since 05-21-2009, 9:08 AM
    • Bangalore
    • Posts 61

    Hi,

    Check the below post, will help you.

    http://forums.asp.net/t/1428490.aspx

    Let me know in case of any queries.

    Remember to Mark as Answer, if it works for you.
  • Re: allow user to define target dir for deployment

    06-16-2009, 7:23 AM
    • Member
      point Member
    • drukasin
    • Member since 06-16-2009, 10:42 AM
    • Posts 4
    thanks! i'm checking it out now... :)
  • Re: allow user to define target dir for deployment

    06-16-2009, 10:19 AM
    • Member
      point Member
    • drukasin
    • Member since 06-16-2009, 10:42 AM
    • Posts 4
    tried it, but it didnt copy the site to the location i selected in browse... maybe i'm missing something??
  • Re: allow user to define target dir for deployment

    06-17-2009, 5:29 AM
    • Member
      point Member
    • drukasin
    • Member since 06-16-2009, 10:42 AM
    • Posts 4
    hi, any suggestions?? i found this post: http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/47153558-b60c-426a-8036-0fa746fbf977# tried it but with no luck.... :(
  • Re: allow user to define target dir for deployment

    06-19-2009, 5:09 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.

    For more information about using Custom Action to create Sites and Virtual Directories in IIS with System.DirectoryServices, see http://msdn.microsoft.com/en-us/library/ms524896.aspx

    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

    For more information about Orca, see http://support.microsoft.com/default.aspx/kb/255905

    In your case, you can try to debug your Custom Action and step through the source code to see whether there is any issue while installing (Add  System.Diagnostics.Debugger.Break() in Custom action and use Visual Studio debugger to attach to its process while Custom action breaks).   


    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.
Page 1 of 1 (6 items)