packing and passing-on assistan

Posted on 2000-03-06
Last Modified: 2010-05-02
I have created a directory with icons for a vb60 application.
When I want to install the compiled exe of this application on an other computer, then i missed this directory and i must install specially this directory with the icons on the other computer.

is there a solution, how i can add the directory with the icons in the packing and passing-on assistant!

thanks for any answer
Question by:fragen
  • 4
  • 3
LVL 43

Expert Comment

ID: 2587264
In the "Included Files" step of the wizard, you can add as many files as you need, add your Icons here, later on you can choose the directory you want them installed into, perhaps ($AppPath)\Icons.


Author Comment

ID: 2587581
hy timcottee!

thanks for your information. when i am at the menu "included files" i can add there only files, but i want to add my whole directory, because i have over 100 icons there.

what do you mean with "later on you can choose the directory you want them installed into, perhaps ($AppPath)\Icons"

can you tell me more details, how i can do this.

i selected for a test one icon and looked at my file setup.lst and could find the following entry:
[Setup1 Files]
File1=@ARW01DN.ICO,$(AppPath),,,4/24/98 7:58:30 PM,1078,

but who can i select the whole directory!

thanks again
LVL 43

Expert Comment

ID: 2587623
You can select multiple files in this screen, click the first hold down shift then click the last. You cannot unfortunately choose an entire directory in one go. Then to determine the location it goes to; two ways, one is in the "Install Locations" screen manually set the install location to $(AppPath)\Icons, the other perhaps more practical would be to create the package then open you setup.lst file and do a find and replace on ".ICO,$(AppPath)" to ".ICO,$(AppPath)\Icons" before distributing.
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.


Author Comment

ID: 2589872
hy timcottee!

thanks again. I understand all your ways and tried it out. But i can still only one icon ore can select all 100 icons in each subdirectory and can save it in each subdirectory.

my next problem is that i have one main directory under the application called "icons". under this directory i have many subdirectories, like arrows, comm, computer e.g.

in each directory (arrows, comm, computer) i have icons.

i can now add all files in the setup.lst with the option /icons/arrows and so on.

but is there also an other possibility, how i can do this in one way, because it is not possible to select all icons in one directory with the "click the first hold down shift then click the last".

i have also tried to change the file setup.lst of the one icon i have selected like:

[setup1 Files]
File1=@*.*,$(AppPath)}icons,,,4/24/98 7:58:30 PM,1078,

i hope to get one more answer from you
LVL 43

Accepted Solution

TimCottee earned 50 total points
ID: 2590730
Ok, this may seem a bit over the top (and I haven't fully got it all tried out yet). If you build your application without adding any of the icons etc you will obviously get the cab file built and the setup.lst created but none of the icons will be included.

The next step is to write a new vb application which does the following - I would suggest using the FileSystemObject in VB Scripting runtime reference to do this.

Read all entries in the \icons\*.* path and place the full file name surrounded by double quotes - "\\Server\AppDir\Icons\Arrows\LeftArrow1.Ico" into a text file somewhere.
Also into a seperate file, build up the setup.lst entry for these icons,


You can obtain the file date and time and size using the FileSystemObject.

This will give you two files, one which contains the full paths to the icons and the other which contains setup.lst entries.

Now what do we do with them?

In the \support directory of your package folder, you will find a file called ApplicationName.DDF, open this and you will see that it contains the instructions for building your cab file, if you copy in the entries from the first file created above they will be added to the cabinet file when you run the ApplicationName.Bat batch file in the same directory.

You can then add the Setup.lst entries created in the second file above to setup.lst and it is done.

I know that it seems a long way round, and involves creating another application to process this stuff, but if it is something that you are likely to have to do on a regular basis it will probably be the most effective way given the limitations of the P&D wizard.

If you would like me to sketch out an example of the file creation app I will see what I can do.



Author Comment

ID: 2592718
hy TimCottee again!

thank you very much again. i read out your last message, but couldn't follow exact all your thinking, because my Native language is german.

it is very nice, when you can send me an example.

thanks again

Author Comment

ID: 2595062
my e-mail adress:

thank you again

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

821 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