Problem with Hide BES Clients from the Add/Remove Programs List

(imported topic written by rmnetops91)

Greetings,

PROBLEM #1:

We only deploy bigfix using the MSI installer.

We are using the “Problem with Hide BES Clients from the Add/Remove Programs List - MSI” task, but it doesn’t seem to work properly.

We notice the action is only doing this to hide it:

regdelete "

HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F

" “ProductName”

Which doesn’t seem to cut it.

It needs to do this:

regdelete "

HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F

" “ProductName”

regdelete "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}

" “DisplayName”

Which does work.

PROBLEM #2:

When we attempt to send out a custom task action that deletes both values I listed above, it doesn’t delete the 2nd one for some odd reason.

Is there some type of protection in BigFix that would prevent the deletion of this DisplayName value?

It doesn’t really report back at all, but sits in the “Waiting” status on all the managed computers, until I kill the task.

HERE IS MY RELEVANCE:

exists key “HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F” whose (exists value “ProductName” of it) of registry

HERE IS MY ACTION:

regset "

HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F

" “RemovedProductName”="{value “ProductName” of key “HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F” of registry}"

regdelete "

HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F

" “ProductName”

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}

" “RemovedDisplayName”="{value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}” of registry}"

regdelete "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}

" “DisplayName”

HERE IS THE ACTION STATUS FAILURE:

Completed

regset "

HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F

" “RemovedProductName”="{value “ProductName” of key “HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F” of registry}"

Completed

regdelete "

HKEY_CLASSES_ROOT\Installer\Products\CB3207FBB9131EF45B968C451AF9188F

" “ProductName”

Failed

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}

" “RemovedDisplayName”="{value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}” of registry}"…

(imported comment written by Jim23)

Take a look at the following post http://forum.bigfix.com/viewtopic.php?id=3587 which has information about deleting/setting keys and pay attention to escaping the “{”. This is a special character for relevance substitution and must be escaped. Such as:

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{{BF7023BC-319B-4FE1-B569-C854A19F81F8}

" “RemovedDisplayName”="{value “DisplayName” of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

{{

BF7023BC-319B-4FE1-B569-C854A19F81F8}" of registry}"

Hope this helps.

(imported comment written by rmnetops91)

Gave that a try, and it still failed on:

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{{BF7023BC-319B-4FE1-B569-C854A19F81F8}

" “RemovedDisplayName”="{value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{{BF7023BC-319B-4FE1-B569-C854A19F81F8}” of registry}"

(imported comment written by BenKus)

You will need to escape the close bracket if it is embedded in relevance… Try this:

regset “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{{BF7023BC-319B-4FE1-B569-C854A19F81F8}” “RemovedDisplayName”="{value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{BF7023BC-319B-4FE1-B569-C854A19F81F8}}” of registry}"

Ben

(imported comment written by rmnetops91)

Yep that worked.

Interestingly even after getting this DisplayName key renamed under HKLM Uninstall key, in addition to the one under HKCR, the client still shows up in Add/Remove programs… Grrrr. I guess I will just wait for BigFix to figure out why their provided Hide BES Client from Add/Remove MSI fixlet doesn’t work.

Thanks