Solved

How to run a setup dyanamically through VB

Posted on 2004-10-20
4
141 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
ID: 12356278
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
ID: 12357878
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA loop through headers using value 3 57
how to open Waze.com/livemap from address saved in DB? 26 177
Vb.net 2008 2 56
Restricting text box entry from \/:?<>"| 9 77
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

896 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

14 Experts available now in Live!

Get 1:1 Help Now