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
- :
- Error_install_failure
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
‎Nov 12, 2008
05:22 AM
abort
In my basic msi project I use "abort" in the script. But whatever the setup does, it does not abort!. I also tried Do(EXIT).\
Under certain circumstances I want the script and setup to abort (for example, when the vista version doesn't have SP1 or when XP doesn't have the windows installer 3.1 installed).
How do I force the setup to abort??
Henri
Under certain circumstances I want the script and setup to abort (for example, when the vista version doesn't have SP1 or when XP doesn't have the windows installer 3.1 installed).
How do I force the setup to abort??
Henri
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2008
07:50 AM
To test system requirements in a Basic MSI project, you might consider an Install Condition (or launch condition), which you can define in the Product Properties view.
In general, to exit an installer from an InstallScript (or MSI DLL) action, your function should return ERROR_INSTALL_FAILURE. Another approach is to set a property (ACTION1FAILED, say) in your action, and then, follow your action with an Error custom action that's conditioned with ACTION1FAILED, and which displays a custom message.
In general, to exit an installer from an InstallScript (or MSI DLL) action, your function should return ERROR_INSTALL_FAILURE. Another approach is to set a property (ACTION1FAILED, say) in your action, and then, follow your action with an Error custom action that's conditioned with ACTION1FAILED, and which displays a custom message.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2008
10:05 AM
Thanks for the answer. (I do have one of your books ;-)) .
I cannot use the settings of the project because this message isn't for all users. Only for the users of winXP/2000 without the windows installer 3.1 and for Vista users without servicepack 1., BUT not for all of them. Only for those who are going to silently install Pervasive 10.1!!
I will try to see if your other suggestions are possible for me...
henri
I cannot use the settings of the project because this message isn't for all users. Only for the users of winXP/2000 without the windows installer 3.1 and for Vista users without servicepack 1., BUT not for all of them. Only for those who are going to silently install Pervasive 10.1!!
I will try to see if your other suggestions are possible for me...
henri
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2008
05:55 AM
The problem is, that it is in the middle of the script. I don't understand where the commands Do(EXIT) or abort are for, if not for aborting the script. The script does not do anything with those commands(??)
Could anyone please explain how to do that?
Could anyone please explain how to do that?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2008
09:08 AM
I gather abort and Do(EXIT) are for InstallScript projects (and perhaps InstallScript MSI projects), where InstallScript custom actions in a Basic MSI project expect functions to return ERROR_SUCCESS on success and ERROR_INSTALL_FAILURE otherwise...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2008
09:42 AM
ok. But how can I return an ERROR_INSTALL_FAILURE from the function then as you suggested. I tried to call a function in the middle of the script that returned such an error, but the setup just went on installing 😉
How should such a function look like?
How should such a function look like?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2008
09:56 AM
The help topic "Writing Entry-Point Functions" has an example; the general idea is:
export prototype ExitInstaller(HWND);
function ExitInstaller(hInstall)
begin
// decide you want to exit...
return ERROR_INSTALL_FAILURE;
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2008
10:02 AM
allright. I will try to build in such a function, but i will do it before entering the very long script. Thanks. I will let you know how I will end up. But that will be next monday. Thank you very much....
henri
henri