Show SQL server script error in WIX setup -
i've setup project in vs2013 using wix. setup executes sql scripts on sql server. i'd find way add raiserror messages (with severity <11) installation log , show them user.
- your sql script should executed using custom action.
- use system.data.sqlclient.sqlcommand execute script.
then surround try catch , catch exception , show error message below.
try {
// code execute script.
}
catch (exception e)
{
session.message(installmessage.warning, new record(new string[] { e.message }));}
Comments
Post a Comment