installing DirectX redist march 2007 - 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!

pmalick
Posts: 15
Joined: Fri Jul 10, 2009 4:43 pm

installing DirectX redist march 2007

Hello,

In my installer I need to install the DirectX redist from march 2007 before registering an activeX component.
Unfortunately the DirectX redist is made of 6 files :
- APR2007_d3dx9_33_x86.cab
- DSETUP.dll
- dsetup32.dll
- dxdllreg_x86.cab
- DXSETUP.exe
- dxupdate.cab
The file I need to execute is DXSETUP.exe and it needs the other files
I need to execute the DX redist before registering the OCX components.
I cannot build up a prerequisite since I didn't know what are the install condition and the recomended way to proceed is to execute always the DXSETUP.exe and it will decide what to update/install

I didn't find a way to do that with advanced installer ...
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: installing DirectX redist march 2007

Hello,

Actually you can use the predefined DirectX prerequisite from Advanced Installer. As stated by Microsoft on the latest DirectX redistributable download page, the redist package also installs the runtime:
The DirectX redist installation includes all the latest and previous released DirectX runtime. This includes D3DX, XInput, and Managed DirectX components.
You can specify the version number from the predefined prerequisite's "Install Conditions" tab by double clicking on the registry search. In your case it would be 4.09.
Here is a list with all the DirectX versions and their release dates.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pmalick
Posts: 15
Joined: Fri Jul 10, 2009 4:43 pm

Re: installing DirectX redist march 2007

Hi,

Thanks for your help.

Hmmm, I had a look on the wikipedia page. The version I need to install is the DirectX 9.0c bimonthly updates from April 2007 (I made a date mistake in the title of this post). The size of this update is around 3MB. This update has nothing to do with the full DirectX redist which is about 100MB big.
On the wikipedia page I didn't see a different version number between DirectX 9.0c and the bimonthly updates, each have the version number 4.09.00.0904
As explained in my first post, microsoft recomends to always execute DXSETUP.exe and it will decide what to update/install. There is no simple way to check if the bimonthly update is installed or not.

One solution could be to include the 6 directX redist files in the installer package and to execute DXSetup.exe after they have been copied on the disk and before the OCX registration, ufortunately I didn't found a way to do that with advanced installer.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: installing DirectX redist march 2007

Hi,
One solution could be to include the 6 directX redist files in the installer package and to execute DXSetup.exe after they have been copied on the disk and before the OCX registration
If you use a prerequisite then you can add the files in the Files tab from the Edit Prerequisite window. This way, DXSetup.exe will execute before the OCX registration.
As explained in my first post, microsoft recomends to always execute DXSETUP.exe and it will decide what to update/install. There is no simple way to check if the bimonthly update is installed or not.
You can try to create your own EXE that verifies whether the bimonthly update is installed or not.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pmalick
Posts: 15
Joined: Fri Jul 10, 2009 4:43 pm

Re: installing DirectX redist march 2007

Thanks for you answer Bogdan
Bogdan wrote:If you use a prerequisite then you can add the files in the Files tab from the Edit Prerequisite window. This way, DXSetup.exe will execute before the OCX registration.
Yes, but the question is how can I trigger the prerequisite display since there is no simple way to know if the bimonthly update is installed or not. Microsoft didn't recommend to check if dll are installed or the version of the installed DLLs. The only way to proceed properly is to execute DXSetup.exe at each execution of my installer. The other condition is that I need to install the redist package before the OCX registration.
Bogdan wrote:You can try to create your own EXE that verifies whether the bimonthly update is installed or not.
Sorry but this is not an acceptable solution and absolutely not recommended by Microsoft. One of the main role of DXSetup.exe is to do what you describe above.

Here after I will try to summarize what I want to do.
1. I will add the DirectX bimonthly redist package (made of 6 files) to my installer
2. When I execute my installer :
a. I will copy the DX redist files to the HD
b. I want to execute DXSetup.exe (part of the DX Redist package) before the OCX registration process and wait the end of the DXSetup phase before continuing the execution of my installer
c. At the end of the installation process I would like to remove the DX redist files from the HD.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: installing DirectX redist march 2007

Hello,

A solution scenario to your requirements would be to:
1. Add the files as temporary files.
2. Use an UI custom action to install DirectX. You can sequence the execution of the custom action after WelcomeDlg in the InstallUISequence. This way it will execute after the user clicks the Install button.

Please try this approach and let us know how it turned out.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”