how to hide cmd windows

26 views
Skip to first unread message

Sylvain Ard

unread,
May 21, 2024, 3:35:23 PMMay 21
to inno...@googlegroups.com
Hello,
I have this innosetup file :
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "ContoursSpores"
#define MyAppVersion "1.0"
#define MyAppPublisher "Sylvain Ard"
#define MyAppURL "http://sylvain-ard.fr"
#define MyAppExeName "ContoursSpores.exe"


[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
DefaultDirName= {localappdata}\ContoursSpores\
AppId={{[SECRET]}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DisableProgramGroupPage=yes
; The [Icons] "quicklaunchicon" entry uses {userappdata} but its [Tasks] entry has a proper IsAdminInstallMode Check.
UsedUserAreasWarning=no
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputBaseFilename=ContoursSetup Setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
DisableDirPage=yes
DisableFinishedPage=yes
PrivilegesRequired=admin
DiskSpanning=yes

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


[Files]
Source: "programme\*"; DestDir: "{app}"; Flags:replacesameversion recursesubdirs
Source: "yolov9\*";  DestDir: "{%USERPROFILE}\.conda\envs\yolov9\"; Flags:replacesameversion recursesubdirs

; NOTE: Don't use "Flags: ignoreversion" on any shared system files


[Run]

Filename: "{app}\install.bat"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: runascurrentuser  postinstall skipifsilent
Filename: "{app}\install2.bat"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags:  runascurrentuser  postinstall skipifsilent

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode


[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon


; cache la case à cocher "lancer l'installation d'imagemagick"
[Code]
procedure CurPageChanged(CurPageID: Integer);
begin
  if CurPageID = wpFinished then
    WizardForm.RunList.Visible := False;
end;

I want to hide install.bat and install2.bat windows, to show a message during their execution saying to wait and show "installation terminated" at their end please.
Thank you
Best regards
 
Sylvain Ard
0549507724
0778380991
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers
Reply all
Reply to author
Forward
0 new messages