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.
Post Reply
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. ?

Post by Harishshrivastava01 »

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: 5361
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. ?

Post by FrancescoT »

You may do a try with checking the value stored with the "LASTERROR" pre-defined variable.
https://www.installaware.com/mh52/deskt ... 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
Post Reply