Hi,
I have used a custom script to check the detection rule. This is working good. But on deploying the application (though in available mode), the uninstall option for the app in the software center is disabled.
The deployment is unable to detect the registry key if registry key detection rule is used and even if the application is installed successfully. So I have written a custom script and it detects the application. But after installation the uninstall button is greyed out in the software center even though the app is deployed as available. Any help is much appreciated.
Custom script used
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Wow6432Node\XXXXXXXXXXXXX\Remote Server Administration Tools "
strValueName = "ProductVersion"
objRegistry.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
If IsNull(strValue) Then
'Wscript.Echo "The registry key does not exist."
Else
Wscript.Echo "The registry key exists."
End If