Sto cercando di creare un pacchetto per il software Crouzet "Virtual Display". L'ho basato sui miei pacchetti Crouzet Soft e Touch Soft, che installano anche i driver, ma quando avvio Setup_CVD_PC_V2_3_01_02.exe, ottengo ancora queste due schermate (vedi immagine allegata).
Nel mio pacchetto, ho copiato la directory del driver "DriverUSB" da "C:\Programmi (x86)\Crouzet automation\Crouzet Virtual Display\". Ho provato a installare i driver usando pnputil o dpinst, ma ottengo le stesse schermate. Facendo clic manualmente su "Avanti" e "Fine", il pacchetto completa l'installazione senza errori.
Ecco la funzione install():
Codice: Seleziona tutto
def install():
print(r'Installation du certificat Crouzet et SiliconLabs')
currentpath = os.path.dirname(os.path.realpath(__file__))
run(r'C:\Windows\System32\certutil.exe -addstore "TrustedPublisher" %s\crouzet.cer' % currentpath)
run(r'C:\Windows\System32\certutil.exe -addstore "TrustedPublisher" %s\siliconlabs.cer' % currentpath)
print(r'Installation des pilotes USB')
with disable_file_system_redirection():
run(r'C:\Windows\System32\pnputil.exe -i -a "%s\DriverUSB\x64\ftdibus.inf"' % basedir)
run(r'C:\Windows\System32\pnputil.exe -i -a "%s\DriverUSB\x64\ftdiport.inf"' % basedir)
run(r'C:\Windows\System32\pnputil.exe -i -a "%s\DriverUSB\windrv_BLE\x64\dfu.inf"' % basedir)
run(r'C:\Windows\System32\pnputil.exe -i -a "%s\DriverUSB\windrv_BLE\x64\usbserial.inf"' % basedir)
#run_notfatal(r'%s\DriverUSB\windrv_BLE\x64\dpinst.exe /S /F' % currentpath)
#run_notfatal(r'%s\DriverUSB\x64\dpinst.exe /S /F' % currentpath)
print(u'Installation de %s' % app_name)
run_notfatal('Setup_CVD_PC_V2_3_01_02.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-')