I have seen many answers to questions that appear to be exactly what I am looking for, such as (MSDeploy) Deploying Contents of a Folder to a Remote IIS Server, but these answers don't do what I need. I don't want to install the MSDeploy agent on the remote computer, or specify credentials to use.
This command does exactly what I want, but does not use a manifest, so my install script would need to know the destination for each package.
MSDeploy -verb:sync -disableRule:BackupRule ^
-source:package=pkg.zip ^
-dest:contentPath=\\server\share\path
If I use a manifest for the dest, and that manifest specifies a single contentPath (or dirPath) provider, such as:
<sitemanifest>
<contentPath path="\\server\share\path">
</sitemanifest>
I get an error that the source (package) is not compatible with the dest (contentPath).
I've tried variations, such as using a full local path in the manifest and ",computerName=server" after the dest specification. This one wants the MSDeploy agent on the remote computer and for me to specify credentials.
I can't find any detailed documentation on the use of MSDeploy, only a myriad of examples that don't fit my needs.
I think the first example of what I tried above is likely the correct path, but I need to figure out how to package the source or build the manifest to make the two compatible.