Solved

Application Setup Package control

Posted on 2009-04-14
9
304 Views
Last Modified: 2012-05-06
I have a VB5 program that I create a package with.  I also need to include an additional  .exe program (just that one file) that is VB6.  I need to know how to include the .exe file in with my application package so it also gets installed and I also need it to be the first one that executes.  Right now the VB5 is automatically the one the Setup program defaults to.  Any suggestions, Thank You
0
Comment
Question by:GarySB
[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
9 Comments
 
LVL 13

Expert Comment

by:game-master
ID: 24144300


GOOD MORNING!

USING THE PACKAGE AND DEPLOYMENT WIZARD YOU CAN ADD FILE TO YOUR SET-UP PACKAGE..




GAME-MASTER
0
 
LVL 1

Expert Comment

by:deepakra79
ID: 24145589
In P&D wizard, as you added your own exe, the same way you can add any exe or file.
0
 

Author Comment

by:GarySB
ID: 24164424
Agreed, the problem is not adding the .exe to the package.  Any file or files can be added to the P&D package.  The problem is I want the .exe VB6 program to be the one the Icon points to after the package is installed.  My VB5 program by default since it is the one being packaged will be the target of the Icon after the Setup finishes.  The other VB6.exe is the one I need to be the first one that executes.  I use a shell from the VB6 program to execute the VB5 one.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 1

Expert Comment

by:deepakra79
ID: 24174345
You can select the required executable from the Start Menu Items - Properties window. It shows all the added files, you can select the one you want to run.
P-D.JPG
0
 

Author Comment

by:GarySB
ID: 24177372
This is a program that I am giving other people to install.  It is not profesional to ask them to go into the properties after it is installed and change the target to the other application file.  This is not a personal problem I am having with a program on my computer.  This is a package that I wish to give to others and I require the other program to be the target.  Do you know a way in VB6 or VB5 to change the Target regardless of which operating system a user has.  So if my program as it is installing now has B.exe as the target, but I really want A.exe. What VB instructions could change that?  Can you think of any other approach to have the VB6 turn out as the target result of the P&D setup? Thank You.  
0
 
LVL 5

Accepted Solution

by:
BrianVSoft earned 250 total points
ID: 24183371
The file SETUP.LST controls which exe is run first..
This file is created by the Deployment Wizard.. Open it in notepad and find this section..

[Setup]
Title=Whizz-Bang App
DefaultDir=C:\Whizz
AppExe=Whizz.exe
AppToUninstall=Whizz.exe

Change the line starting with "AppExe="
You can also change.. DefaultDir=
0
 
LVL 1

Expert Comment

by:deepakra79
ID: 24185021
I think you did not understood what I provided to you. I asked you to set target program in you setup build part itself. I think you need to go through all the things properly first and then comment on anything. It is not something that I am asking your customer to change.
0
 

Author Comment

by:GarySB
ID: 24188631
Understand, I will be able to try this evening, Thank You
0
 

Author Closing Comment

by:GarySB
ID: 31570070
The SETUP.LST was exactly what I needed to change for each of my programs so that they would share the same new created folder and they both point to the same .exe file to run so that the Programs Icon points to my VB6 program.  The other comment about changing the Start Menu Items Properties was not what I was looking for in my particular situation or adding it to the package would not incorporate the additional dependency files.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 - Compare and highlight cell not the same 3 62
VBA Shell can't Find Word document 11 155
Spell Check in VB6 13 147
VBA: Insert New column with specific format type 12 56
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

734 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