Search code examples
inno-setuplabview

Avoiding same installed programs which repeated in two times installed programs


I made the installer from LabVIEW for my application. Using this LabVIEW installer, I made another exe file that contains all files from LabVIEW installer with the help of Inno setup compiler. Reason for this, I need a single file installer to attach the digital signature. So, I used the Inno setup compiler and I got the single exe file.

But the problem I faced here, when I am installing this exe file(generated from Inno compiler), I can see the two installer files in the program list window. one is from LabVIEW installer and another one is Inno Setup installer.

How can I avoid Inno setup installer?

Inno setup code:

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

Control panel : Uninstall program window


Solution

  • Uninstallable=no
    

    I supposed to use this command in the Inno setup. This resolved my issue. For more information visit this link