public static string GetMsDeployExecuteCmdParams(ActionComponentGraphBase actionComponentGraph, string pathToCmd, int? waitInterval = null)
        {
            var parameters = new StringBuilder();
            parameters.Append(GetMsDeployExecuteCmdSource(pathToCmd, waitInterval));
            parameters.Append(GetMsDeployExecuteCmdDestination(actionComponentGraph));
            parameters.Append(GetMsDeployExecuteCmdSync());
            parameters.Append(GetMsDeployAllowUntrusted(actionComponentGraph));

            return parameters.ToString();
        }
        public static string GetMsDeployExecuteCmdDestination(ActionComponentGraphBase ActionComponentGraph)
        {
            var builder = new StringBuilder();
            builder.Append(string.Format("-dest:auto,computerName='{0}'",ActionComponentGraph.DestinationComputerName));

            if (!string.IsNullOrWhiteSpace(ActionComponentGraph.AuthType))
            {
                builder.Append(string.Format(",authType={0}", ActionComponentGraph.AuthType));
            }

            builder.Append(string.Format(",userName={0}", ActionComponentGraph.DestinationUserName));
            builder.Append(string.Format(",password={0}", ActionComponentGraph.DestinationPassword));

            return EnsureStringhasOnlyOneTrailingWhiteSpace(builder.ToString());
        }
 public static string GetMsDeployDeleteFileParams(ActionComponentGraphBase actionComponentGraph, string filePath)
 {
     return EnsureStringhasOnlyOneTrailingWhiteSpace(string.Format("-dest:ContentPath='{0}',computerName='{1}',userName='******',password='******' -verb:delete",
         filePath, actionComponentGraph.DestinationComputerName, actionComponentGraph.DestinationUserName, actionComponentGraph.DestinationPassword));
 }
 public static string GetMsDeployAllowUntrusted(ActionComponentGraphBase actionComponentGraph)
 {
     return EnsureStringhasOnlyOneTrailingWhiteSpace(string.Format("-allowUntrusted:{0} ", actionComponentGraph.AllowUntrusted));
 }