« Previous Next »

Answered Thread: Modify with Packaging Wizard

Last post 10-24-2009 7:12 PM by wisecarver. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-24-2009, 9:50 AM

    • wisecarver
    • Top 500 Contributor
    • Joined on 06-18-2002, 1:59 PM
    • Johnson City, Tennessee
    • Posts 13

    Modify with Packaging Wizard

     Salutations,
        Using the most recent IIS7 Manager 'MSDeploy' updates is it possible with the Packaging Wizard to modify a setting in the deployed web.config?
    I'm creating a series of Webcasts on this and want to make it as simple as possible.
    The videos will show how to package/create and deploy entirely with the GUI.

    I've already experimented with using the IIS Manager Packing Wizard to create a package from a live IIS7 site and using it to deploy apps like the ScrewTurn wiki, all of which can be done entirely from the GUI, no command-line options.

    So lets say the wiki app is deployed via the Wizard...
    Can the Wizard also be used during that deploy to modify a web.config setting?
      All the best,
        Mark

  • 10-24-2009, 1:50 PM In reply to

    • EmilyK
    • Not Ranked
    • Joined on 02-16-2008, 3:14 AM
    • Posts 11

    Answered Re: Modify with Packaging Wizard

    You can declare a parameter when you are packaging to identify the part of the web.config that you would like change.  And set the default value if you know at packaging time what the new value should be.  A parameter of XMLFile type is probably the best choice for web.config.  

    On install the user can choose to change the value to another value and it will be applied into web.config.

    Parameterization is currently the only path for modification of web.config..  

     Also web.config is currently considered just another file in the application so if you are sync'ing to an exisiting app with a new web.config that web.config will overwrite the one on the destination.  The system will not go into the sections and compare each individually.

      

     

    - Emily
  • 10-24-2009, 7:12 PM In reply to

    • wisecarver
    • Top 500 Contributor
    • Joined on 06-18-2002, 1:59 PM
    • Johnson City, Tennessee
    • Posts 13

    Re: Modify with Packaging Wizard

     Thanks Emily, very helpful.

    This is what I thought but I like to check with the IIS team before publishing anything.

      All the best,
        Mark (Solomon Technologies Intl. | Microsoft Partner)


Page 1 of 1 (3 items)
Microsoft Communities