Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setup.exe in Setup.exe 1

Status
Not open for further replies.

mansii

Programmer
Oct 18, 2002
641
ID
Greetings!

I have one project and decided to make two setup packages from the project.

One package is standard, i.e. only needed files are included. Let's say this one as "client package".
Then I need to add more files to "client package" and create another package, let's say "server package". The reason I do this is for setting up the location of a database file automatically when a user runs the "server package".
Also, I want the "client package" to be included in the "server package" for the same reason, so a user need only to point to the specified folder to run setup from any client computers.

The problem is, yes, duplication of setup.exe, setup1.exe, setup.lst and the .cab file.
I gambled on renaming the associated files but no luck.
The server installation works great but the client setup ruins my day.

Any thoughts?
 
Include EVERYTHING in the package that will be needed for all installation types.
Then just change the Setup.lst with Notepad and remove the files not needed, and possibly change the setup title, icon, etc.
Make sure you re-number the file list.

Then you can use the same set-up package with exception of the Setup.lst file for all installations.
You could also use a batch file to determine which setup.lst to use and copy/replace accordingly.
 
That's the problem, LostInCode.

I could not add a setup.exe which were created earlier into current setup package during PDW. And I tried editing the setup.lst, too.

Other thoughts?
Regards,
mansii
 
Could you rename the extensions before including in the package, eg setup.ex_ and setup.ls_ then at the end of the installation have the PDW rename those files to the correct extensions?

Paul Bent
Northwind IT Systems
 

This is possible by altering the setup.vbp that you will find where you installed vb. Please make a copy before you alter this project and only alter the copy.

Now there are instructions at MS or in the help files on how to use the the same tools that the PDW uses to create a cab. If I remember correctly you will have to use them via a command line interface.

So what you would do is create your setup package for your client program. Then use these tools to create a cab file of which you will add to your server package.

Then comes the fun part of altering the setup program. All the code you need is in the setup project (remember to use the copy). Where you will need to alter this project is in the form_load proceedure (look long enough and you will see what I mean).

Ok, so this is how it should go. The custom setup program that you are creating will run normally until it is done. Then you will instruct it to go back and extract the cab of the client that you added, and then you tell it to shell out that setup program OR you start over using the client information that you just extracted.

Summary

Create normal setup for client.
Use tools to create single cab that contains setup for client.
Create setup for server and add cab of client.
Copy setup.vbp files
Alter copy of setup.vbp to extract cab of client and either shell or use client info.
Compile copy of setup.vbp and replace server setup.exe with new altered setup for server.

Good Luck

 
have done something simmilar (using 2 set ups)

what I did is create an install folder for each package I
wanted Eg. installserver and installclient and then
assembled a seperate package in each folder based on
what was needed for each.
 
Mates,

The problem remains on the name of the setup files.
I guess that I need to save the project in two different names, even if they use the same resources.

vb5prgrmr,

[blue]Use tools to create single cab that contains setup for client.[/blue]

looks closer to solve the problem, but I haven't had the time to try it. In fact, is it the VB tools menu? :)

azrobert,
That's the method that I am using now. But what I want is a single (server) setup cab which will put the client setup cab to a specified location.
Thank's anyway.

Till then.
mansii
 
You can allways use installshield, in which you can specify(create) different setup options, i.e Client, Server, Custom etc...

**********************************
May the Code Be With You...
----------
x50-8 (X Fifty Eigt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top