Solved

Need help with Installer..

Posted on 2002-05-07
4
568 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 40
Adding to a VBA? 6 49
Create Silent Installation 5 39
Sound 1 13
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now