【问题标题】:Avoiding same installed programs which repeated in two times installed programs [duplicate]避免重复安装两次的相同安装程序[重复]
【发布时间】:2020-06-17 11:44:05
【问题描述】:

我从 LabVIEW 为我的应用程序制作了安装程序。使用这个 LabVIEW 安装程序,我在Inno setup compiler 的帮助下制作了另一个包含来自 LabVIEW 安装程序的所有文件的 exe 文件。为此,我需要一个文件安装程序来附加数字签名。所以,我使用了Inno setup compiler,我得到了单个 exe 文件。

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

如何避免 Inno setup 安装程序?

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, '&', '&&')}}"; 

【问题讨论】:

标签: inno-setup labview


【解决方案1】:
Uninstallable=no

我应该在 Inno 设置中使用这个命令。这解决了我的问题。 欲了解更多信息,请访问link

【讨论】:

  • 这只是第一步。但它会将LabVIEW安装程序留在“Program Files”文件夹中。有关完整的解决方案,请参阅我在您的问题中发布的链接。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-05
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多