windows installer

This is a discussion on windows installer within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I have searched the web and read the msdn tutorial but I can't find anywhere the answer to this ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    windows installer

    Hi,
    I have searched the web and read the msdn tutorial but I can't find anywhere the answer to this anywhere:
    I used the deployment project in MSVS .NET 2003 to install my application but I would like to detect if the computer has DirectX >= 9.0 and I can't figure out how to do it and if it's even possible. Any help would be greatly appreciated. Thanks
    Amish

  2. #2
    Chief Code Coloniser!
    Join Date
    Apr 2005
    Posts
    121
    It's possible. So a search for "getdxver" (i think that's the name). I believe it comes with the SDK, and shows you how to check for versions.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    Quote Originally Posted by TheColonial
    It's possible. So a search for "getdxver" (i think that's the name). I believe it comes with the SDK, and shows you how to check for versions.
    Thanks for the answer. This is a C++ function call. I don't think I can use it in a deployment project.
    Amish

  4. #4
    Chief Code Coloniser!
    Join Date
    Apr 2005
    Posts
    121
    why not?

    FYI, It's definitely possible.

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    Quote Originally Posted by TheColonial
    why not?

    FYI, It's definitely possible.
    Could you explain how to do it or point me to someplace that has more information on the subject. Thanks
    Amish

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    You could just include the directx 9 installer in your installer (Microsoft licensing allows you to do this) then it will ask the user if we wants to install directx 9 and update his componants as necercary.

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    But I need the installer to check for previous version of directX first and then if the version is less than 9.0 install it
    Amish

  8. #8
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    Check for "Launch Conditions Editor", it will allow you to check what files are on the users machine. Additionally it can check the versions of that file, as well as alot of other nifty things.

    Also check out "Custom Actions", It allows you to check the status of a flag, these flags can be set by "Launch Conditions". So if you check that a file of a certain exists, and lets say it does exist so it sets that flag. When your installer runs it will check that flag, if it's set to false it will launch your DirectX installer for instance, if it's true it won't launch your DirectX installer.

    I still dont' get how you can write code in the distribution project though, maybe TheColonial can shed some more light on this since I can't seem to find such a thing..except for time consuming hacks using piping and editing the setup file via asm.


    I think your other options would be:
    1) Include the DirectX Installer with your Installer
    2) Make your own installer file, that way you have all the options you want
    3) Check what DX version the user has when the user executes your program, when it can't find DirectX it will ask the user to run a seperate installer (of course you can put this on your distribution disc or on the users computer, maybe if you're distributing it via internet win-zip self extractors might not be out of question).
    Last edited by Tronic; 04-20-2005 at 02:25 PM.
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  3. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. Windows Installer Problem on XP
    By Sh0t in forum Tech Board
    Replies: 4
    Last Post: 10-14-2002, 02:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21