如何同时在我的应用程序中安装USB驱动程序? [英] How do I install USB driver with my application at the same time?

查看:122
本文介绍了如何同时在我的应用程序中安装USB驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



我使用inno设置来发布我的应用程序,它运行正常。但现在我需要同时安装USB驱动程序(我有inf文件)。你能告诉我怎么做吗?



请参阅以下我目前的inno设置.iss文件。





#define MyAppName" SAMPLE"

#define MyAppExeName" SAMPLE.exe"



[设置]

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

压缩= lzma

SolidCompression =是



[语言]

姓名:" english" ;; MessagesFile:" compiler:Default.isl"



[任务]

名称:" desktopicon" ;;说明:" {{cm:CreateDesktopIcon}" ;; GroupDescription:{cm:AdditionalIcons};标志:未选中



[文件]

来源:" E:\ Bitbucket \EA2015 \ bin \Debug \ SAMPLE.EXE英寸; DestDir:" {app}" ;;标志:ignoreversion

来源:" E:\ BitBucket; \\\ 201520 DestDir:" {app}" ;;标志:ignoreversion

资料来源:" E:\ Bitbucket ;\\EA2015\bin\Debug\default.png" ;; DestDir:" {app}" ;;标志:ignoreversion

...



[图标]

名称:" {group} \ {# MyAppName}英寸;文件名:" {app} \ {#MyAppExeName}"

名称:" {commondesktop} \ {#MyAppName}" ;;文件名:" {app} \ {#MyAppExeName}" ;;任务:desktopicon



[运行]

文件名:" {app} \ {#MyAppExeName}" ;;描述:" {cm:LaunchProgram,{#StringChange(MyAppName,'&','&&')}}" ;;标志:nowait postinstall skipifsilent



我谷歌很多文章但仍然无法弄明白。

如果有问题请随时与我联系如果你有任何问题。

真的很感谢你的帮助!



Eric

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

推荐答案

你可以使用dpinst: https://msdn.microsoft.com/en -us / library / windows / hardware / ff544842(v = vs.85).aspx [ ^ ]



http://stackoverflow.com/questions/8864549/inno-setup-install-drivers-with- rundll32-or-dpinst [ ^ ]
You can use dpinst: https://msdn.microsoft.com/en-us/library/windows/hardware/ff544842(v=vs.85).aspx[^]

http://stackoverflow.com/questions/8864549/inno-setup-install-drivers-with-rundll32-or-dpinst[^]


这篇关于如何同时在我的应用程序中安装USB驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆