?
Solved

How to run a setup dyanamically through VB

Posted on 2004-10-20
4
Medium Priority
?
148 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 10

Accepted Solution

by:
anv earned 1000 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:Arno Koster
Arno Koster earned 1000 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

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

771 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