Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Silent REGSVR32 1

Status
Not open for further replies.

VB400

Programmer
Sep 8, 1999
359
US

I need to replace a DLL on a remote user's NT Workstation machine. I would like to call a program to automatically:

1. Unregister the existing DLL
2. Copy the new DLL from a shared drive to the local drive
3. Register the new DLL

The following two lines will take care of 1 and 3
x = Shell("REGSVR32 /U ""C:\Test.DLL""")
x = Shell("REGSVR32 ""C:\Test.DLL""")

However, two messages are displayed indicating that the DLL has been unregistered and the other saying that it has been registered (as expected).

Is there a way to supress these messages (as in a silent install)?


Tarek

The more I learn, the more I need to learn!
 
add /s to the command line
x = Shell("REGSVR32 /U /s ""C:\Test.DLL""")
you can run regsvr32 from a dos prompt with the /? switch to see a list of available command line switches.

Ruairi
ruairi@logsoftware.com
Experienced with:

VB6, SQL Server, QBASIC, C(unix), MS Office VBA solutions

ALSO: Machine Control/Automation using GE and Omron PLC's and HMI(human machine interface) for industrial applications
 

Thanks Ruairi -- it worked nicely!


Tarek

The more I learn, the more I need to learn!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top