Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,

I use inno setup to release my application and it works fine. But now I need to install the USB driver (I have the inf file) at the same time. Can you show me how to do this?

Please refer to the following for my current inno setup .iss file.


#define MyAppName "SAMPLE"
#define MyAppVersion "1.20"
#define MyAppExeName "SAMPLE.exe"

[Setup]
AppId={#MyAppName}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
DefaultDirName={userdocs}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=E:\Temp\Inno\Easy_Power_Beta_120
OutputBaseFilename=SAMPLE-Beta_1_20-setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "E:\Bitbucket\EA2015\bin\Debug\SAMPLE.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\Bitbucket\EA2015\bin\Debug\cmd.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\Bitbucket\EA2015\bin\Debug\default.png"; DestDir: "{app}"; Flags: ignoreversion


[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

I google lots of articles but still can’t figure it out.
Please feel free to contact me if you have any question.
Really appreciate your help!

Eric
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900