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: how does installer failure work???
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
‎Jan 14, 2008
04:05 PM
how does installer failure work???
Hi All
My question is tht when MSI prereq fails then how does the prerequisite dialog know tht the prereq has failed? Can someone tell me what happens in the background??
Thanks
sunny
My question is tht when MSI prereq fails then how does the prerequisite dialog know tht the prereq has failed? Can someone tell me what happens in the background??
Thanks
sunny
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 15, 2008
01:43 PM
MichaelU wrote:
Prerequisite failures are detected by re-evaluating the conditions. See the documentation on the behavior tab for more details and options.
Thanks Michael for the reply. I have a .net 2 C# console application in which i set System.Environment.ExitCode = 1602 when i get an error.
I wonder if it is the right way to set the condition so that prerequisite fails in an event of error in my c# application?
thanks again
sunny
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 20, 2008
03:31 PM
plzz help. anyone....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 20, 2008
08:45 PM
I don't believe prereqs check exit codes for failure. It simply reevaluates the conditions that caused it to be invoked in the first place.
For example...
If HKEY_LOCAL_MACHINE\SOFTWARE\Foo is missing run prereq
install
If HKEY_LOCAL_MACHINE\SOFTWARE\Foo is still missing, raise an error.
For example...
If HKEY_LOCAL_MACHINE\SOFTWARE\Foo is missing run prereq
install
If HKEY_LOCAL_MACHINE\SOFTWARE\Foo is still missing, raise an error.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2008
01:42 PM
Christopher Painter wrote:
I don't believe prereqs check exit codes for failure. It simply reevaluates the conditions that caused it to be invoked in the first place.
For example...
If HKEY_LOCAL_MACHINE\SOFTWARE\Foo is missing run prereq
install
If HKEY_LOCAL_MACHINE\SOFTWARE\Foo is still missing, raise an error.
but when you do not have any condition and ur prereq fails(gives an error) then how does the installshield know that it has failed?? (i have tried prereqs without any conditions in it and if i cancel in the installation then it says installation failed)
![](/skins/images/B841502EC6C60E3ACD181F0696AD21B9/responsive_peak/images/icon_anonymous_message.png)