Installation Inno安装程序-安装inf和cat文件

Installation Inno安装程序-安装inf和cat文件,installation,driver,inno-setup,setuptools,inf,Installation,Driver,Inno Setup,Setuptools,Inf,我是创建安装程序的新手,所以我找到了inno安装程序,并用安装向导创建了一个安装程序。我可以成功安装我的程序,但我必须安装我的“inf”和“cat”,并且不知道如何安装 我检查了类似的问题,但他们有想法和错误,所以他们知道怎么做。我需要一个教程或指南 下面是我的代码 #define MyAppName "-" #define MyAppVersion "1.0" #define MyAppPublisher "-" #define MyAppURL "-" #define MyAppExeNa

我是创建安装程序的新手,所以我找到了inno安装程序,并用安装向导创建了一个安装程序。我可以成功安装我的程序,但我必须安装我的“inf”和“cat”,并且不知道如何安装

我检查了类似的问题,但他们有想法和错误,所以他们知道怎么做。我需要一个教程或指南

下面是我的代码

#define MyAppName "-"
#define MyAppVersion "1.0"
#define MyAppPublisher "-"
#define MyAppURL "-"
#define MyAppExeName "-"

[Setup]
AppId={{72843ACF-C301-4CEE-9B8F-5BFFEC70280F}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=C:\Users\anilo\Desktop\licence.txt
OutputDir=C:\Users\anilo\Desktop\Setup Deneme
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

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


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

[Files]
Source: "C:\Users\anilo\Documents\Visual Studio 2015\Projects\iDeaLAB_v1\iDeaLAB_v1\bin\Debug\app.publish\iDeaLab.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\anilo\Desktop\NT,2000,XP,VISTA,7,8\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs


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

[Run]
Filename: "RUNDLL32.EXE"; Parameters: "SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 C:\Users\anilo\Desktop\NT,2000,XP,VISTA,7,8\cdc_NTXPVista78.inf"
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

谢谢:)

该.cat包含什么?右键单击它并选择安装选项是否可以安装inf?@CKT是的,我可以右键单击安装inf。我试图创建一个批处理文件,用pnputil安装inf,并在安装程序中调用它,但每次它都说“pnputil不能被识别为内部或外部命令”。我可以手动运行它没有问题,但不能从任何程序调用。批处理文件:
code@echo off cd“%~dp0”pnputil.exe-i-a“cdc\u NTXPVista78.inf”set/p input=“”如果“%input%”==“y”echo ok