I'm very new to Inno so I haven't used Scripts yet. I compile this into my install script and I get Unknown identifier OldExe. Is OldExe a variable that holds the path to the old executable?
I have another question. My current package uses VFP9, if I apply SP1 and rebuild will the script handle upgrading any installations that have RTM or are there flags to set to make sure that runtime stuff gets upgraded too? Regards Rodney > -----Original Message----- > 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; > ============================================================================== CONFIDENTIALITY NOTICE: The information in this electronic message (including any attachments) is confidential and may be privileged or proprietary. If you are not the intended recipient, any dissemination, disclosure, copying, downloading, or other use of the information is prohibited and unauthorized, and may be unlawful, regardless of address or routing. If you are not the intended recipient, please inform the sender immediately and permanently delete and destroy the original and any copies of this message, including any attachments. ============================================================================== _______________________________________________ Post Messages to: ProFox@leafe.com 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.