witten
/
luminotes
Archived
1
0
Fork 0

Don't overwrite luminotes.db during a reinstall. This way, a user's notebooks won't be overwritten.

This commit is contained in:
Dan Helfman 2008-08-25 15:45:42 -07:00
parent 21d7b3c55e
commit c241cd52da
1 changed files with 3 additions and 1 deletions

View File

@ -100,8 +100,10 @@ class InnoScript:
print >> ofi, r"[Files]"
for path in self.windows_exe_files + self.lib_files:
if "luminotes.exe" in path:
if path.endswith( "luminotes.exe" )
extra = "; BeforeInstall: stop_exe()"
elif path.endswith( "luminotes.db" )
extra = " onlyifdoesntexist"
else:
extra = ""
print >> ofi, r'Source: "%s"; DestDir: "{app}\%s"; Flags: ignoreversion%s' % (path, os.path.dirname(path), extra)