How to stop regKey MSDeploy service from crashing if registry key does not exist

I am moving many IIS websites using MSDeploy and I have a problem when I try to include three registry keys in it, but all 3 registry keys do not always exist on every website.

So the question is: Is there a way to force MSDeploy to move registry keys if they are in the source, and silently skip them if they do not exist?

I tried both forcing and disabling the SkipInvalidSource rule, but it didn't seem to affect the problem in any way.

Also a final note, I am using a manifest file for the source (which contains entries for 3 regKey providers).

+3
source share
1

:

  • Windows
  • regkey

... , regKey, :

, , , :

-

SkipInvalidSource ( ) [0.50]
, (, regKey , , ). .

Web Deploy regKey Provider

: ACL , . , .

, .

msdeploy -verb:sync -source:package=C:\package.zip -dest:webServer,computerName=DestServer -skip:skipAction=Delete,objectName=regKey 
0

Source: https://habr.com/ru/post/1771800/


All Articles