cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mpa109
Level 5

Disable "Existing Intalled Instances Detected" Dialog (IS2009 InstallScript)

Is it possible to disable the "Existing Intalled Instances Detected" dialog in an InstallScript project? There used to be a setting (IS2008, IS12) in Project Properties for Maintenance Experience that you set to "Multi-Instance" and combine that with a setting Update Mode Supported set "No" and this dialog would not appear, allowing you to run the same installer over and over again.

Now, that Update Mode Supported setting has been removed, and changing the corresponding value in the Direct Editor does nothing.

There is a solution in the Release Notes, but I can't get it to work since the dialog displays before the OnSetUpdateMode event is called, and modifying OnUpdateUIAfter does me no good since the installer will be run on machines with the software already installed without that setting.

Any suggestions would be greatly appreciated.

--------------------------------------------------------------------------
IOC-000058816 (InstallScript)
All InstallScript projects now support showing the update user interface (UI). Previously, the General Information view and the Project Settings dialog box had a confusing option that enabled the update UI to be disabled. If the update UI was disabled, the MEDIA_FLAG_UPDATEMODE_SUPPORTED flag was not set for MEDIA_FIELD_MEDIA_FLAGS, and the OnSetUpdateMode event handler did not set the UPDATEMODE variable when appropriate. As a result, the update UI was not shown.

Note that changing the value of ISShowUpdateUI in the InstallShield table (which the previous option updated) no longer has any effect.

It is possible to duplicate the previous functionality through the following methods:

+ Override the OnSetUpdateMode event and update the function to return before setting the UPDATEMODE variable. The installation never shows the update UI.

+ Override the OnUpdateUIAfter event and change the call for FeatureRemoveAllInMediaAndLog to FeatureRemoveAllInMedia.
Labels (1)
0 Kudos
(8) Replies
Not applicable

The setup.exe flag '/hide_usd' is provided to supress this dialog.

The fact that this dialog was suppressed when update support was turned off was a bug, since multi-instance and support for update mode are not related.

Devin Ellingson
Software Developer
Acresso Software
0 Kudos
mpa109
Level 5

Yup, that works. Thanks.

I do find it amazing that "bugs" in previous versions seemed to have worked to my company's advantage. Keep up the, uh, "good" work?
0 Kudos
vigorski
Level 2

I ran into the same situation.
I am working with InstallShield/InstallScript project that handles multi-instance logic using custom code, and this project also suppressed the "Existing Intalled Instances Detected" dialog through "Update Mode Supported" set "No in the previous versions of InstallShield (12, 11.5,...,6)

After upgrading to InstallShield Professional 2009 I discovered that InstallShield decided to take away this ability to programmatically suppress this dialog.

IMO, the need to use '/hide_usd' command-line argument is confusing to the non-technical users, who usually just double-click setup.exe to run installation.

To "shield" the "install" users from this command-line option I plan to rename setup.exe to something else (norun.exe), and then create a script setup.bat, which just calls the real setup.exe with /hide_usd option.
0 Kudos
Harald_Schwegel
Level 2

vigorski wrote:
IMO, the need to use '/hide_usd' command-line argument is confusing to the non-technical users, who usually just double-click setup.exe to run installation.


Just another example of how IS developers spend their time making ridiculous changes while failing to fix the real problems.
0 Kudos
DLee65
Level 13

vigorski wrote:
I ran into the same situation.
I am working with InstallShield/InstallScript project that handles multi-instance logic using custom code, and this project also suppressed the "Existing Intalled Instances Detected" dialog through "Update Mode Supported" set "No in the previous versions of InstallShield (12, 11.5,...,6)

After upgrading to InstallShield Professional 2009 I discovered that InstallShield decided to take away this ability to programmatically suppress this dialog.

IMO, the need to use '/hide_usd' command-line argument is confusing to the non-technical users, who usually just double-click setup.exe to run installation.

To "shield" the "install" users from this command-line option I plan to rename setup.exe to something else (norun.exe), and then create a script setup.bat, which just calls the real setup.exe with /hide_usd option.


Can't you just modify the Setup.ini to include this value for CmdLine=/hide_usd? It seems to me that this would be more efficient and still shield the user from the command line option.
0 Kudos
walleye
Level 3

Is there a way to set CmdLine= in the setup.ini from the IDE so you don't have to edit that file everytime you do a build?
0 Kudos
walleye
Level 3

Is it possible to add an extra option to the "Maintence Experince" Project Property such as Uninstall/Install that uninstalls the current version of myproduct and then Installs the new version. Of course this prevent the OnUpdateUIBefore and OnUpdateUIAfter event handlers from being called.
0 Kudos
UNeverNo
Level 6

walleye wrote:
Is there a way to set CmdLine= in the setup.ini from the IDE so you don't have to edit that file everytime you do a build?

Yes. Go to Releases, select your Build, select Setup.exe and look there for setup commandline (or something similar, sorry got the german version). Enter "/hide_usd" without " - et voilà 🙂
0 Kudos