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.
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.


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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 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