Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 27 Sep 2005 15:17:01 -0700,    group: microsoft.public.win32.programmer.directx.misc        back       


Automate installation of DX DirectX 9.0c redistributable   
Are there command-line switches for automating the installation of the 
DirectX 9.0c redistributable? Can the files be extracted to utilize an MSI 
installation?

Thanks,
-- 
Bill Baker
date: Tue, 27 Sep 2005 15:17:01 -0700   author:   Bill Baker

Re: Automate installation of DX DirectX 9.0c redistributable   
On Tue, 27 Sep 2005 15:17:01 -0700, Bill Baker wrote:

> Are there command-line switches for automating the installation of the 
> DirectX 9.0c redistributable? Can the files be extracted to utilize an MSI 
> installation?

Does this point you in the right direction?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/directsdk/ProgrammingGuide/InstallingWithDirectSetup.asp

(Google was "directx redistributable command line").

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Tue, 27 Sep 2005 17:03:17 -0600   author:   The March Hare [MVP]

Re: Automate installation of DX DirectX 9.0c redistributable   
Thanks for the quick reply. Unfortunatley the answer is not what I'm looking 
for. I need to be able to either add command-line switches to dxsetup.exe, or 
extract the files from dxsetup.exe and use the MSI installer (if there is one 
in dxsetup.exe).

Thanks,
-- 
Bill Baker


"The March Hare [MVP]" wrote:

> On Tue, 27 Sep 2005 15:17:01 -0700, Bill Baker wrote:
> 
> > Are there command-line switches for automating the installation of the 
> > DirectX 9.0c redistributable? Can the files be extracted to utilize an MSI 
> > installation?
> 
> Does this point you in the right direction?
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/directsdk/ProgrammingGuide/InstallingWithDirectSetup.asp
> 
> (Google was "directx redistributable command line").
> 
> -- 
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution
>
date: Tue, 27 Sep 2005 16:20:02 -0700   author:   Bill Baker

Re: Automate installation of DX DirectX 9.0c redistributable   
On Tue, 27 Sep 2005 16:20:02 -0700, Bill Baker wrote:

> Thanks for the quick reply. Unfortunatley the answer is not what I'm looking 
> for. I need to be able to either add command-line switches to dxsetup.exe, or 
> extract the files from dxsetup.exe and use the MSI installer (if there is one 
> in dxsetup.exe).

I know it's not exactly what you were looking for but it is a way to
customize the install in accordance with the Redist EULA.  AFAIK, you
cannot extract files to use in your own MSI and be in compliance with the
Redist EULA. 

However, you can customize the install:


Custom Install

DirectSetup facilitates one-call installation of the DirectX components.
DirectSetup includes several API functions and structures as well as a
callback function for customizing the user interface during the
installation process. The DirectX SDK includes a sample application that
demonstrates the use of this callback function (see Dinstall Sample).
Follow the instructions for Redistributable Code contained in the license
agreements within the following folder: (SDK root)\Documentation\License
Agreements.

The DirectXSetup function takes a parameter (lpszRootPath), that points to
the root directory of the installation. It can be NULL to indicate that the
root path is the current directory.

The root directory must contain Dsetup.dll and Dsetup32.dll and all the
redistributable files. To create the proper structure on your application
setup disk, copy the redistributable code from one of the following
locations into the root path of your setup program.

    *

      If the SDK is installed, the installed location is:

      (SDK root)\Redist\DirectX9
    *

      The location on the Microsoft DirectX 9.0 CD is:

      (CD root)\Redist\DirectX9
    *

      If you download the SDK, the location is:

      (Extracted location)\Redist\DirectX9
    *

      A separate download can be obtained at:

      http://msdn.microsoft.com/downloads

DirectSetup enables you to define a callback function for customizing the
DirectX setup process. This callback function is referred to as
DirectXSetupCallbackFunction, but you can give it any name.

You can use the callback function to do the following:

    * Employ a custom interface. Your setup program might display messages
in ways other than by using a MessageBox or standard dialog boxes. The
callback function enables you to integrate messages for the DirectX
component of your installation into your own interface.
    * Update a progress indicator.
    * Suppress the display of status and error messages. Designers of
programs for novice users might want to suppress error messages and let the
setup program handle errors and make upgrade choices silently. This
approach requires a greater development effort for the setup program, but
it might be appropriate for the target audience. 

If a callback function is not provided by the setup program, the
DirectXSetup function displays status and error information in a dialog box
and obtains user input by calling the MessageBox function. If a callback is
provided, the information that would have been used to create the status
dialog or message box is instead passed to the callback. The callback
function is called once for each DirectX component that can be installed or
upgraded.

Create a callback function that conforms to the
DirectXSetupCallbackFunction prototype, as in the following declaration.

In the Dinstall Sample, the name of the function is the same as that of the
prototype, but this is optional. The way your callback function interprets
the parameters is entirely up to you. Typically, you would choose which
messages to display (based on dwReason) and when to present the user with
alternatives, and you would modify the interface accordingly.

The callback function must return:

    * IDOK if there are no choices to be made by the user.
    * MB_OK or MB_OK | MB_ICONERROR if there are errors.

Before calling DirectXSetup, notify DirectSetup that you want to use a
callback by calling the DirectXSetupCallbackFunction function, passing a
pointer to the callback.


-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Tue, 27 Sep 2005 18:33:09 -0600   author:   The March Hare [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us