Alberto,

> I need to replace a TPS on the target machine but only if it has no records.
> Any way to do it?

You can write and compile a DLL in LIB mode so the RTL is included and
you can run it from within the install. This DLL could open the file
and check the record count and you can use the returned value to
decide what to do or let the DLL do that for you too.

Look at these two items in the SB help...

1. #include support file
2. Call DLL Function

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"