Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

compression or ?

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
daron
Asked:
daron
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Are these files big?

Are you running your installation from a file server? If so copy them locally before starting the setup.
0
 
daronAuthor Commented:
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
 
Arachn1dCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
daronAuthor Commented:
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
 
daronAuthor Commented:
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
 
gcs001Commented:
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
 
daronAuthor Commented:
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
 
gcs001Commented:
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
 
daronAuthor Commented:
This sounds good.  Thanks a million.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now