PDA

View Full Version : How to install MDAC by LaunchAppAndWait



NewsArchive
12-10-2001, 01:00 AM
I am trying to make setup program that contains vb application that uses
ODBC Driver.
I know that MDAC must be installed to user's system in order to install
ODBC Driver.
I want to install MDAC without rebooting and to install application
straight.
I think that I should use LaunchAppAndWait ().
but, I don't know what I insert to second parameter that indicate command
line.
What is proper for second parameter for installing MDAC without rebooting?
I expect your answer.
Thank you for reading!

NewsArchive
12-10-2001, 01:00 AM
I use a custom action that executes following script:

// Run MDAC in quiet mode without reboot
szCmdName = SRCDIR; // MDAC_TYP.exe is located here
StrRemoveLastSlash ( szCmdName );
ChangeDirectory ( szCmdName );
szCmdName = SRCDIR ^ "MDAC_TYP.EXE";
LongPathToQuote ( szCmdName, TRUE );
szParameters = "/q /C:\"dasetup.exe /q /n\"";
if (Is(FILE_EXISTS, szCmdName) = TRUE) then
if(LaunchAppAndWait(szCmdName, szParameters , WAIT )< 0) then
MessageBox ("Unable to run external program: " + szCmdName,SEVERE);
endif;
endif;
// Remember to reset ChangeDirectory to something neutral (dir cannot
be removed else)


"Ji-woong" <notnow@kesti.co.kr> wrote in message
news:3c1456fe@news.installshield.com...
> I am trying to make setup program that contains vb application that uses
> ODBC Driver.
> I know that MDAC must be installed to user's system in order to install
> ODBC Driver.
> I want to install MDAC without rebooting and to install application
> straight.
> I think that I should use LaunchAppAndWait ().
> but, I don't know what I insert to second parameter that indicate command
> line.
> What is proper for second parameter for installing MDAC without
rebooting?
> I expect your answer.
> Thank you for reading!
>
>