locked
about msdeploy "-setparam " ,to restore a website RRS feed

  • Question

  • User320262925 posted

    Hi,my operation environment is IIS6 on windows server 2003.

    I use follow command line to package my site,and make the site name and site's physical path with parameters.

    msdeploy.exe -verb:sync -source:metakey=lm/w3svc/117880585 -dest:package=c:\dises.zip
    -declareParam:name=param1,kind=ProviderPath,scope=appHostConfig,match=dises,defaultValue=dises
    -declareParam:name=param2,kind=DestinationVirtualDirectory,scope=dises/,defaultValue=C:\dises\Code\Web

    "dises" is my site name,and the above command executed with no error,and I can see the parameters I declare in the zip package.

    "117880585 " is my site ID.

    Next,I restore this package to another machine with the same operation environment(I use virtual machine software).

    the command as follows:

    msdeploy.exe -verb:sync -source:package=c:\dises.zip -dest:metakey=lm/w3svc/117880585
    -setParam:name=param1,kind=ProviderPath,scope=appHostConfig,match=dises,Value=disesaa
    -setParam:name=param2,kind=DestinationVirtualDirectory,scope=disesaa/,Value=C:\111\dises\Code\Web

    yes,you can see that I changed the parameters value,"dises" to "disesaa", "C:\dises\Code\Web" to "C:\111\dises\Code\Web",for test purpose.

    But when execution finished,the site name and physical path didn't change.

    So,anything wrong?please help.

    Monday, April 9, 2018 1:11 AM

All replies

  • User-460007017 posted

    Hi keepcoffee

    To further help you about this issue, I am trying to invoke someone experienced to help look into this thread, this may take some time and as soon as we get any result, we will post back. 

    Regards

    Monday, April 9, 2018 8:46 AM