Solved

Need help with Installer..

Posted on 2002-05-07
4
571 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
4 Comments
 
LVL 4

Accepted Solution

by:
ckosloski earned 200 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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 …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

828 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