View Full Version : An old version of [PRODUCTNAME] has been detected on your computer
NewsArchive
06-27-2007, 04:24 AM
>>An old version of [PRODUCTNAME] has been detected on your computer
Where can I edit the "old version detection" routines. I don't want to use
patches but I want to make sure the update is installed in the correct
folder (and the last installed version - given that users make backups of
folders)
thanks
Mike
NewsArchive
06-27-2007, 04:24 AM
Mike,
It's just a predefined text resource (translated to multiple languages).
You can use this text resource in your own detection logic (based on
registry keys, INI values, specific file information, etc.). You can detect
an installed version using the "Detect Previous Version" function.
Does this help?
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
06-27-2007, 05:16 AM
The problem could be that the previous version was installed with SB4.
Did SB4 create a Product GUID? Or other identifier. My own app did not
because
I was planning to search for the main data file and check its date last
used.
Mike
NewsArchive
06-27-2007, 05:37 AM
Friedrich
Does SB have a "search for file" function? Something that would return
instances of a given filename?
Mike
NewsArchive
06-27-2007, 05:38 AM
Hi Mike,
Yes, there is a "Search for File..." script function.
Friedrich
NewsArchive
06-27-2007, 06:11 AM
Thanks Friedrich - I've got some ideas to work on. Of course,
if anyone reading this has a script they already wrote I wouldn't
say no :)
Mike
NewsArchive
06-27-2007, 06:11 AM
Mike,
It's very easy to use :) The following displays a Wait dialog, searches for
coolapp.exe and if detected, sets the default installation folder to the
folder where coolapp.exe is located in.
Display Wait Dialog - Please wait...
Set Variable %SEARCH_FILE% to FUNCTION:Search For File("coolapp.exe")
Close Wait Dialog
If %_SB_ERRORCODE% Not Equals "0" Then
! Previous version detected
Set Variable %_SB_INSTALLDIR% to "%SEARCH_FILE%"
Else
! No previous version available
End
HTH,
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.