This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Disable silent mode?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 28, 2009
11:19 AM
Disable silent mode?
Is there anyway to disable silent mode? My problem is that I don't want the end-user to be able to uninstall without going through one of my dialog boxes. It's a pain having all these different 'levels' - I just want it to always uninstall the same way. Currently if the end-user runs Installshield's setup.exe - it skips the 'User Interface' section 😞
Thanks for any information,
Dan.
Thanks for any information,
Dan.
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
02:00 AM
Hi,
As it name states a "Silent installation/deinstallation" is not supposed to display any dialog.
For that reason, the UI sequence is not executed when running your setup in silent mode.
Displaying a dialog in the execute sequence, when executed in silent mode would break quite a lot of best practices.
Think about a system administrator who wants to install or deinstall your application on a whole domain. He might want to run your setup in silent mode, so that the installation takes place in the background, without the user even noticing it.
So to answer your questions, it is technically possible to display some dialog or message boxes in the execute sequence, even in silent mode, but it does not make sense in practice.
For instance, you can just add a custom action that calls an Installscript function. A custom action can also call a function in a DLL.
This function can display a message box, without taking the UI level into account.
Regards
As it name states a "Silent installation/deinstallation" is not supposed to display any dialog.
For that reason, the UI sequence is not executed when running your setup in silent mode.
Displaying a dialog in the execute sequence, when executed in silent mode would break quite a lot of best practices.
Think about a system administrator who wants to install or deinstall your application on a whole domain. He might want to run your setup in silent mode, so that the installation takes place in the background, without the user even noticing it.
So to answer your questions, it is technically possible to display some dialog or message boxes in the execute sequence, even in silent mode, but it does not make sense in practice.
For instance, you can just add a custom action that calls an Installscript function. A custom action can also call a function in a DLL.
This function can display a message box, without taking the UI level into account.
Regards
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
07:24 AM
As stated previously, your end-users should be able to run your setup in silent mode.
Since the primary purpose of displaying dialog boxes is to gather user input (and store that input in properties), you should document the names of those properties and the fact that they must have values (either through the user interface, by specifying them as commind-line parameters to the msiexec command or via a transform). What you could then do is author an Error custom action early in the Execute sequence that terminates the installation if the required properties are not set. If the installation fails due to this custom action being trigerred, this fact will appear in the Appication Log and can be seen using the Event Viewer. it would seem to me that this way everyone wins .
Since the primary purpose of displaying dialog boxes is to gather user input (and store that input in properties), you should document the names of those properties and the fact that they must have values (either through the user interface, by specifying them as commind-line parameters to the msiexec command or via a transform). What you could then do is author an Error custom action early in the Execute sequence that terminates the installation if the required properties are not set. If the installation fails due to this custom action being trigerred, this fact will appear in the Appication Log and can be seen using the Event Viewer. it would seem to me that this way everyone wins .
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
08:33 AM
DanGalender wrote:
either through the user interface, by specifying them as commind-line parameters to the msiexec command
Is this for installing or uninstalling? Is there a way I get specifiy what the msiexec command that goes into the 'uninstall' section of the registry is?
Basically, one of my dialog boxes asks the user if they want to remove saved game data (the software is a game). We always want this question to be asked to the user.
If I can change what Installshield puts in the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UninstallString" value, that would solve my problem.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
09:28 AM
There may have been some incorrect assumptions made. What project type are you working with?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
09:34 AM
It's a Basic MSI project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
06:56 AM
Can anyone help with this? Surely it must be possible to have a non silent uninstall when the user uninstalls via add/remove programs? Other non-Installshield installations do this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
10:20 AM
Have you tried creating a custom action to modify the UninstallString in the registry after the RegisterProduct action?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2009
06:59 AM
DanGalender wrote:
Have you tried creating a custom action to modify the UninstallString in the registry after the RegisterProduct action?
Just tried it, and unfortunately, it's looking like using 'uninstall' from add/remove programs ignores this registry value and does it's own thing and still silently removed it 😞 I even tried to replace the UninstallString value with "calc.exe" to see if it was being called, but no - still just uninstalled the product silently.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)