Re: Silent DirectX Installation

"Mat Noguchi (BUNGIE)" <[email protected]> Thu, 10 Aug 2006 21:18:34 -0700
Newsgroups gmane.games.devel.windows
Message-ID <1B678752C03CB44AAA5D9C90991EFEEC086C65B7@RED-MSG-42.redmond.corp.microsoft.com>
[Assuming the filters let this through...]
 
You should be able to use ShellExecuteEx with SEE_MASK_NOCLOSEPROCESS and then call WaitForSingleObject on the returned process handle.
 
MSN

________________________________

From: [email protected] on behalf of Research
Sent: Thu 8/10/2006 7:15 PM
To: [email protected]
Subject: [GD-Windows] Silent DirectX Installation



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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555