Solved

compression or ?

Posted on 2000-04-16
9
261 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
9 Comments
 
LVL 69

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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now