cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
KEiGHT
Level 6

Installing DirectX in silent Mode along with Installshield 2010

Example:

#include "Ifx.h"

#define WIN_DIR WINDIR^"system32"
#define FILE_SPEC "D3DX9_43.dll"
#define SOURCE_FILES SRCDIR
#define DIRECTX "Support\\directx9.0c\\dxsetup.exe"
#define CMD_LINE " /silent"
STRING svResult;

export prototype Data_Installed();
function Data_Installed()

begin;

// Launch DirectX redist

if(FindFile ( WIN_DIR , FILE_SPEC ,svResult) < 0)then
if(AskYesNo ( "DIRECTX 9.0c Update is required.\n\nThe DirectX redist installation includes all the latest and previous released DirectX runtime.\nThis includes D3DX, XInput, and Managed DirectX components.\n\nDo you want to install now DirectX End-User Runtimes ?" , YES )=YES)then
StatusUpdate ( ON, 100 );
SetStatusWindow( 100, "Installing DirectX. Please wait...." );
Delay(1);
LaunchApplication ( DIRECTX ,CMD_LINE, SOURCE_FILES , SW_SHOW , 1000000 , WAIT | LAAW_OPTION_SHOW_HOURGLASS);
endif;
endif;

end;

I guess most of users have conflicts because of this issue 🙂
good luck to all.
Labels (1)
0 Kudos
(1) Reply
kagelind
Level 2

Hi I'm new to install shield but this is exactly what I want to do.
some questions.
where do I put the directX setup file? do I create a feature for it?
Where does the SRCDIR point to?

thx
0 Kudos