+ Reply to Thread
Results 1 to 10 of 10

Thread: Install DirectX Redistributable

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Install DirectX Redistributable

    Hi To All,

    I could use a little assistance with the command line options for installing directx_mar2008_redist.exe.

    In an install script I am using the Run Program function. The File Name is directx_mar2008_redist.exe, the Target Folder is %CURDIR%, the Command Line is /Q /T:%DXREDIST% /C and the Default Directory is %CURDIR%. I have Wait for Program, Use ShellExecuteEx and Hide Window checked. My issue is the value of %DXREDIST%. %DXREDIST% equals %CURDIR%\DX, for example if %CURDIR% = C:\Installs then %DXREDIST% = C:\Installs\DX. If there is no space in the %CURDIR% variable, then the Run Program function for installing the DirectX redistributable is fine. If there is a space for example if %CURDIR% = C:\Program Files\Installs, then the Run Program function fails. I think the command line option for DirectX can't have spaces.

    Has anyone run across this issue? Does anyone have a solution?

    Thanks,

    Sharon

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install DirectX Redistributable

    Sharon,

    Try to put double-quotes around a long filename.

    Does this help?

    Friedrich

  3. #3

    Default Re: Install DirectX Redistributable

    Hi Friedrich,

    I tried "/Q /T:%DXREDIT% /C" but, it failed.

    How should I do it?

    Thanks,

    Sharon

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install DirectX Redistributable

    Sharon,

    As I understand it, you have the double-quotes around the complete argument. Windows does not allow this.

    Let us assume, you know that %DXREDIT% holds a long pathname. Then Windows expects:

    /Q /T:"%DXREDIT%" /C

    Does this help?

    Friedrich

  5. #5

    Default Re: Install DirectX Redistributable

    Hi Friedrich,

    I tried that and it doesn't appear to work either. Have you tried it that way? Perhaps I'm just doing something wacky.

    Thanks for the help,

    Sharon

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install DirectX Redistributable

    Sharon,

    Yes, we are doing this with all command lines.

    Friedrich

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install DirectX Redistributable

    By the way, add a Display Message Box with the "command line" parameters and see what it displays at runtime.

    Friedrich

  8. #8

    Default Re: Install DirectX Redistributable

    Hi Friedrich,

    Thanks for the quick responses. I am currently "resetting" my test machine. I will try your suggestion again and get back to you with my results. I just want to reiterate that I am going to try to run:

    Run Program %CURDIR%\directx_mar2008_redist.exe /Q /T:"%DXREDIST%" /C (Always Install) [ShellExecuteEx] [Wait]

    Thanks, I'll be back in a little bit with the results. I do appreciate all your help.

    Sharon

  9. #9

    Default Re: Install DirectX Redistributable

    Hi Friedrich,

    Thanks for the help. That was great. I reset my machine and all was okay. I will do more testing.

    Thanks,

    Sharon

  10. #10
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install DirectX Redistributable

    Hi Sharon,

    You are very welcome Please keep us posted.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •