Stop InstallShield installation when Inno Setup is detected

Safiron

I am trying to migrate from InstallShield to Inno Setup. I have all setup but I got stuck on a single case when the user might downgrade from Inno Setup back to the InstallShield. I need InstallShield to fail the installation or at least warn the user to uninstall Inno Setup version first manually (otherwise I get two versions installed and things get messed up).

I CAN´T of course change the existing InstallShield installers in any way since they have already been released. Solution must come from Inno Setup. Any ideas how this could be done? I understand this might me impossible.

Safiron

OK I solved it. (kind of)

There is a simple trick what you can do to trick the InstallShield to think it is already installed even if it is not.

First you need to locate all the registry entries with your UpgradeCode and ProductCode (it should be 3 entries for the UC and 5 for the PC) normally created by the InstallShield. Also note that both GUIDS are stored in the registry in reversed form (first 8 chars are backwards!!! - rest I am not sure of but it can be googled).

Now you need to make the InnoSetup recreate this registry entries. When InstallShield starts it looks for existing version in the registry, if it finds one it tries to uninstall it using the copy of the original installer - path to the copy is stored in the registry at

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products{reversed guid of product code}\InstallProperties]

"LocalPackage"="C:\Windows\Installer\[random string].msi"

If InstallShield wont find this file it will fail. You can also create your own MSI file which will call the uninstall.exe file from InnoSetup.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Canceling an installation in Inno Setup

From Dev

Inno setup hide installation items when switching from one installation to ther other

From Dev

Inno setup hide installation items when switching from one installation to ther other

From Dev

Duplicate entry in installed program when Inno Setup installation is upgraded with MSI/WiX installation

From Dev

How to call an exe when Inno Setup installation fails (within the installer itself)?

From Dev

Inno Setup - How can I tell the installation when it execute Google Chrome, it should open stackoverflow.com?

From Dev

Inno Setup skips postinstall when 3rd party software installation was cancelled

From Dev

Inno setup executes [UninstallRun] during installation followup

From Dev

Inno setup: detect installation based on product code

From Dev

Sign all exe files on Inno Setup Installation

From Dev

Inno Setup - How to set permissions of installation folder

From Dev

Inno setup: detect installation based on product code

From Dev

Inno Setup - properly stop service before file copy

From Dev

C# Project - InstallShield , MySql error when run after installation

From Java

Check installation path for spaces and special symbol in Inno Setup

From Java

Inno Setup: Load file edited during installation for wpInfoAfter

From Dev

Inno Setup custom dialog with per user or per machine installation

From Dev

Force Inno Setup to show UAC prompt during installation

From Dev

Show text during installation process with inno-setup

From Dev

Inno Setup 32bit and 64bit dll installation

From Dev

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

From Dev

Inno Setup Executing a large sql script file during installation

From Dev

Inno Setup Remember selected setup type when Uninstallable=no

From Dev

Inno Setup : Detect if the Setup is running when trying to Uninstall

From Dev

Checking installation integrity with installshield

From Dev

Stop a while loop when a specific term/word is detected in the string

From Dev

Stop Inserting into Table when Duplicate Value Detected Flask SQLAlchemy

From Dev

Inno Setup Load defaults for custom installation settings from a file (.inf) for silent installation

From Dev

Inno Setup Error when using Pascal-Function an Idp

Related Related

  1. 1

    Canceling an installation in Inno Setup

  2. 2

    Inno setup hide installation items when switching from one installation to ther other

  3. 3

    Inno setup hide installation items when switching from one installation to ther other

  4. 4

    Duplicate entry in installed program when Inno Setup installation is upgraded with MSI/WiX installation

  5. 5

    How to call an exe when Inno Setup installation fails (within the installer itself)?

  6. 6

    Inno Setup - How can I tell the installation when it execute Google Chrome, it should open stackoverflow.com?

  7. 7

    Inno Setup skips postinstall when 3rd party software installation was cancelled

  8. 8

    Inno setup executes [UninstallRun] during installation followup

  9. 9

    Inno setup: detect installation based on product code

  10. 10

    Sign all exe files on Inno Setup Installation

  11. 11

    Inno Setup - How to set permissions of installation folder

  12. 12

    Inno setup: detect installation based on product code

  13. 13

    Inno Setup - properly stop service before file copy

  14. 14

    C# Project - InstallShield , MySql error when run after installation

  15. 15

    Check installation path for spaces and special symbol in Inno Setup

  16. 16

    Inno Setup: Load file edited during installation for wpInfoAfter

  17. 17

    Inno Setup custom dialog with per user or per machine installation

  18. 18

    Force Inno Setup to show UAC prompt during installation

  19. 19

    Show text during installation process with inno-setup

  20. 20

    Inno Setup 32bit and 64bit dll installation

  21. 21

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

  22. 22

    Inno Setup Executing a large sql script file during installation

  23. 23

    Inno Setup Remember selected setup type when Uninstallable=no

  24. 24

    Inno Setup : Detect if the Setup is running when trying to Uninstall

  25. 25

    Checking installation integrity with installshield

  26. 26

    Stop a while loop when a specific term/word is detected in the string

  27. 27

    Stop Inserting into Table when Duplicate Value Detected Flask SQLAlchemy

  28. 28

    Inno Setup Load defaults for custom installation settings from a file (.inf) for silent installation

  29. 29

    Inno Setup Error when using Pascal-Function an Idp

HotTag

Archive