For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2004 > Installing MDAC using Shell Command.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Installing MDAC using Shell Command.
Vajid Shethwala

2004-04-27, 1:32 pm

Xref: kermit microsoft.public.vb.general.discussion:445875

Hello Everyone:

I'm bit . I'm writing a small utility which will install the MDAC
latest version on a slient mode. I found the switches that I can use to run
the install on Silent mode. Here is the site:
http://support.microsoft.com/defaul.../26setupfaq.asp

Code:

Path = chr(34) & app.path

ReturnVal = Shell(Path & "\MDAC_TYP.exe" & Chr(34) & "/q:a /c:" & Chr(34) &
"dasetup.exe /q:d /n" & Chr(34))

I'm using "dasetup.exe /q:d /n" switches so that if it is necessary the mdac
will prompt for restarting the computer. Also I'm using D switch to detect
if the MDAC files are in use. But for some reason, it never prompts me for
restarting the computer. I have even created small stand alone executable
which will load couple of MDAC objects such as ADOX.Catalog, ADOX. indexes,
tables and etc. If I ran manually MDAC_TYP.exe install while running these
exe, it prompts me to restart the computer. However, when run through the
vb it does not prompts me. When I tried to roll back the mdac install by
running "dasetup.exe /u" it does not because couple of files are in used
they are not update. After restarting manually I can roll back.

In short, I need to know why isn't its prompting me to restart the computer
when I have MDAC file is use.

Please let me know if you need more info.

Thanks in advace

Vajid Shethwala






Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com