genotrance / appsnap

Automatically exported from code.google.com/p/appsnap
0 stars 0 forks source link

AppSnapGui doesn't detect if latest.ini is out of date due to new version regex in userdb.ini #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Steps to Reproduce Issue

1. Create a test section for AAA Testapp in userdb.ini.

Note the version item

[AAA Testapp]
category        = Utilities
describe        = Shell Extension for Audio Files
website         = http://www.softpointer.com/AudioShell.htm
scrape          = http://www.softpointer.com/AudioShell.htm
download        = http://www.softpointer.com/downloads/
version         = version [0-9]
;version        = version ([0-9]+[\.0-9]+)
filename        = AudioShell#REPLACE([.],,#VERSION#)#.exe
instparam       = /sp- /silent /verysilent /norestart /suppressmessageboxes
upgrades        = false
instversion     = REGISTRY_SEARCH:DisplayVersion=([0-9]+[\.0-9]+)
instdir         = REGISTRY_SEARCH:Inno Setup: App Path=(.*)
chinstdir       = /dir="#INSTALL_DIR#"
uninstall       = AudioShell_is1
uninstparam     = /sp- /silent /verysilent /norestart /suppressmessageboxes

2. Open AppSnapGui. Notice AppSnapGui gives the correct Latest Version
(version 1) according to the userdb.ini file. Close AppSnapGui.

3. Fix the version in the userdb.ini file to the regex specified in the
comment line.

4. Open AppSnapGui. Check the box for AAA Testapp. Note the Latest Version.

What is the expected output? What do you see instead?

AppSnapGui still shows version 1 and not version 1.3.5 as it should. The
problem is that version 1 is still in latest.ini and AppSnap is ignoring
the new version regex. Clicking Reload does not help either.

What version of the product are you using? On what operating system?
AppSnapGui 1.3.3 on Vista Ultimate.

Please provide any additional information below.

It seems like AppSnap needs to compare the modification dates on latest.ini
and userdb.ini, and if userdb.ini is newer, ignore the latest version
information in latest.ini.

Original issue reported on code.google.com by daddyd...@gmail.com on 13 Apr 2008 at 3:03

GoogleCodeExporter commented 9 years ago
Latest.ini entries only expire when the cache timeout set in config.ini is 
passed.
AppSnap has no way of knowing that version changed in userdb.ini. Expiring all
entries in latest.ini just because some app in [user]db.ini changed is 
excessive.

So far, I've been deleting the entry in latest.ini and trying again. You can 
also try
the -f flag on the CLI to force retry the latest version detection.

Original comment by ganesh...@gmail.com on 14 Apr 2008 at 1:50

GoogleCodeExporter commented 9 years ago
Working as designed.

Original comment by ganesh...@gmail.com on 16 Dec 2008 at 5:06