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

Running MSI files from LaunchAppAndWait


1 reply to this topic

rajkulkarni

rajkulkarni
  • Full Members
  • 44 posts

Posted 30 March 2007 - 19:32

I am trying to install the MSXML Parser 6 from within an Installshield Installation. I am trying to do it this way:

function InstallXMLParser()
NUMBER nLaunchValue;
begin
nLaunchValue = LaunchAppAndWait(SUPPORTDIR ^ "MSXML6.MSI",
"", WAIT);
if (nLaunchValue < 0) then
MessageBox("Unable to install MSXML Parser!\nSee user's guide to install manually.", WARNING);
abort;
endif;
end;

For some reason I cannot install it this way. "LaunchAppAndWait" returns a value of less then 0. Any ideas.

Raj

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 02 April 2007 - 14:31

That's because MSIs are not a supported program extension and therefore cannot be launched directly.

Instead they need to be passed as an argument to the MSIEXEC.EXE application and that's documented over here in the Basic FAQ.
user posted image