Forum Discussion

PaulKlerkx's avatar
PaulKlerkx
Iron Contributor
Feb 11, 2021

Set-CMMSIDeploymentType

Hi,

   I'm working on a powershell script to process old applications to a retired state.  As part of that, i move the files out of our production area to an "old" area. that works fine, however when I attempt to set the deployment types new content path with a command like the one below, if fails.  Why is it talking about a wrong file extension? my command doesn't reference anything regarding files.  

App deployment type is MSI technology ( as indicated by the name)

The installation program is a standard msi install with a log switch. 

 

I have copied the cmd line out and added all entries directly rather than via variables and run from an elevated PS ISE while connected to the site and still see the same message.  

 

I see nothing of use on the doco page - Set-CMMsiDeploymentType (ConfigurationManager) - Configuration Manager | Microsoft Docs

 

This is the command I'm running.  

Set-CMMSIDeploymentType –ApplicationName 'ECM Classic ODBC - PROD' –DeploymentTypeName 'ECM Classic ODBC - Prod - Windows Installer (*.msi file)' –ContentLocation '\\corp\cm\LIBRARY\OLD_SupercededSoftware\1_RetiredApplications\2019\ECM\Classic-ODBC\2019.05\PRD\' -Force

 

**********************************************************

returns this error

 

Set-CMMSIDeploymentType : Unexpected file extension specified. Must be one of: .msi
At line:1 char:5
+ Set-CMMSIDeploymentType –ApplicationName 'ECM Classic ODBC - PROD ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Confi...mentTypeCommand:SetMsiDeploymentTypeCommand) [Set-CMMsiDeploymentType], InvalidOperationException
+ FullyQualifiedErrorId : ContentValidationError,Microsoft.ConfigurationManagement.Cmdlets.AppMan.Commands.SetMsiDeploymentTypeCommand

Set-CMMSIDeploymentType : Validation of input parameters failed. Cannot continue.
At line:1 char:5
+ Set-CMMSIDeploymentType –ApplicationName 'ECM Classic ODBC - PROD ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Confi...mentTypeCommand:SetMsiDeploymentTypeCommand) [Set-CMMsiDeploymentType], InvalidOperationException
+ FullyQualifiedErrorId : ValidationFailed,Microsoft.ConfigurationManagement.Cmdlets.AppMan.Commands.SetMsiDeploymentTypeCommand

8 Replies

No RepliesBe the first to reply

Resources