Question : OLE Registration

Is there an EASY way to determine if a specific OLE  is registered on a machine.

I have an apps that registers it on the installation machine, but if it is used to install to a network drive, other workstations do not get the registration.

I use installshield and could not find anything in there.

I included a batch file to run regsvr32.exe, but users can't seem to follow instructions.

Thanks,
michael



Answer : OLE Registration

The easiest way is to enclose the critical part of code which needs OLE registration into TRY - CATCH structure:

LOCAL oException
TRY
  *-- commands using OLE registration
CATCH TO oException
  *-- Here you can look at the error description in oException and decide what to do
FINALLY
  *-- cleanup
ENDTRY

More onfo is e.g. here: http://msdn.microsoft.com/en-us/library/z08sy19a(VS.80).aspx


You could also decide about more sophisticated way: Read Windows Registry settings...
Random Solutions  
 
programming4us programming4us