避免在两次安装程序中重复安装的相同程序

Avoiding same installed programs which repeated in two times installed programs

我从 LabVIEW 为我的应用程序制作了安装程序。使用这个 LabVIEW 安装程序,我在 Inno setup compiler. Reason for this, I need a single file installer to attach the digital signature. So, I used the Inno setup compiler 的帮助下制作了另一个包含来自 LabVIEW 安装程序的所有文件的 exe 文件,我得到了单个 exe 文件。

但是我在这里遇到的问题是,当我安装这个exe文件(由Inno编译器生成)时,我可以在程序列表中看到两个安装程序文件window。 一个来自 LabVIEW 安装程序,另一个来自 Inno Setup 安装程序。

如何避免安装 Inno 安装程序?

Inno 设置代码:

#define MyAppName "My Product Name"
#define MyAppVersion "4.0"
#define MyAppPublisher "Company Name"
#define MyAppURL "https:/<Mydomain.com>/"
#define MyAppExeName "setup.exe"

[Setup]
SignTool=DigiSign $f

AppId={{02A34D16-B816-44B4-AFD6-C620DE6C3D85}

AppName={#MyAppName}

AppVersion={#MyAppVersion}

AppPublisher={#MyAppPublisher}

AppPublisherURL={#MyAppURL}

AppSupportURL={#MyAppURL}

AppUpdatesURL={#MyAppURL}

DefaultDirName={autopf}\{#MyAppName}

DisableProgramGroupPage=yes

OutputDir=<output directory>\SetupFiles

OutputBaseFilename=My app name_4.0.2006162255 

Compression=lzma

SolidCompression=yes

WizardStyle=modern

RestartIfNeededByRun=no

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

[Files]
Source: "<source file path where LabVIEW installer available>\*"; DestDir: "{userappdata}\<Path for extraction>"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

[Run]
Filename: "{userappdata}\..path .. where.. I .. want to install it...\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; 

Uninstallable=no

我应该在 Inno 设置中使用这个命令。这解决了我的问题。 有关详细信息,请访问此 link