﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>New Boundary Support Forum / General Discussion / Prism Deploy &amp; Prism Pack  / Error Handling in .pts / Latest Posts</title><generator>InstantForum.NET v4.1.3</generator><description>New Boundary Support Forum</description><link>http://www.nbtnet.newboundary.com/forum/</link><webMaster>support@newboundary.com</webMaster><lastBuildDate>Wed, 08 Feb 2012 16:44:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Error Handling in .pts</title><link>http://www.nbtnet.newboundary.com/forum/Topic1800-6-1.aspx</link><description>This can be done, but you need to use a different exit code.  Try:&lt;br&gt;&lt;br&gt;/scriptver 5&lt;br&gt;if EXISTS &lt;Registry Key&gt; "HKLM\Software\Lanovation"&lt;br&gt;  /exitscript 0&lt;br&gt;else&lt;br&gt;  /exitscript 5700&lt;br&gt;endif&lt;br&gt;&lt;br&gt;5700 will return the error "File installation rule conditions not met"</description><pubDate>Fri, 24 Apr 2009 16:52:20 GMT</pubDate><dc:creator>New Boundary Support</dc:creator></item><item><title>Error Handling in .pts</title><link>http://www.nbtnet.newboundary.com/forum/Topic1800-6-1.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I'm trying to handle correctly installation error from my .pts script.&lt;/P&gt;&lt;P&gt;How can i set an error flag in my pts script that is send to the console ?&lt;/P&gt;&lt;P&gt;for example:&lt;BR&gt;/scriptver 5&lt;BR&gt;if EXISTS &amp;lt;registry key&amp;gt; "HKLM;\Software\somwhere"&lt;BR&gt;  /set LASTERROR "-1"&lt;BR&gt;else&lt;BR&gt;  /set LASTERROR "0"&lt;BR&gt;endif&lt;/P&gt;&lt;P&gt;I want have this error in the console....</description><pubDate>Tue, 21 Apr 2009 07:25:52 GMT</pubDate><dc:creator>Sebastien_</dc:creator></item></channel></rss>
