Does Silent Web Update Enable Display Error?

Got a problem you cannot solve? Try here.
danieltan
Posts: 26
Joined: Tue Jul 07, 2015 9:17 pm

Does Silent Web Update Enable Display Error?

Postby danieltan » Fri Nov 20, 2015 2:12 am

Hi,

Code: Select all

  Microsoft SQL Server Script : Connect to database master on instance $SERVERNAME$\$INSTANCENAME$ as user $SQLUSER$ (get result into variable SQLTEST)
 
  Comment: Testing complete
  if Variable SQLTEST Equals SUCCESS
    MessageBox: Success!, Script have been successful deployed.
    Hide Dialog
    else
    MessageBox: Error!, Connection failed. Would you like to try again?
    Hide Dialog
    if Variable WIZARD Equals RETRY
      Comment: Test failed, and retry desired; loop back to the connection dialog
      GoTo Label: Select SQL Server
      else
      if Variable WIZARD Equals CANCEL
        GoTo Label: Main Install
      end
    end
  end

As you see the code above, if the sql script is running fine, it will display messagebox "Success...." otherwise it will display 'Error......."
This messagebox will display for user if the installer do in manual (without using web update).

I found interesting that if using web update and also in silent mode, the installer does not display any error message box even though the code is there especially running sql script.

Any chance to tell InstallAware to display error message during web update (in silent mode)?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Does Silent Web Update Enable Display Error?

Postby FrancescoT » Fri Nov 20, 2015 1:43 pm

Dear Daniel,

you may try to change/set the value of the "SILENT" predefined variable.

SILENT: Initial value set on the command line. TRUE if a silent install should be performed, and FALSE if not. Set the value of this variable from the script to change silent installation mode.

Of course when SILENT = TRUE no UI will be displayed and this includes any MessageBox eventually used with the script.
Generally when executing a process in silent mode, this should return an error code ("Terminate with Exit Code" command) and the caller process should instead report the appropriate error message.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 144 guests