Solved

Installing two executables in one folder

Posted on 2013-01-19
7
232 Views
Last Modified: 2013-01-20
My VB6 project has two executables, with associated (shared) data files, and one OCX (used by both executables).

Because data files are shared between the two executables, It would be best if both sets of files were installed into the same folder on the client’s machine.

Preparing to make the installer: At this moment, I have each set of files in separate folders named “BuildA” and “BuildB”. (I’ve taken care that there are no name duplicates.)

What is the proper way to build my installer?

I’m open to suggestions for a commercial installer, or should I use the one available in VB?
0
Comment
Question by:NormaPosy
  • 4
  • 3
7 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 38797185
Well, I can tell you for sure that the Package & Deployment Wizard that comes with VB6 is not the one to use unless your user community all use Window XP or earlier. The reason for that is as you are probably aware, VB6 is out of date and while it is still very useful, the P&D Wizard knows nothing about the post-XP operating systems. Here's a page that talks about some alternatives. Note that the InnoSetup that's mentioned has a more user-friendly UI called InnoScript.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 38797194
The JSWare products mentioned (which I wasn't aware of) look very interesting.
0
 

Author Comment

by:NormaPosy
ID: 38797620
Martin:

Do I understand correctly that InnoSetup will do whatever conversion is necessary to have the installed application run on Windows 7?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 46

Expert Comment

by:Martin Liss
ID: 38797731
Support for every Windows release since 2000, including: Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Vista, Windows Server 2008, Windows XP, Windows Server 2003, and Windows 2000. (No service packs are required.)
The above is from their website.
0
 

Author Comment

by:NormaPosy
ID: 38797765
OK. Good so far. InnoScript is easy to use.

These installers seem to assume there will be just one exe. I have two, and since they read files generated by each other, it would be most convenient if both installed into the same folder.

Tomorrow I will run InnoScript twice, telling it to install into the same folder.

There is an alternative: I could make a VB "dashboard" having only two command buttons (plus "Exit" of course). That will require me to combine my two VB individual projects into one. That is going to be tedious, but it might be worth the effort.

Or, I might try customizing the InnoScript's script to create two programs in the same folder, with the two corresponding desktop shortcuts.

Another alternative is to store the communicating files somewhere else, and let InnoScript make two separate installations. That will require some source code revision, but that will not be difficult.

I appreciate your help. I will get back to you tomorrow. Hopefully this question can be closed then.
0
 

Author Closing Comment

by:NormaPosy
ID: 38798806
Thank you, Martin.

InnoSetup seems to be what I was looking for. Smooth and easy to use, too.

My "dashboard" idea:

Rather than combine source code for my two executables under one "Main" dashboard, I am going to leave them as they are. I am going to make a simple VB "dashboard" with two command buttons, each of which will launch one of my existing program executables.

I don't know how to do that, but I will post it as a new question.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 38798827
You're welcome and I'm glad I was able to help.

Marty - MVP 2009 to 2012
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…

932 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

8 Experts available now in Live!

Get 1:1 Help Now