forked from pbatard/libwdi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wdi-simple.iss
61 lines (55 loc) · 2.44 KB
/
wdi-simple.iss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
; This examples demonstrates how libwdi can be used in an installer script
; to automatically intall USB drivers along with your application.
;
; Requirements: Inno Setup (http://www.jrsoftware.org/isdl.php)
;
; To use this script, do the following:
; - configure libwdi (see config.h)
; - compile wdi-simple.exe
; - customize this script (application strings, wdi-simple.exe parameters, etc.)
; - open this script with Inno Setup
; - compile and run
[Setup]
AppName = YourApplication
AppVerName = YourApplication 0.1.10.2
AppPublisher = YourApplication
AppPublisherURL = http://test.url.com/
AppVersion = 0.1.10.1
DefaultDirName = {pf}\TestApp
DefaultGroupName = YourApplication
Compression = lzma
SolidCompression = yes
; Win2000 or higher
MinVersion = 5,5
; This installation requires admin priviledges. This is needed to install
; drivers on windows vista and later.
PrivilegesRequired = admin
[Files]
; copy the 32bit wdi installer to the application directory.
; note: this installer also works with 64bit
Source: "wdi-simple.exe"; DestDir: "{app}"; Flags: replacesameversion promptifolder;
[Icons]
Name: "{group}\Uninstall YourApplication"; Filename: "{uninstallexe}"
[Run]
; call wdi-simple
;
; -n, --name <name> set the device name
; -f, --inf <name> set the inf name
; -m, --manufacturer <name> set the manufacturer name
; -v, --vid <id> set the vendor ID (VID)
; -p, --pid <id> set the product ID (PID)
; -i, --iid <id> set the interface ID (MI)
; -t, --type <driver_type> set the driver to install
; (0=WinUSB, 1=libusb0, 2=libusbK, 3=custom)
; -d, --dest <dir> set the extraction directory
; -x, --extract extract files only (don't install)
; -c, --cert <certname> install certificate <certname> from the
; embedded user files as a trusted publisher
; --stealth-cert installs certificate above without prompting
; -s, --silent silent mode
; -b, --progressbar=[HWND] display a progress bar during install
; an optional HWND can be specified
; -l, --log set log level (0 = debug, 4 = none)
; -h, --help display usage
;
Filename: "{app}\wdi-simple.exe"; Flags: "runhidden"; Parameters: " --name ""XBox Controller"" --vid 0x045e --pid 0x0289 --progressbar={wizardhwnd}"; StatusMsg: "Installing YourApplication driver (this may take a few seconds) ...";