How can I use com0com?

Theron Boerner's Avatar

Theron Boerner

28 Jul, 2014 06:02 PM

How can I use com0com on appveyor? It requires a restart before the com ports are usable so is there a way to reboot the vm after it is installed?

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Jul, 2014 05:54 AM

    Feodor Fitsner's Avatar

    Restarting build worker VM and getting back to the original place in the build script would be a great feature. I'll add a new item to investigate that.

  2. 2 Posted by Theron Boerner on 08 Aug, 2014 07:08 PM

    Theron Boerner's Avatar

    Any idea when this will be implemented?

  3. Support Staff 3 Posted by Feodor Fitsner on 08 Aug, 2014 09:17 PM

    Feodor Fitsner's Avatar

    Still don't have an ETA, sorry.

  4. 4 Posted by Theron Boerner on 16 Jan, 2015 11:07 PM

    Theron Boerner's Avatar

    Can we get an ETA now?

  5. 5 Posted by Ingo Fischer on 13 Mar, 2018 05:08 PM

    Ingo Fischer's Avatar

    Is there any update in the meantime?! Or any other way to create a useable virtual com port pair on appveyor?

  6. 6 Posted by Ilya Finkelshte... on 13 Mar, 2018 06:08 PM

    Ilya Finkelshteyn's Avatar

    Restart of build VM discussed in this thread already implemented. If you need to restart VM, you can run the following in PowerShell: sleep 5; restart-computer -f; sleep 5. Sleep is need to ensure all traces from build VM reached central servers (and AppVeyor Web UI)

    However I am not sure that it is needed. You can install it with chocolatey package at install stage.

  7. 7 Posted by Oleg B on 05 May, 2018 11:43 PM

    Oleg B's Avatar

    I try use com0com and get problem

    in .appveyor.yml I try disable driver signature verification by bcdedit.exe

      - bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
      - bcdedit.exe -set TESTSIGNING ON
      - ps: sleep 5
      - ps: restart-computer -f
      - ps: sleep 5
      - choco install com0com
      - cd "C:\Program Files (x86)\com0com"
      - .\setupc.exe --silent install PortName=COM33 PortName=COM34
    but it have no result
    [00:00:15]  The install of com0com was successful.
    [00:00:15]   Software installed to 'C:\Program Files (x86)\com0com'
    [00:00:15] Chocolatey installed 1/1 packages. 
    [00:00:15]  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    [00:00:16] cd "C:\Program Files (x86)\com0com"
    [00:00:16] .\setupc.exe --silent install PortName=COM33 PortName=COM34
    [00:00:16]        CNCA0 PortName=COM33
    [00:00:16]        CNCB0 PortName=COM34
    [00:00:16] DIALOG: {
    [00:00:16] UpdateDriverForPlugAndPlayDevices("root\com0com", "C:\Program Files (x86)\com0com\com0com.inf", 0x0)
    [00:00:16] ERROR: 0xE000022F - 
    [00:00:16] } ... ERROR
    [00:00:16] Install not completed!
    [00:00:16] Command exited with code 1
    what I do wrong?
  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac