Processing
 

Inno Setup based installer hanging installing unsigned driver

15/09/2016 13:59#1

Joined at: 4 months ago

Post: 1

Thank: 0

Thanked: 0

I am working on an installer for the deployment of a piece of software and a variety of it's dependencies. One of these dependencies is an unsigned driver. This driver already has it's own installer, so my Inno Setup script simply calls this .exe if the driver is not currently installed.

The installation of this driver then hangs before the windows unsigned driver prompt shows. It's worth noting that the prompt WILL eventually show, but each time this takes at least 10 minutes and that is just unacceptable.

I have tried running with and without elevated privileges. This problem is not encountered when running the driver installation executable separately.

I have this issue on the following operating systems:

  • Windows 7 Professional SP1 - with the KB3033929 security update.
  • Windows 8.1 Professional

Edit to include code*

[Files] Source: src\ff\driverexecutable.exe; DestDir: {tmp}\ff; Check: ffDriverVerCheck();  [Run] Filename: {tmp}\ff\driverexecutable.exe; Check: ffDriverVerCheck();  [Code]   function ffDriverVerCheck(): boolean;   var     CVersionMS, CVersionLS, IVersionMS, IVersionLS: cardinal;   begin      if FileExists(ExpandConstant('{sys}\DRIVERS\xxx.sys')) and FileExists(ExpandConstant('{sys}\WdfCoInstaller01011.dll')) then begin       if GetVersionNumbers(ExpandConstant('{sys}\DRIVERS\xxx.sys'), CVersionMS, CVersionLS) and GetVersionNumbers(ExpandConstant('{src}\src\ff\driverexecutable.exe'), IVersionMS, IVersionLS)then begin         if CVersionMS < IVersionMS then begin           Result := True;           end else begin           Result := False;         end;       end;     end else begin       Result := True;     end;   end; 

The code above will only extract the driverexecutable.exe to temp to be installed if an old, or no, version of the driver currently exists on the system.

Similar articles

How to use Logstash with log4j in Windows 7 32-bit VM

4 months ago - Reply: 1 - Views: 116

Running webrick server in background for Windows

4 months ago - Reply: 0 - Views: 40

Task Scheduler doesn't start my exe for the next day

4 months ago - Reply: 0 - Views: 32

Unable to get Windows Updates in Windows 7 [on hold]

4 months ago - Reply: 0 - Views: 21

Connect Spark-Shell using Eclipse in Windows 7

4 months ago - Reply: 0 - Views: 21

Can't use custom windows themes

4 months ago - Reply: 1 - Views: 108

“npm install <module>” doesn't work

4 months ago - Reply: 0 - Views: 31

OpenGL 4.5 functions segfaulting

4 months ago - Reply: 0 - Views: 6

Executing a batch file during installation

4 months ago - Reply: 0 - Views: 2

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re