[GD-Windows] Silent DirectX Installation
Brought to you by:
vexxed72
From: Research <res...@ga...> - 2006-08-11 02:18:19
|
Hi, According to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/Simplifying_Game_Installation.asp it is recommended to do a silent install of DirectX, but we're having trouble making this work. Our game doesn't need to be installed, so we're running stright from CD. When the CD is inserted, or the application launched, a "launcher" dialog is displayed. If the player clicks "play", then we are calling: ShellExecute(NULL, "open", "DirectX/dxsetup.exe", "/silent", NULL, SW_SHOWNORMAL); But this call doesn't seem to block and returns immediately, so if the player didn't already have the latest DX installed, it would be partway through installation when the game launched and of course this doesn't work. Is there a way or API to run a program and block until it finishes? Thanks, Brett Bibby GameBrains |