Solved

compression or ?

Posted on 2000-04-16
9
265 Views
Last Modified: 2010-05-02
Hi,
  I have created a setup installation using VB package and deployment utility.  My program has quite a few files I have to add to the install(including 15-20 excel files, image files,...,etc).  The install works fine but the number of files causes the install to be painfully slow.  Is there a way I can compress the setup or something in order to speed the install process?    
0
Comment
Question by:daron
[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 70

Expert Comment

by:Éric Moreau
ID: 2720506
Are these files big?

Are you running your installation from a file server? If so copy them locally before starting the setup.
0
 

Author Comment

by:daron
ID: 2720658
the helper files are with the executable and not from a remote location.  The size of the extra files is about 8mb.  While this is not huge, it causes quite a long process on any computer I install it to. These files are located within the .cab file along with the regular files needed for setup.
0
 

Expert Comment

by:Arachn1d
ID: 2720917
Unforunately, the files are already compressed inside the CAB, and they have to be uncompressed as they are extracted. With faster computers these days, the main overhead is per file, not the size of file, particularaly with many small ones such as this. Unless you can reduce the number of files, there's not much to be done about it, sorry.
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

Author Comment

by:daron
ID: 2720941
would it be possible to add some type of self extractor that would be executed somehow during setup? I think this could possibly be faster.
0
 

Author Comment

by:daron
ID: 2721068
I have thought about this some more, and I don't think it is a compression problem, but, rather an extraction problem(the size is fine, but the speed is slow). It may be a .bat file that will execute the files more quickly but I'm not familiar with the process.
0
 
LVL 4

Accepted Solution

by:
gcs001 earned 100 total points
ID: 2721138
Some files you will have to install using the PDW, but others you can manually copy and posibly register too from within a bat file.

If the files, such as .XLS, .DLL and .OCX's reside on a server that the user's PC is connected to you can create a bat file to copy the files to the correct local directory and register them using regsvr32.exe.

Here's an example of a bat file:
copy \\TheServer\Share01\File1.xls C:\Program Files\MyApplication\File1.xls
copy \\TheServer\Share01\File2.xls C:\Program Files\MyApplication\File2.xls
copy \\TheServer\Share01\MyDLL.dll C:\Winnt\System32\MyDLL.dll
copy \\TheServer\Share01\MyOCX.ocx C:\Winnt\System32\MyOCX.ocx

regsvr32 C:\Winnt\System32\MyDLL.dll
regsvr32 C:\Winnt\System32\MyOCX.ocx

This way will be faster than running the normal setup, but it involves a lot of manual work up front.
You also have to remember that you have to hardcode the application installation directory (or pass it as a parameter) to the bat file.

Hope this helps.

Regards,
Grant.
0
 

Author Comment

by:daron
ID: 2721149
This looks good.  I will give this a try.  Once I've created the .bat file, what call instantiates it in the setup program?
0
 
LVL 4

Expert Comment

by:gcs001
ID: 2721159
You would have to modify the setup package VB project to call this bat file.
The easiest would be to run it manually - so the installation may be a 2-part process, one installing using the setup.exe that the PDW creates and the next running the bat file.
You can then try to include most of the files in the .bat file rather than in the setup .CAB file.
0
 

Author Comment

by:daron
ID: 2721169
This sounds good.  Thanks a million.
0

Featured Post

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.

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…
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…
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…
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…

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