Solved

How to run a setup dyanamically through VB

Posted on 2004-10-20
4
140 Views
Last Modified: 2010-05-02
Sir,
  I have a Database programme in VB and SQLServer as back end.I want to use  MSDE(Microsoft Desktop Engine) instead of SqlServer.
I want to install this MSDE setup through VB Programme

Currently i am installing this MSDE manualy ie,go to command prompt and go to the setup path (C: or )execute some instuctions such as

setup INSTANCENAME="MSDE04" SECURITYMODE=SQL SAPWD="sa"  DISABLENETWORKPROTOCOLS=0

I want to do this in VB programme dynamically.
using shell or something like that...creating a .bat file or...

that is when the programme run ask for the path  of the setup then run this set up.after that ask for restrating the computer.then finally store the Database in this MSDE.

Hoping to reply soon
regards
  Nais
0
Comment
Question by:Nais81
4 Comments
 
LVL 10

Accepted Solution

by:
anv earned 250 total points
Comment Utility
try this ..

PathName = "C:\MSDE"
Shell  PathNAme & " setup INSTANCENAME=MSDE04 SECURITYMODE=SQL SAPWD=sa  DISABLENETWORKPROTOCOLS=0 "
0
 
LVL 19

Assisted Solution

by:akoster
akoster earned 250 total points
Comment Utility
better use the following syntax :

pathname = "C:\MSDE"
filename = "setup.exe"
arguments = "INSTANCENAME=MSDE04 SECURITYMODE=SQL SAPWD=sa  DISABLENETWORKPROTOCOLS=0 "

shell pathname & "\" & filename & " " & arguments
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now