?
Solved

Need help with Installer..

Posted on 2002-05-07
4
Medium Priority
?
575 Views
Last Modified: 2013-11-14
We distribute a 3 CD set every quarter with information relevant to what we do here. Before the project was given to me, there were 8 different installation instructions, four for Win 95/98 and four for Win 2k/NT.

I've been working on developing an application to automate the installation process. I've got a copy of InstallShield Professional 2000, but for this application, this does not seem to be a viable option. The installation process consists of running several different batch files, and then giving the user the option to load Internet Explorer 5.5, Adobe Acrobat, and Autodesk Whip Viewer. Given this criteria, I've decided that InstallShield is not the way to go.

I've developed some framework in VB 6 that will allow me to do this, but it's proving to be a difficult task. I've run into several problems that need to be overcome. Any help you guys can offer on these problems would be greatly appreciated.

The main problem is when I have a long list of batch files that need to be executed, I can't seem to figure out how to execute one batch file at a time, rather than all at once. Here's an example of what I'm doing:

Shell(CDDrv & ":\SetupM\Batfiles\copyQNotes.bat")
Shell(CDDrv & ":\SetupM\Batfiles\copySearch.bat")
Shell(CDDrv & ":\SetupM\BatFiles\copySTKE.bat")
Shell(CDDrv & ":\SetupM\BatFiles\MCSI.bat")
Shell(CDDrv & ":\SetupM\ShortcutE.exe")
Shell(CDDrv & ":\SetupM\SetuphaE.exe")

When I run this procedure, it want's to launch all of the batch files at once. I'm sure it's a simple problem.. Thanks for all of the help!

Ian
0
Comment
Question by:ianpugh
[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 4

Accepted Solution

by:
ckosloski earned 800 total points
ID: 6994917
0
 
LVL 4

Expert Comment

by:gencross
ID: 6995091
Just an idea...

Would it be possible to write the BAT file code in VB and eliminate the BAT files?
0
 
LVL 6

Expert Comment

by:marconovaro
ID: 6995747

You could use the following API call:

Private Declare Function FSyncShell Lib "VB5STKIT.DLL" Alias "SyncShell"
(ByVal strCmdLine As String, ByVal intCmdShow As Long) As Long

that is similar to the Shell command, but waits until the launched application has finished before continuing with the next instruction.

As an alternative, I use Inno setup as the installer; this let you decide to launch an application after install and wait until it finishes. You can find it at:

http://www.jrsoftware.org/


Hope this helps you.
0
 
LVL 1

Author Comment

by:ianpugh
ID: 6996548
That did it! Thanks for the help.
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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

770 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