hi all,
I wish someone here as some knowledge about running Windows Installer with PowerShell because I've hit a brick wall pretty solid and I can't find anything on Google regarding this.
I'm trying to create a script that takes an MSI file, creates a Temp MSI File, edit it to change some properties, and generate a Transform (MST) file by comparing both files and doing a delta.
everything works correctly except the MST file that is not getting generated. From the VBS example I found on MSDN, the function is pretty easy but it won't work.
here's what I have:
$oAlteredMSI =New-ObjectMicrosoft.Deployment.WindowsInstaller.Database($MSIDuplicatePath,[Microsoft.Deployment.WindowsInstaller.DatabaseOpenMode]::Direct); $oOriginalMSI =New-ObjectMicrosoft.Deployment.WindowsInstaller.Database($MSIFilePath); $oAlteredMSI .GenerateTransform($oOriginalMSI, "C:\Temp\Transform.mst")
when I run that command, I got a return value of False, even though this is a copy of the MSDN script.
If anyone has an idea why I'm stuck, please help!
thanks!