> Using example script code in one of the detect previous version projects, I
> can get the proper previous version to display, but I can't seem to create
> the right variable that actually reads that previous version number and
> then applies the Exit installation control statement to it.
David,
When you use "Detect Previous Version" it will automatically populate two
SetupBuilder variables for you.
%_SB_RETURNEX% will be a string that contains the version number.
%_SB_TMP% will be a full path to the uninstaller.
In the attached screen shot you can see how we used this in the new release
of ProImage to detect that a 1.x version of the product was installed.
We offer a dialog to the user offering to uninstall it for them, and then
if they confirm that action we use the "Run Command Line" option to launch
the uninstaller.
You should be able to examine the %_SB_RETURNEX% after your call to "Detect
Previous Version" and then evaluate what actions you need to take.
Does that help?
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------