Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2002
    Posts
    18

    Install abort message

    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

  2. #2
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    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.
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

  3. #3
    Join Date
    Sep 2004
    Posts
    60
    Check SetupData.SetLocalizedString in the help file, MSG_CONFIRM_ABORT is what you want to change.

  4. #4
    Join Date
    Jan 2000
    Posts
    2,002
    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:

    Code:
    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:

    Code:
    -- 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.

  5. #5
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Solution #4 is a much more elegant fix than the way I described, thanks Brett, that’s good to know.
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

Similar Threads

  1. Abort Install Question
    By Auto in forum Setup Factory 6.0
    Replies: 5
    Last Post: 02-27-2004, 09:34 AM
  2. HOWTO: Abort an Install Conditionally
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-24-2002, 02:28 PM
  3. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  4. HOWTO: Limit the Number of Times an Install can be Run
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 02:58 PM
  5. Packages and If Statements
    By Medlir in forum Setup Factory 6.0
    Replies: 4
    Last Post: 05-09-2002, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts