View Full Version : Install abort message
lascoff
02-16-2005, 02:59 PM
Is it possible to change the install abort message? Currently the message says: --- The setup is not finished! Do you really want to abort? --- I would like to change this to another message. Please help :)
To do this, you will want to edit the English.xml document located in the Setup Factory 7.0\Languages
folder.
You should probably back up the file first.
Absynthe
02-16-2005, 04:02 PM
Check SetupData.SetLocalizedString in the help file, MSG_CONFIRM_ABORT is what you want to change.
Brett
02-16-2005, 04:04 PM
There are several ways to do this:
1. As JimS mentioned, you can edit "C:\Program Files\Setup Factory 7.0\Languages\English.xml" and change the value of the MSG_CONFIRM_ABORT tag. This will permanently change that message for all future setups built with Setup Factory. This is not reccomended since the next service release will probably overwrite that file anyhow.
2. You can open the file "C:\Program Files\Setup Factory 7.0\Includes\Scripts\_SUF70_Global_Functions.lua" and edit the function g_ConfirmSetupAbort. However, this will have the same permanent affect on setups subsequently built and may also get overwritten by a patch in the future.
3. In your setup project go into the On Startup event and add this:
SetupData.SetLocalizedString("MSG_CONFIRM_ABORT","Whatever you want to say...");
4. If you just don't like the way it is handled at all, just redefine the g_ConfirmSetupAbort function in your On Startup actions:
-- My overridden g_ConfirmSetupAbort function:
function g_ConfirmSetupAbort()
local strTitle = SetupData.GetLocalizedString("MSG_CONFIRM");
local strPrompt = "What are you crazy? You want to abort the setup?";
local nResult = Dialog.Message(strTitle, strPrompt, MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON2);
return (nResult == IDYES);
end
Just make sure that you return true or false (boolean value) from the function.
I would reccomend method 3 or 4.
Solution #4 is a much more elegant fix than the way I described, thanks Brett, that’s good to know.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.