New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Error Handling in .ptsExpand / Collapse
Author
Message
Posted 4/21/2009 7:25:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/21/2009 7:20:19 AM
Posts: 3, Visits: 7
Hello,

I'm trying to handle correctly installation error from my .pts script.

How can i set an error flag in my pts script that is send to the console ?

for example:
/scriptver 5
if EXISTS <registry key> "HKLM;\Software\somwhere"
  /set LASTERROR "-1"
else
  /set LASTERROR "0"
endif

I want have this error in the console....

Post #1800
Posted 4/24/2009 4:52:20 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 2/12/2011 11:11:06 PM
Posts: 742, Visits: 1,211
This can be done, but you need to use a different exit code. Try:

/scriptver 5
if EXISTS "HKLM\Software\Lanovation"
/exitscript 0
else
/exitscript 5700
endif

5700 will return the error "File installation rule conditions not met"



New Boundary Technologies Support
support@newboundary.com

Post #1801
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:28pm

Powered By InstantForum.NET v4.1.3 © 2012
Execution: 0.172. 12 queries. Compression Enabled.