James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Example adding DirectX, .net and VC redist as prerequisites

Hi,

I have just downloaded the trial version and am now trying to create a quick prototype install to prove AI can do what I need.

I need to install .Net 2.0, Direct Dec 2006 and VC redist as prerequisites for my app. Is there an example of how to do this?

I have tried using the "add" button, but this just gives me a partially filled in dialog. I would like to know how to successfully fill in this dialog for the above prerequisites.

I would like all the prerequisite data to be bundled with my installation (i.e. no downloading).

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

Hi James,

Thank you for your interest in Advanced Installer.

On how to use prerequisites please see:
http://www.advancedinstaller.com/user-g ... tware.html

When you click "Add" button (to add well know prerequisites), choose "File In Package" as location and AI will ask you to select the prerequisite setup file (the setup file that will install the prerequisite if it was not found). For new prerequisites choose "New...".
http://www.advancedinstaller.com/user-g ... rties.html

On what install conditions to use for .Net 2.0 please see:
http://www.advancedinstaller.com/forums ... php?t=2230

For "VC Redist" prerequisite you can use "Registry key exists" as install condition with following key: HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\8.0\RED\1033\Install

I'm afraid I don't know what "Direct Dec 2006" is. You can install it and determine a file or a registry entry created during installation and use it as install condition for the prerequisite.

For what options you can use as install conditions please see:
http://www.advancedinstaller.com/user-g ... tions.html

To include all the files in the resulted EXE switch to "Media->Bootstrapper" page and select the "Include install files in EXE" options.

Hope this helps. Let us know if you encounter any problems.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Hi,

Thanks for the infomation on VCRedist and .Net, I am trying that out now.

For Direct Dec 2006, that was my typo, sorry. What I meant was DirectX (Dec 2006 release). The single exe provided by Microsoft for end users just unzips some files and is not an actual install. You then have to run dxsetup.exe with the associated cab's present. Is there a way to handle this?

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

Hi James,

To add DirectX as prerequisite choose "Add->Direct X" from "Prerequisites->Software" page. Choose "File In Package" and select the prerequisite file (dxsetup.exe). If you have multiple files (dxsetup.exe + .CAB) then you can add them in the "Files" tab.

Specify the prerequisite version in the "Install Conditions" tab. For all released DirectX versions please see:
http://www.computerhope.com/directx.htm

Hope this helps.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Thanks. Now sorted.

I ended up checking for d3dx9_32.dll as the registry version numbers do not seem to indicate the different releases for dx v9.0c. This file version check for d3dx9_32.dll seems to work.

Now we shall test our protoytpe on some target machines.

I've been very impressed with Advanced Installer so far. Plus your help has been very prompt and useful. If our protoype is successful then we shall definitely buy and use Advance Installer to install it I think.

Cheers
James

Return to “Common Problems”