This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Installing DirectX in silent Mode along with Installshield 2010
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 16, 2012
06:39 AM
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.
#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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 16, 2013
07:24 AM
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
some questions.
where do I put the directX setup file? do I create a feature for it?
Where does the SRCDIR point to?
thx