Page 1 of 1

[SOLVED] FTDI VCP Driver Package (for Arduino-IDE)

Published: October 4, 2022 - 11:45 AM
by olaplanche
The installation package code for the FTDI VCP Arduino driver:

Pilot source: https://support.arduino.cc/hc/en-us/art ... =undefined

It is impossible to install the binary except with the code below:

setup.py:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables

    # Installing the software
    run_powershell(r'Start-Process %s\FTDI-Driver\dpinst-amd64.exe -Wait -verb runAs' % basedir)

def uninstall():
    ftdiport=makepath(system32,'DriverStore','FileRepository','ftdiport.inf_amd64_02e6e8b10f1ee812','ftdiport.inf')
    ftdibus=makepath(system32,'DriverStore','FileRepository','ftdibus.inf_amd64_27ad3b85ed46c2a0','ftdibus.inf')
    run(r'"%s\DIFX\8F4B2B1257551C94\dpinst-amd64.exe" /s /u %s' % (programfiles64,ftdiport))
    run(r'"%s\DIFX\8F4B2B1257551C94\dpinst-amd64.exe" /s /u %s' % (programfiles64,ftdibus))