Urgent! How to include DX9 install to a .msi? - 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!

TuPP3
Posts: 2
Joined: Fri Mar 26, 2010 3:46 pm

Urgent! How to include DX9 install to a .msi?

Hello, I'm wondering how to do this task, because I need to include DX9 with my games so that it is included in the .msi installer, and will install automatically after/before the game is installed. Preferably with /silent command.

So far it is just extracting the DX9 files to the game folder, I don't need to extract the DX9 install files at all (excpet maybe temporarily)
I need this answer as soon as possible thanks, I got deadline at the end of this month.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Urgent! How to include DX9 install to a .msi?

Hello,

You can download the directx 9.0c redistributable from here:
http://www.microsoft.com/downloads/deta ... laylang=en

Set this as a prerequisite for your installer:
http://www.advancedinstaller.com/user-g ... tware.html

You can mark the prerequisite for silent install from our Prerequisites page.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
TuPP3
Posts: 2
Joined: Fri Mar 26, 2010 3:46 pm

Re: Urgent! How to include DX9 install to a .msi?

It is still not working, even though I choose "Silent install (no UI)" it opens the DX window. And after the installation I get 4154 error although the DX installation was succesful.

This error is probably an error with the directx installer itself, because the DX version in registry isn't updated after installing it.

I'm still wondering how to make it silent install though.

Also, I need those DX files packed in the .msi, but not extracted. I was able to include the files as "temporary files", but it seems that the installer is not finding them inside the .msi.
This prerequisite seems awfully complicated, andI would rather just execute "DXSETUP.EXE /silent" command after the installation.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Urgent! How to include DX9 install to a .msi?

Hi,
It is still not working, even though I choose "Silent install (no UI)" it opens the DX window
Please note that the silent install option affects the prerequisite wizard, not the actual prerequisite. If you want to install DirectX silently you can try this:
- go to "Software Prerequisites" tab of the "Prerequisites" page
- remove the prerequisite you added
- use the "Add" -> "DirectX 9" context menu or button to add a DirectX 9 prerequisite
- set the "Command Line" field in the Properties tab of the "New Prerequisite" dialog to:

Code: Select all

/Q
- configure the prerequisite the way you need
And after the installation I get 4154 error although the DX installation was succesful.
This happens because the prerequisite detection criteria is incorrect. Try using the predefined prerequisite like I explained above.
Also, I need those DX files packed in the .msi, but not extracted. I was able to include the files as "temporary files", but it seems that the installer is not finding them inside the .msi.
This prerequisite seems awfully complicated, andI would rather just execute "DXSETUP.EXE /silent" command after the installation.
This approach is not recommended because it will copy the DirectX installer on the target machine. However, you can do it like this:
- add the DirectX installer in the "Files and Folders" page as a regular file
- in the Custom Actions page show the "InstallExecuteSequence" -> "InstallFinalize" standard action
- create a Launch file or open URL custom action under InstallFinalize and configure it to launch the DirectX installer
- select the "Asynchronous execution, do not wait for return" option in the Custom Action Properties pane
- set the custom action condition to:

Code: Select all

Not Installed
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”