Hi everyone,
So I’ve been scratching my head for over 2 days now. I have an app deploy toolkit package for 7-zip and everytime I install it manually, trough SCCM or trough a regular master with SCCM, it works flawlessly. However I created a standalone media of the same task sequence where it does work so I can deploy servers which are not connected to SCCM. And this is where the problem begins, I have an error message that I can’t understand.
My packaging parameters to deploy the application are:
[hashtable]$TransformProperties = @{
'ProductName' = $ProductFlagName
'ARPNOREMOVE' = '1'
'ARPNOREPAIR' = '1'
'ARPNOMODIFY' = '1'
'ALLUSERS' = '1'
'AgreeToLicense' = 'Yes'
'REBOOT' = 'ReallySuppress'
'RebootYesNo' = 'No'
'ROOTDRIVE' = 'C:'
}
New-MsiTransform -MsiPath "$DirFiles\$ProductFlagName.msi" -TransformProperties $TransformProperties
Execute-MSI -Action Install -Path "$ProductFlagName.msi" -Transform "$ProductFlagName.mst"
And here is the log error:
<![LOG[[Initialization] :: [7-Zip(19.00_64b)EN] setup started.]LOG]!><time="14:11:11.191120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\WINDOWS\ccmcache\1\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\WINDOWS\ccmcache\1\Deploy-Application.ps1]]LOG]!><time="14:11:11.487120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get session information for all logged on users.]LOG]!><time="14:11:11.566120" date="09-21-2023" component="Get-LoggedOnUser" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: Script [C:\WINDOWS\ccmcache\1\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\WINDOWS\ccmcache\1\AppDeployToolkit\AppDeployToolkitMain.ps1]]LOG]!><time="14:11:11.691120" date="09-21-2023" component="PSAppDeployToolkitExt" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: [7-Zip(19.00_64b)EN] script version is [1.0.2]]LOG]!><time="14:11:11.706120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [7-Zip(19.00_64b)EN] script Application Revision is [P00]]LOG]!><time="14:11:11.722120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [7-Zip(19.00_64b)EN] script date is [20/04/2021]]LOG]!><time="14:11:11.722120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [7-Zip(19.00_64b)EN] script author is [Test]]LOG]!><time="14:11:11.722120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Deploy Application] script version is [3.8.3]]LOG]!><time="14:11:11.737120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Main] script version is [3.8.3]]LOG]!><time="14:11:11.737120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Extensions] version is [1.1.3]]LOG]!><time="14:11:11.753120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer Name is [Test-Computer]]LOG]!><time="14:11:11.753120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current User is [NT AUTHORITY\SYSTEM]]LOG]!><time="14:11:11.769120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows Server 2016 Standard 64-bit 10.0.14393.4288]]LOG]!><time="14:11:11.769120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Type is [Server]]LOG]!><time="14:11:11.784120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Build is [1607]]LOG]!><time="14:11:11.862120" date="09-21-2023" component="AIRBUS INFO" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Successfully loaded COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is currently running from a SCCM Task Sequence.]LOG]!><time="14:11:11.862120" date="09-21-2023" component="Get Running Task Sequence" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: MASTER Version is [1.0]]LOG]!><time="14:11:11.925120" date="09-21-2023" component="AIRBUS INFO" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [fr-FR], language is [FR] and UI language is [EN]]LOG]!><time="14:11:11.941120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:VMWare]]LOG]!><time="14:11:11.972120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Retrieve hardware platform information.]LOG]!><time="14:11:11.987120" date="09-21-2023" component="Get-HardwarePlatform" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer is VDI]LOG]!><time="14:11:12.003120" date="09-21-2023" component="AIRBUS INFO" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [fr-FR], language is [FR] and UI language is [EN]]LOG]!><time="14:11:12.003120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Virtual:VMWare]]LOG]!><time="14:11:12.034120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.14393.3866]]LOG]!><time="14:11:12.034120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.14393.3866 x64]]LOG]!><time="14:11:12.050120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000]]LOG]!><time="14:11:12.050120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="14:11:12.066120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Display session information for all logged on users:
]LOG]!><time="14:11:12.237120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: No users are logged on to the system.]LOG]!><time="14:11:12.237120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 detected, process not running in user interactive mode; deployment mode set to [NonInteractive].]LOG]!><time="14:11:12.253120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [NonInteractive] mode.]LOG]!><time="14:11:12.253120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation].]LOG]!><time="14:11:12.253120" date="09-21-2023" component="PSAppDeployToolkit" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="AppDeployToolkitMain.ps1">
<![LOG[[Installation] :: Create a transform file for MSI [C:\WINDOWS\ccmcache\1\Files\7-Zip.msi].]LOG]!><time="14:11:12.300120" date="09-21-2023" component="New-MsiTransform" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Copy MSI database in path [C:\WINDOWS\ccmcache\1\Files\7-Zip.msi] to destination [C:\WINDOWS\ccmcache\1\Files\tmp7C98.tmp].]LOG]!><time="14:11:12.316120" date="09-21-2023" component="New-MsiTransform" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Open the MSI database [C:\WINDOWS\ccmcache\1\Files\7-Zip.msi] in read only mode.]LOG]!><time="14:11:12.347120" date="09-21-2023" component="New-MsiTransform" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Open the MSI database [C:\WINDOWS\ccmcache\1\Files\tmp7C98.tmp] in view/modify/update mode.]LOG]!><time="14:11:12.362120" date="09-21-2023" component="New-MsiTransform" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Failed to create new transform file in path [].
Error Record:
-------------
Message : Exception calling "InvokeMember" with "8" argument(s):
"OpenDatabase,DatabasePath,OpenMode"
InnerException : System.Runtime.InteropServices.COMException (0x80004005):
OpenDatabase,DatabasePath,OpenMode
FullyQualifiedErrorId : COMException
ScriptStackTrace : at Invoke-ObjectMethod<Process>, C:\WINDOWS\ccmcache\1\
AppDeployToolkit\AppDeployToolkitMain.ps1: line 8386
at New-MsiTransform<Process>, C:\WINDOWS\ccmcache\1\App
DeployToolkit\AppDeployToolkitMain.ps1: line 8791
at <ScriptBlock>,
C:\WINDOWS\ccmcache\1\Deploy-Application.ps1: line 181
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\WINDOWS\ccmcache\1\AppDeployToolkit\AppDeployToolkitMai
n.ps1:8386 char:4
+ Write-Output -InputObject
$InputObject.GetType().InvokeMe ...
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error Inner Exception(s):
-------------------------
Message : OpenDatabase,DatabasePath,OpenMode
InnerException :
]LOG]!><time="14:11:12.503120" date="09-21-2023" component="New-MsiTransform" context="NT AUTHORITY\SYSTEM" type="3" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Failed to get the ProductCode from the MSI file. Continue with requested action [Install]...]LOG]!><time="14:11:12.597120" date="09-21-2023" component="Execute-MSI" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing MSI action [Install]...]LOG]!><time="14:11:12.612120" date="09-21-2023" component="Execute-MSI" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [C:\WINDOWS\System32\msiexec.exe] is a valid fully qualified path, continue.]LOG]!><time="14:11:12.644120" date="09-21-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Check to see if mutex [Global\_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available.]LOG]!><time="14:11:12.675120" date="09-21-2023" component="Test-IsMutexAvailable" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Mutex [Global\_MSIExecute] is available for an exclusive lock.]LOG]!><time="14:11:12.691120" date="09-21-2023" component="Test-IsMutexAvailable" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\WINDOWS\ccmcache\1\Files].]LOG]!><time="14:11:13.753120" date="09-21-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\WINDOWS\System32\msiexec.exe /i "C:\WINDOWS\ccmcache\1\Files\7-Zip.msi" TRANSFORMS="7-Zip (19.00_64b) EN.mst" TRANSFORMSSECURE=1 ALLUSER=1 REBOOT=ReallySuppress /QN /L*v "C:\Temp\7-Zip.log"]...]LOG]!><time="14:11:13.769120" date="09-21-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Get message for exit code [1624].]LOG]!><time="14:11:13.878120" date="09-21-2023" component="Get-MsiExitCodeMessage" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution failed with exit code [1624]: Error applying transforms. Verify that the specified transform paths are valid.]LOG]!><time="14:11:13.894120" date="09-21-2023" component="Execute-Process" context="NT AUTHORITY\SYSTEM" type="3" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: 7-Zip(19.00_64b)EN Installation completed with exit code [1624].]LOG]!><time="14:11:13.925120" date="09-21-2023" component="Exit-Script" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
<![LOG[[Installation] :: -------------------------------------------------------------------------------]LOG]!><time="14:11:13.941120" date="09-21-2023" component="Exit-Script" context="NT AUTHORITY\SYSTEM" type="1" thread="3536" file="Deploy-Application.ps1">
If anybody have an idea about what’s going on.
Thanks in advance.
Have a great day.