How do I check component GUID?
How do I check a components GUID - e.g MSINET.ocx
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
aogilmor
19 years ago
If you just need to check and look at the GUID, use the component table and see the componentID column
If you need an automated way to extract it and use it in your MSI or script, I'd suggest Wise support or Altiris support forum
Somebody is sure to have come up with a macro or script to do this.
If you need an automated way to extract it and use it in your MSI or script, I'd suggest Wise support or Altiris support forum
Somebody is sure to have come up with a macro or script to do this.
Posted by:
Naffcat
19 years ago
Posted by:
Naffcat
19 years ago
Posted by:
aogilmor
19 years ago
Posted by:
WiseUser
19 years ago
The GUIDS in the registry are not in the same format as the correct GUIDS.
Besides, you seem to like VBScript so here's an "automated" method:
Set oMSI = CreateObject("WindowsInstaller.Installer")
Set oComponents = oMSI.Components
For Each sCompID in oComponents
Set oClients = oMSI.ComponentClients(sCompID)
For each sClient in oClients
sProdCode = sClient
sKeyPath = LCase(oMSI.ComponentPath(sProdCode, sCompID))
If Instr(sKeyPath,"msvcrt.dll") <> 0 Then
Msgbox sProdCode & " - " & sCompID & " - " & sKeyPath
End If
Next
Next
Set oClients = Nothing
Set oComponents = Nothing
Set oMSI = Nothing
The script should return the ProductCode (that's using the component), the ComponentId, and the component's keypath. SInce the file you're checking is an OCX, it should be the keypath for it's component, so this script should work. You may get several results, because several products might be using the component (most probable with "msvcrt.dll"). As long as the ComponentId is always the same, you should be alright.
Besides, you seem to like VBScript so here's an "automated" method:
Set oComponents = oMSI.Components
For Each sCompID in oComponents
Set oClients = oMSI.ComponentClients(sCompID)
For each sClient in oClients
sProdCode = sClient
sKeyPath = LCase(oMSI.ComponentPath(sProdCode, sCompID))
If Instr(sKeyPath,"msvcrt.dll") <> 0 Then
Msgbox sProdCode & " - " & sCompID & " - " & sKeyPath
End If
Next
Next
Set oClients = Nothing
Set oComponents = Nothing
Set oMSI = Nothing
The script should return the ProductCode (that's using the component), the ComponentId, and the component's keypath. SInce the file you're checking is an OCX, it should be the keypath for it's component, so this script should work. You may get several results, because several products might be using the component (most probable with "msvcrt.dll"). As long as the ComponentId is always the same, you should be alright.
Posted by:
Naffcat
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.