I need help with error I am getting removing an applcation
From Deploy-application.ps1
Remove-MSIApplications "Entrust"
error in log file ...
<![LOG[[Pre-Installation] :: Get information for installed Application Name(s) [ENTRUST]...]LOG]!><time="13:47:45.579-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching application name [ENTRUST]]LOG]!><time="13:47:45.672-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Outlook] version [9.2.0000] matching application name [ENTRUST]]LOG]!><time="13:47:45.688-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Remove application [Entrust Entelligence Security Provider 9.2 for Windows ].]LOG]!><time="13:47:46.157-420" date="01-22-2015" component="Remove-MSIApplications" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Resolve product code to a publisher, application name, and version.]LOG]!><time="13:47:46.297-420" date="01-22-2015" component="Execute-MSI" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Get information for installed Product Code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]...]LOG]!><time="13:47:46.297-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching product code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]]LOG]!><time="13:47:46.375-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Get information for installed Product Code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]...]LOG]!><time="13:47:46.688-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching product code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]]LOG]!><time="13:47:46.750-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Executing MSI action [Uninstall]...]LOG]!><time="13:47:47.032-420" date="01-22-2015" component="Execute-MSI" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: [msiexec.exe] is a valid path, continue]LOG]!><time="13:47:47.094-420" date="01-22-2015" component="Execute-Process" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Function failed, setting exit code to [999].
Error Record:
-------------
Message : The variable cannot be validated because the value is not a valid value for the WorkingDirectory
variable.
InnerException :
FullyQualifiedErrorId : ValidateSetFailure
ScriptStackTrace : at Execute-Process<Process>, C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line
2209
at Execute-MSI<Process>, C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line 1994
at Remove-MSIApplications<Process>,
C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line 2071
at <ScriptBlock>, C:\temp\Entrust92\Deploy-Application.ps1: line 124
PositionMessage : At C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1:2209 char:34
+ If (-not $WorkingDirectory) { $WorkingDirectory = Split-Path -Path $Path -Par ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="13:47:47.407-420" date="01-22-2015" component="Execute-Process" context="" type="3" thread="1" file="">
<![LOG[[Pre-Installation] :: Close the installation progress dialog.]LOG]!><time="13:47:47.574-420" date="01-22-2015" component="Close-InstallationProgress" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: ENTRUST_ESPOandESPW_9.2_EN_01 Installation completed with exit code [999].]LOG]!><time="13:47:47.606-420" date="01-22-2015" component="Exit-Script" context="" type="1" thread="1" file="">
Comments: same problem but with Execute-MSI : [Installation] :: Get properties from MSI file [C:\windows\ccmcache\mu\Files\jre1.8.0_31-x86.msi] in table [Property] Get-MsiTableProperty 29/01/2015 13:54:18 1 (0x0001) [Installation] :: Get information for installed Product Code [{26A24AE4-039D-4CA4-87B4-2F83218031F0}]... Get-InstalledApplication 29/01/2015 13:54:18 1 (0x0001) [Installation] :: Executing MSI action [Install]... Execute-MSI 29/01/2015 13:54:19 1 (0x0001) [Installation] :: Function failed, setting exit code to [999]. Error Record: ------------- Message : [msiexec.exe] contains an invalid path or file name. InnerException : FullyQualifiedErrorId : [msiexec.exe] contains an invalid path or file name. PositionMessage : Au niveau de C:\windows\ccmcache\mu\AppDeployToolkit\AppDeplo yToolkitMain.ps1 : 2204 Caractère : 11 + Throw <<<< "[$Path] contains an invali d path or file name." Execute-Process 29/01/2015 13:54:19 1 (0x0001)
From Deploy-application.ps1
Remove-MSIApplications "Entrust"
error in log file ...
<![LOG[[Pre-Installation] :: Get information for installed Application Name(s) [ENTRUST]...]LOG]!><time="13:47:45.579-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching application name [ENTRUST]]LOG]!><time="13:47:45.672-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Outlook] version [9.2.0000] matching application name [ENTRUST]]LOG]!><time="13:47:45.688-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Remove application [Entrust Entelligence Security Provider 9.2 for Windows ].]LOG]!><time="13:47:46.157-420" date="01-22-2015" component="Remove-MSIApplications" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Resolve product code to a publisher, application name, and version.]LOG]!><time="13:47:46.297-420" date="01-22-2015" component="Execute-MSI" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Get information for installed Product Code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]...]LOG]!><time="13:47:46.297-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching product code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]]LOG]!><time="13:47:46.375-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Get information for installed Product Code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]...]LOG]!><time="13:47:46.688-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Found installed application [Entrust Entelligence Security Provider 9.2 for Windows] version [9.20.0000] matching product code [{5522C2D6-1FC7-4E21-8BAA-CA7FC64D7399}]]LOG]!><time="13:47:46.750-420" date="01-22-2015" component="Get-InstalledApplication" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Executing MSI action [Uninstall]...]LOG]!><time="13:47:47.032-420" date="01-22-2015" component="Execute-MSI" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: [msiexec.exe] is a valid path, continue]LOG]!><time="13:47:47.094-420" date="01-22-2015" component="Execute-Process" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: Function failed, setting exit code to [999].
Error Record:
-------------
Message : The variable cannot be validated because the value is not a valid value for the WorkingDirectory
variable.
InnerException :
FullyQualifiedErrorId : ValidateSetFailure
ScriptStackTrace : at Execute-Process<Process>, C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line
2209
at Execute-MSI<Process>, C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line 1994
at Remove-MSIApplications<Process>,
C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1: line 2071
at <ScriptBlock>, C:\temp\Entrust92\Deploy-Application.ps1: line 124
PositionMessage : At C:\temp\Entrust92\AppDeployToolkit\AppDeployToolkitMain.ps1:2209 char:34
+ If (-not $WorkingDirectory) { $WorkingDirectory = Split-Path -Path $Path -Par ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="13:47:47.407-420" date="01-22-2015" component="Execute-Process" context="" type="3" thread="1" file="">
<![LOG[[Pre-Installation] :: Close the installation progress dialog.]LOG]!><time="13:47:47.574-420" date="01-22-2015" component="Close-InstallationProgress" context="" type="1" thread="1" file="">
<![LOG[[Pre-Installation] :: ENTRUST_ESPOandESPW_9.2_EN_01 Installation completed with exit code [999].]LOG]!><time="13:47:47.606-420" date="01-22-2015" component="Exit-Script" context="" type="1" thread="1" file="">
Comments: same problem but with Execute-MSI : [Installation] :: Get properties from MSI file [C:\windows\ccmcache\mu\Files\jre1.8.0_31-x86.msi] in table [Property] Get-MsiTableProperty 29/01/2015 13:54:18 1 (0x0001) [Installation] :: Get information for installed Product Code [{26A24AE4-039D-4CA4-87B4-2F83218031F0}]... Get-InstalledApplication 29/01/2015 13:54:18 1 (0x0001) [Installation] :: Executing MSI action [Install]... Execute-MSI 29/01/2015 13:54:19 1 (0x0001) [Installation] :: Function failed, setting exit code to [999]. Error Record: ------------- Message : [msiexec.exe] contains an invalid path or file name. InnerException : FullyQualifiedErrorId : [msiexec.exe] contains an invalid path or file name. PositionMessage : Au niveau de C:\windows\ccmcache\mu\AppDeployToolkit\AppDeplo yToolkitMain.ps1 : 2204 Caractère : 11 + Throw <<<< "[$Path] contains an invali d path or file name." Execute-Process 29/01/2015 13:54:19 1 (0x0001)