Spawning a file download and execute from a button - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jsavoor
Posts: 13
Joined: Mon Jan 22, 2007 6:23 pm

Spawning a file download and execute from a button

Hi

This is my first foray with Advanced Installer Enterprise which I just bought a couple of days ago. I am creating a package for a management s/w we have. There are a couple of pre-requisites that are required: .NET 2.0, SQL Express and VC++ 2005 Redist Kit.

So the steps I have done so far are:
  • - Filled out all details for Product details and files
    - Created a search for the SQL service presence
    - Ticked the Windows Installer 3 pre-req tick box
    - Ticked the .NET Framework v2.0 tick box
    - Created the required entries in Files and folders
    - Created the required Registry entries
    - Created a custom action to run VCREDIST_X86.EXE from TEMP
    - Created the SERVICES and SERVICE ACTION entries
    - Created a Dialog after LicenseAgreement called VCREDIST. This dialog has a button that has a published event control (DO_ACTION, VCREDIST,AI_INSTALL). So the user has to click the button to start the custom action. *** I TRUST THIS IS RIGHT ***
    - Created a Dialog which is similar to VCREDIST. This needs to have a button that says "Download SQL Express"
    • That downloads (SQLEXPR.EXE) into TEMP from a URL when clicked.
      Runs the SQL Installer (SQLEXPR.EXE) that is downloaded.
      Returns back and proceeds to the next dialog once install is complete.
    The rest of the install proceeds from there.
The problem I am having is the SQL Express part. I dont know how to make the button do a download from URL, etc etc.

Appreciate some help please.

JAy
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
The problem I am having is the SQL Express part. I dont know how to make the button do a download from URL, etc etc.
This can be done using prerequisites. If your application needs to install other software then you can specify that in the "Prerequisite Software" page. Read more about prerequisites and how to use them here:
http://www.advancedinstaller.com/user-g ... tware.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jsavoor
Posts: 13
Joined: Mon Jan 22, 2007 6:23 pm

Hi Gigi

Ok I am doing that now. This is how I have filled in the SWPRE-REQ.

Properties:
Location: URL
URL: htpp://blah.com/sqlexpr.exe
Command Line: SQLEXPR.EXE
Folder: %TEMP%
Exact Size: 56105688
MD5: 6797955b505d3871cabb630db28623a9...

Install Conditions:
Target OS: Windows NT/2K/XP
Criteria: Registry Value
Reg Value: HKLM\Software\Microsoft\Microsoft SQL Server\Services\SQL Server
Minimum Version: MSSQLServer

If I do the above, I presume the system is goign to check the REG and see that the value in the reg key \Microsoft\Microsoft SQL Server\Services\SQL Server <> MSSQLServer and then initiate the download and run before proceeding with the rest of the install?

Or do I have to do something more?

br

Jay
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jay,

The URL is the location of the prerequisite file (it will be downloaded and installed). "Command Line" represents the arguments passed to the downloaded file from the URL location. "Exact Size" and "MD5" must be taken from the prerequisite file.

Note that "Reg Value" must contain a version number and the "Minimum Version" needs to be a valid version (1.0, 2.0, etc). A prerequisite is identified by a version.

Yes prerequisites are installed before you main package.

Hope this helps. If you encounter problems please let me know.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”