我绝对是创建安装程序的初学者所以我找到了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
谢谢:)