rlongfield
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 1
I'm banging my head on this one. I'm trying to get Dragon Medical One pushed out via SCCM. The installer is so awesome that it doesn't create a desktop shortcut so I'm using a Powershell script to run the installer with the massive list of arguments and then copying the shortcut to the desktop.
This process works flawlessly, DMO is installed, the shortcut is created, DMO launches and works perfectly.
The only problem is, SCCM reports a failure with error 0x87D00324 which is the application was installed but couldn't be detected.
The detection methods I've tried thus far include:
Is the DMO folder modified date greater than or equal to <today's date>
is the sod.exe file modified date greater than or equal to <actual files creation date>
Does the folder exist on the computer
Does the sod.exe file exist on the computer
Is the DisplayVersion for the HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2A1A08B3-442E-4BD6-BACD-8F5542C77836} greater than or equal to 24.3.60.0
It doesn't seem to matter what type of "standard" detection method I attempt the results are all the same... 0x87D00324
I tried a simple PS script
But that doesn't even run as our Powershell execution policy is set to RemoteSigned, and while I can run PS scripts with the command line using 'ExecutionPolicy Bypass' I can't do that with the detection script.
I'm baffled and need help getting this program detected properly.
Thanks,
-Rob
This process works flawlessly, DMO is installed, the shortcut is created, DMO launches and works perfectly.
The only problem is, SCCM reports a failure with error 0x87D00324 which is the application was installed but couldn't be detected.
The detection methods I've tried thus far include:
Is the DMO folder modified date greater than or equal to <today's date>
is the sod.exe file modified date greater than or equal to <actual files creation date>
Does the folder exist on the computer
Does the sod.exe file exist on the computer
Is the DisplayVersion for the HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2A1A08B3-442E-4BD6-BACD-8F5542C77836} greater than or equal to 24.3.60.0
It doesn't seem to matter what type of "standard" detection method I attempt the results are all the same... 0x87D00324
I tried a simple PS script
Code:
# Set execution policy to Bypass for the current session
Set-ExecutionPolicy Bypass -Scope Process -Force
# Define the expected version
$expectedVersion = "24.3.60.0"
# Function to check the version from the registry
function Get-DragonVersionFromRegistry {
$registryPath = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2A1A08B3-442E-4BD6-BACD-8F5542C77836}"
if (Test-Path $registryPath) {
$version = Get-ItemProperty -Path $registryPath -Name "DisplayVersion" -ErrorAction SilentlyContinue
return $version.Version
}
return $null
}
# Check for version in the registry
$installedVersion = Get-DragonVersionFromRegistry
# Check if the installed version matches the expected version
if ($installedVersion -eq $expectedVersion) {
Write-Output "Dragon Medical One $expectedVersion is installed."
Exit 0 # Success
} else {
Write-Output "Dragon Medical One is not installed or the version is different."
Exit 1 # Failure
}
But that doesn't even run as our Powershell execution policy is set to RemoteSigned, and while I can run PS scripts with the command line using 'ExecutionPolicy Bypass' I can't do that with the detection script.
I'm baffled and need help getting this program detected properly.
Thanks,
-Rob