home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "CPPComp"
- Public Sub InstallCOMComponents(strPath As String)
- On Error Resume Next
- Dim varRetVal
-
- ' Append a '\' to the path if it's missing
- If Right$(strPath, 1) <> "\" Then strPath = strPath & "\"
- varRetVal = Shell("regsvr32 /s " & strPath & "PermChk.dll", vbMinimizedNoFocus)
- varRetVal = Shell("regsvr32 /s " & strPath & "ProdInfo.dll", vbMinimizedNoFocus)
-
- End Sub
-
- Public Sub UninstallCOMComponents()
- On Error Resume Next
- Dim varRetVal
-
- varRetVal = Shell("regsvr32 /u /s PermChk.dll", vbMinimizedNoFocus)
- varRetVal = Shell("regsvr32 /u /s ProdInfo.dll", vbMinimizedNoFocus)
-
- End Sub
-