On 7/20/06, Rodney Dixon <[EMAIL PROTECTED]> wrote:
I have an application that has been around quite a while so I used the
install builder that shipped with Visual Foxpro.  I think it was VFP 6.
I need to upgrade the application and I'm using Inno Setup for program
installation now.  Because of some issues I have had with uninstalling
an application that has been installed to the same directory using the
old Foxpro installer and Inno Setup, I'm wondering if anyone knows if
Inno can uninstall an app before it does its install.



I use this in the [code] section to check the exe version of existing
installations, It only warns the user to manually uninstall but you
could probably modify it to run the appropriate uninstaller.

function InitializeSetup(): Boolean;
var
        VerMS, VerLS: Cardinal;
begin

        // Pre-2.0 IQ versions used other installers which must be manually 
removed, so
        // Only install if the existing inventory_query.exe is > 2.00 or not
there at all
        Result := False;
        if GetVersionNumbers(ExpandConstant(OldExe), VerMS, VerLS) then begin
                if VerMS >= MinimumOldExeVersionMS then
                        Result := True;
                end
        else
                Result := True;
        if Result = False then
                MsgBox('Your existing copy of Inventory Query can not be
automatically updated.' #13#13
                'Use the ''Add/Remove Programs'' Control Panel to uninstall the 
old
version.', mbInformation, MB_OK);
end;


--
Dave Thayer
Denver, CO


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to