Solved

Installing two executables in one folder

Posted on 2013-01-19
7
240 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
JSON Response and request in VB6 application 11 576
Access query that references subform 5 47
vbModal 12 57
Collapse and expand table in Word 2010 2 32
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

856 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