
henri1.5524917514316418E12 asked a question.
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
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.
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
Could anyone please explain how to do that?
How should such a function look like?
export prototype ExitInstaller(HWND);
function ExitInstaller(hInstall)
begin
// decide you want to exit...
return ERROR_INSTALL_FAILURE;
end;
henri