+ Reply to Thread
Results 1 to 7 of 7

Thread: How to detect available Com Ports on setup computer?

  1. #1

    Default How to detect available Com Ports on setup computer?

    Hi Guys

    I have checked this forum and also the docs but it seems no where is an example for detecting the good old fashion (Serial) Com Ports on a computer in SetupBuilder.

    Has anyone done this? If so, could you give me a example of how you did the detection of the Com Ports. It would be nice also to be able to show which ones are in use and which not not in use (ie. available), if possible.

    Thanks. Have a great day.

    Regards

    Wolfgang

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

    Default Re: How to detect available Com Ports on setup computer?

    Wolfgang,

    How would you do it without SetupBuilder? Once you know how to do this, we can then try to convert this to SetupScript. Or if you have a DLL available that can handle it (e.g. open source), you can call this DLL from your installer.

    Friedrich

  3. #3
    Unregistered Guest

    Default Re: How to detect available Com Ports on setup computer?

    Hi

    Was wondering, is there a way in SetupBuilder to get what type of devices is installed. As the Windows Devices in the Control Panels give you a list of Com Ports availabe. Can SetupBuilder check for this?

    Wolfgang

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

    Default Re: How to detect available Com Ports on setup computer?

    Hi Wolfgang,

    Perhaps it is already enough to enumerate the values under HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM in your setup? You can use the "Get Registry" functionality to handle this and read the COM values.

    Does this help?

    Friedrich

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

    Default Re: How to detect available Com Ports on setup computer?

    BTW, I have attached a quick and dirty demo for you.

    Friedrich
    Attached Images Attached Images  
    Attached Files Attached Files

  6. #6

    Default Re: How to detect available Com Ports on setup computer?

    Hi

    Just fantastic..! It is simple and just perfect for what I am trying to do...


    Thanks.

    Regards

    Wolfgang

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

    Default Re: How to detect available Com Ports on setup computer?

    You are very welcome

    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
  •