How to get an error message of command "apply install"  or can we catch the exception of InstallAware script. ?

Got a problem you cannot solve? Try here.
Harishshrivastava01
Posts: 1
Joined: Sat Jan 09, 2021 11:47 am

How to get an error message of command "apply install"  or can we catch the exception of InstallAware script. ?

Postby Harishshrivastava01 » Sun Jan 10, 2021 10:59 am

Hello,

When I install the software in a drive that does not have sufficient required space then "Apply install" command shows the error message "out of disk space".


I want to get this message in another variable so i can write this message in a text/log file.

Or if we can catch the exception in running script so that we can get to know which problem occurred.

Please advice.
Thank you  

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

Re: How to get an error message of command "apply install"  or can we catch the exception of InstallAware script. ?

Postby FrancescoT » Mon Jan 11, 2021 2:54 pm

You may do a try with checking the value stored with the "LASTERROR" pre-defined variable.
https://www.installaware.com/mh52/desktop/applychanges.htm?rhsearch=apply%20install&rhsyns=%20

LASTERROR: Initially an empty string. After Windows Installer executes, set to the last error that occured during execution, if any


Hope this helps you.
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 18 guests