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
Solved

How to run a setup dyanamically through VB

Posted on 2004-10-20
4
143 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

860 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