Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help with Installer..

Posted on 2002-05-07
4
Medium Priority
?
576 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
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

610 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