Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Ms XML Parser 4 installed and REGISTERED checking.


1 reply to this topic

Yehuda

Yehuda
  • Full Members
  • 52 posts

Posted 13 February 2002 - 12:53

My install project must Microsoft XML Parser 3 installed on the target computer. But it is impossible to run msxml3 setup, if Microsoft XML Parser 4 already registered on the system ( "regsvr32 /u msxml4.dll" must be executed previously, and restored after msxml3 setup finish ). How can I to detect, that msxml4.dll not only exists, but is unregistered too by the user, that attempts to install msxml3?

May be, the next code is the solution for the problem above:

function MSXML4IsRegistred( )  
OBJECT objDOMDoc;
begin    
   set objDOMDoc = CreateObject ( "msxml4.DOMDocument" );

   if( IsObject( objDOMDoc ) ) then
   MessageBox( "msxml4.DOMDocument created.", INFORMATION );
return TRUE;
   else
       MessageBox( "msxml4.DOMDocument NOT created.", SEVERE );
return FALSE;
   endif;
end;  

Why it doesn't work?


Yehuda

Yehuda
  • Full Members
  • 52 posts

Posted 13 February 2002 - 16:06

In addition to above:

set objDOMDoc = CreateObject( "msxml2.DOMDocument40" );

Thanks for any reply.