Indigo Rose Software
  #1  
Old 09-24-2004
Craigf Craigf is offline
Indigo Rose Customer
 
Join Date: Sep 2004
Posts: 2
Download runtime files on demand

Hello there,

I am currently using Version 6 (sorry) but i think this question will apply to both versions.
I want to reduce the size of my setup because it will be a free download, for this reason I wish to minimise the bandwidth.

I am programming with VB6 and would like to remove the VB6 runtime files form the setup. So I would like SetupFactory look to see if they are currently on the machine the program is being installed on. If not then I want setup factory to download them, install them then carry on with my install.

Any ideas?
Have you done this before?
Is there an official link to MS for the latest runtime files?

Thanks in advance
Reply With Quote
  #2  
Old 09-24-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
Have you looked at the Dependency Modules available in both versions? SUF7 is easier as allows you to look at what it checks for within the code. In SUF6 you can open up the module itself and look there.

You can then check for the relevant registry entries or file versions and then initiate a download (assume from the web) assuming that the criteria is not met.

In SUF6 use the Download File HTTP action or in SUF7 use HTTP.Download with the various tests for connection etc. added.

The Help files and manuals give good explanations.

John
Reply With Quote
  #3  
Old 09-24-2004
Steve_K Steve_K is offline
Indigo Rose Customer
 
Join Date: Aug 2004
Posts: 96
Hi Craigf,

yes, I have coded a screen for SF6 for this specific purpose. See attached file.

What you need to do to get this to work is this:

1.) On setup startup, search the target's systemdirectory (%sysdir%) for the msvbvm60.dll file
2.) Store the result of the filesearch action in a variable called %FileSearchResult%
3.) Include the attached screen to your setup

The screen is only displayed when %FileSearchResult% = False, which means that it is displayed in case MSVBVM60.DLL was not found on the target system; that indicates, that at least parts of the VB6 runtimes are not installed on the target system. If you want to make it detect any VB6 runtime, you must add some more FileSearch actions (and let it search for all the VB6 runtimes, and not just for the MSVBVM60.DLL), and change the display condition for the screen.

On the screen there is a 'Download' button integrated, which downloads the VB6 runtimes from the Microsoft server, and executes the downloaded file once it has been downloaded.

All your users need to do once the runtimes have been installed: restart the setup of your product.

Hope that helps ...

Steve
Attached Files
File Type: zip vb6runtime screen.zip (919 Bytes, 27 views)
Reply With Quote
  #4  
Old 09-24-2004
Craigf Craigf is offline
Indigo Rose Customer
 
Join Date: Sep 2004
Posts: 2
Perfect

Many thanks Steve, this is exactly what I was hoping for.
Thanks for making the effort to upload this for me.
Reply With Quote
  #5  
Old 09-24-2004
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Go to Resources > Dependencies in SUF70. Add the VB6 SP6 dependency. Double-click it and take a look at the Detection tab. In there is the code needed to detect VB6 runtimes. Then goto the Installation tab and modify that script to download and run the runtime installer (which is included with SUF70 - "C:\Program Files\Setup Factory 7.0\Dependencies\vb6sp6\VBRun60sp6.exe") there. This way your detection will be integrated into our dependecy section. In fact, if you get this going, be sure to post your script so that others can use it as well.
Reply With Quote
  #6  
Old 09-24-2004
Steve_K Steve_K is offline
Indigo Rose Customer
 
Join Date: Aug 2004
Posts: 96
No problem, Craig. Glad I could help ...



Steve
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
INFO: Visual Basic 5.0 (SP3) Runtime Notes Desmond Setup Factory 6.0 Knowledge Base 0 11-28-2003 11:29 AM
INFO: Microsoft Data Access Components 2.8 Runtime Notes Desmond Setup Factory 6.0 Knowledge Base 0 11-28-2003 09:20 AM
INFO: Visual Basic 6.0 (SP5) Runtime Support Module Support Setup Factory 6.0 Knowledge Base 0 10-30-2002 04:00 PM
INFO: Visual Basic 5.0 (SP3) Runtime Support Module Support Setup Factory 6.0 Knowledge Base 0 10-30-2002 03:31 PM
HOWTO: Download and Install Files from the Web Support Setup Factory 6.0 Knowledge Base 0 10-23-2002 02:16 PM


All times are GMT -6. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software