Inno Setup Check additional (Windows Installer) mutex

Marco Rebsamen

How can I check for a mutex in Inno Setup? I want my installer to wait if a Windows Installer installation is running.

I've only found the AppMutex Directive in Inno Setup but this does not exactly what I want.

Martin Prikryl

Use the CheckForMutexes function from the InitializeSetup event function.

[Code]

function InitializeSetup(): Boolean;
begin
  while CheckForMutexes('_MSIExecute') do
  begin
    MsgBox('Windows Installer Installation is running', mbError, MB_OK);
  end;

  Result := True;
end;

Assuming (based on the deleted answer by @ChristopherPainter) that the _MSIExecute is the mutex to check for.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Creating a windows installer for python using inno setup

From Dev

Inno Setup - How to Install Windows Update Offline Installer

From Dev

Installing Windows shell extension DLL with Inno Setup installer

From Dev

Inno Setup - Installer for multiple installers

From Dev

Inno Setup - Installer for multiple installers

From Dev

How to extract a Inno Setup Installer

From Dev

How to Check whether required space available in the hard disk to install application using inno setup installer

From Dev

Installer created via Inno Setup, can't close applications during installation on Windows 10

From Dev

Microsoft SmartScreen - suspended using Inno Setup installer?

From Dev

Inno Setup specify log name within the installer

From Dev

Create a small web installer using Inno Setup

From Dev

Create a transparent installer using Inno Setup?

From Dev

Inno setup: check for new updates

From Dev

Check System Architecture in Inno Setup

From Dev

Inno setup: check for new updates

From Dev

Remove Windows Frame - Inno Setup

From Dev

Remove Windows Frame - Inno Setup

From Dev

Windows package installer for automatic setup

From Dev

How to create a setup installer in Windows?

From Dev

How to check for presence of a directory in Inno Setup preprocessor?

From Dev

How to check if port is usable in Inno Setup?

From Dev

Inno Setup: Check if component was previously downloaded

From Dev

Inno Setup check if a machine is joined to a Domain

From Dev

How to check partition type in inno setup?

From Dev

How to check Internet connection using Inno Setup

From Dev

Inno Setup Check function for Dirs section

From Dev

Inno Setup: Check if component was previously downloaded

From Dev

Adding additional files to an Inno based setup for a Netbeans application

From Dev

Inno setup subfolders with additional installation in "All Programs" list?

Related Related

  1. 1

    Creating a windows installer for python using inno setup

  2. 2

    Inno Setup - How to Install Windows Update Offline Installer

  3. 3

    Installing Windows shell extension DLL with Inno Setup installer

  4. 4

    Inno Setup - Installer for multiple installers

  5. 5

    Inno Setup - Installer for multiple installers

  6. 6

    How to extract a Inno Setup Installer

  7. 7

    How to Check whether required space available in the hard disk to install application using inno setup installer

  8. 8

    Installer created via Inno Setup, can't close applications during installation on Windows 10

  9. 9

    Microsoft SmartScreen - suspended using Inno Setup installer?

  10. 10

    Inno Setup specify log name within the installer

  11. 11

    Create a small web installer using Inno Setup

  12. 12

    Create a transparent installer using Inno Setup?

  13. 13

    Inno setup: check for new updates

  14. 14

    Check System Architecture in Inno Setup

  15. 15

    Inno setup: check for new updates

  16. 16

    Remove Windows Frame - Inno Setup

  17. 17

    Remove Windows Frame - Inno Setup

  18. 18

    Windows package installer for automatic setup

  19. 19

    How to create a setup installer in Windows?

  20. 20

    How to check for presence of a directory in Inno Setup preprocessor?

  21. 21

    How to check if port is usable in Inno Setup?

  22. 22

    Inno Setup: Check if component was previously downloaded

  23. 23

    Inno Setup check if a machine is joined to a Domain

  24. 24

    How to check partition type in inno setup?

  25. 25

    How to check Internet connection using Inno Setup

  26. 26

    Inno Setup Check function for Dirs section

  27. 27

    Inno Setup: Check if component was previously downloaded

  28. 28

    Adding additional files to an Inno based setup for a Netbeans application

  29. 29

    Inno setup subfolders with additional installation in "All Programs" list?

HotTag

Archive