mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Windows installer now refuses to continue if calibre.exe is running
This commit is contained in:
parent
79e1e261af
commit
2c99b69242
@ -8,16 +8,18 @@ __docformat__ = 'restructuredtext en'
|
|||||||
import sys, time, subprocess, os, re
|
import sys, time, subprocess, os, re
|
||||||
from calibre import __appname__, __version__
|
from calibre import __appname__, __version__
|
||||||
|
|
||||||
|
INSTALLJAMMER = '/home/kovid/installjammer/installjammer'
|
||||||
|
|
||||||
sv = re.sub(r'[a-z]\d+', '', __version__)
|
sv = re.sub(r'[a-z]\d+', '', __version__)
|
||||||
|
|
||||||
cmdline = [
|
cmdline = [
|
||||||
'/usr/local/installjammer/installjammer',
|
INSTALLJAMMER,
|
||||||
'--build-dir', '/tmp/calibre-installjammer',
|
'--build-dir', '/tmp/calibre-installjammer',
|
||||||
'-DAppName', __appname__,
|
'-DAppName', __appname__,
|
||||||
'-DShortAppName', __appname__,
|
'-DShortAppName', __appname__,
|
||||||
'-DApplicationURL', 'http://%s.kovidgoyal.net'%__appname__,
|
'-DApplicationURL', 'http://%s.kovidgoyal.net'%__appname__,
|
||||||
'-DCopyright', time.strftime('%Y Kovid Goyal'),
|
'-DCopyright', time.strftime('%Y Kovid Goyal'),
|
||||||
'-DPackageDescription', '%s is an e-book library manager. It can view, convert and catalog e-books in most of the major e-book formats. It can also talk to a few e-book reader devices. It can go out to the internet and fetch metadata for your books. It can download newspapers and convert them into e-books for convenient reading.'%__appname__,
|
'-DPackageDescription', '%s is an e-book library manager. It can view, convert and catalog e-books in most of the major e-book formats. It can also talk to e-book reader devices. It can go out to the internet and fetch metadata for your books. It can download newspapers and convert them into e-books for convenient reading.'%__appname__,
|
||||||
'-DPackageSummary', '%s: E-book library management'%__appname__,
|
'-DPackageSummary', '%s: E-book library management'%__appname__,
|
||||||
'-DVersion', __version__,
|
'-DVersion', __version__,
|
||||||
'-DInstallVersion', sv + '.0',
|
'-DInstallVersion', sv + '.0',
|
||||||
|
@ -138,7 +138,7 @@ ProjectID
|
|||||||
DA98A0C6-9102-73EC-2516-B147E972D3F7
|
DA98A0C6-9102-73EC-2516-B147E972D3F7
|
||||||
|
|
||||||
ProjectVersion
|
ProjectVersion
|
||||||
1.2.7.0
|
1.2.12.0
|
||||||
|
|
||||||
SaveOnlyToplevelDirs
|
SaveOnlyToplevelDirs
|
||||||
No
|
No
|
||||||
@ -211,7 +211,8 @@ File ::8E5D85A4-7608-47A1-CF7C-309060D5FF40 -filemethod {Always overwrite files}
|
|||||||
Component ::F6829AB7-9F66-4CEE-CA0E-21F54C6D3609 -setup Install -active Yes -platforms {AIX-ppc FreeBSD-4-x86 FreeBSD-x86 HPUX-hppa Linux-x86 Solaris-sparc Windows} -name Main -parent Components
|
Component ::F6829AB7-9F66-4CEE-CA0E-21F54C6D3609 -setup Install -active Yes -platforms {AIX-ppc FreeBSD-4-x86 FreeBSD-x86 HPUX-hppa Linux-x86 Solaris-sparc Windows} -name Main -parent Components
|
||||||
SetupType ::D9ADE41C-B744-690C-2CED-CF826BF03D2E -setup Install -active Yes -platforms {AIX-ppc FreeBSD-4-x86 FreeBSD-x86 HPUX-hppa Linux-x86 Solaris-sparc Windows} -name Typical -parent SetupTypes
|
SetupType ::D9ADE41C-B744-690C-2CED-CF826BF03D2E -setup Install -active Yes -platforms {AIX-ppc FreeBSD-4-x86 FreeBSD-x86 HPUX-hppa Linux-x86 Solaris-sparc Windows} -name Typical -parent SetupTypes
|
||||||
|
|
||||||
InstallComponent 3EA07B17-04D8-6508-B535-96CC7173B49A -setup Install -type pane -title {Welcome Screen} -component Welcome -active Yes -parent StandardInstall
|
InstallComponent 3EA07B17-04D8-6508-B535-96CC7173B49A -setup Install -type pane -conditions D7F585DB-0DEC-A94E-DAB0-94D558D82764 -title {Welcome Screen} -component Welcome -command reorder -active Yes -parent StandardInstall
|
||||||
|
Condition D7F585DB-0DEC-A94E-DAB0-94D558D82764 -active Yes -parent 3EA07B17-04D8-6508-B535-96CC7173B49A -title {Execute Script Condition} -component ExecuteScriptCondition -TreeObject::id D7F585DB-0DEC-A94E-DAB0-94D558D82764
|
||||||
InstallComponent 7CCDA4BB-861C-C21E-3011-E93DB58F07D6 -setup Install -type action -title {Check for Previous Install} -component CheckForPreviousInstall -active Yes -parent 3EA07B17-04D8-6508-B535-96CC7173B49A
|
InstallComponent 7CCDA4BB-861C-C21E-3011-E93DB58F07D6 -setup Install -type action -title {Check for Previous Install} -component CheckForPreviousInstall -active Yes -parent 3EA07B17-04D8-6508-B535-96CC7173B49A
|
||||||
InstallComponent 580ACF2C-517F-5E48-9DEF-7DAEFBA59FDD -setup Install -type action -conditions 6DE3B369-9D6B-6BC1-4EA0-2C54ECE159EB -title {Set Virtual Text} -component SetVirtualText -command insert -active Yes -parent 3EA07B17-04D8-6508-B535-96CC7173B49A
|
InstallComponent 580ACF2C-517F-5E48-9DEF-7DAEFBA59FDD -setup Install -type action -conditions 6DE3B369-9D6B-6BC1-4EA0-2C54ECE159EB -title {Set Virtual Text} -component SetVirtualText -command insert -active Yes -parent 3EA07B17-04D8-6508-B535-96CC7173B49A
|
||||||
Condition 6DE3B369-9D6B-6BC1-4EA0-2C54ECE159EB -active Yes -parent 580ACF2C-517F-5E48-9DEF-7DAEFBA59FDD -title {String Is Condition} -component StringIsCondition -TreeObject::id 6DE3B369-9D6B-6BC1-4EA0-2C54ECE159EB
|
Condition 6DE3B369-9D6B-6BC1-4EA0-2C54ECE159EB -active Yes -parent 580ACF2C-517F-5E48-9DEF-7DAEFBA59FDD -title {String Is Condition} -component StringIsCondition -TreeObject::id 6DE3B369-9D6B-6BC1-4EA0-2C54ECE159EB
|
||||||
@ -513,7 +514,7 @@ false
|
|||||||
1
|
1
|
||||||
|
|
||||||
3EA07B17-04D8-6508-B535-96CC7173B49A,Conditions
|
3EA07B17-04D8-6508-B535-96CC7173B49A,Conditions
|
||||||
{0 conditions}
|
{1 condition}
|
||||||
|
|
||||||
3EA07B17-04D8-6508-B535-96CC7173B49A,Message,subst
|
3EA07B17-04D8-6508-B535-96CC7173B49A,Message,subst
|
||||||
1
|
1
|
||||||
@ -1100,6 +1101,9 @@ AAFE58A0-2DFB-CA20-1F6E-D3815F885996,Alias
|
|||||||
AIX-ppc,Active
|
AIX-ppc,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
AIX-ppc,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
AIX-ppc,DefaultDirectoryPermission
|
AIX-ppc,DefaultDirectoryPermission
|
||||||
0755
|
0755
|
||||||
|
|
||||||
@ -1286,6 +1290,26 @@ CFBE4459-450B-1FAB-3422-609544334AA2,String
|
|||||||
D79DC0D2-38BC-9D9F-2DF4-3C76D89BF933,ExitType
|
D79DC0D2-38BC-9D9F-2DF4-3C76D89BF933,ExitType
|
||||||
Finish
|
Finish
|
||||||
|
|
||||||
|
D7F585DB-0DEC-A94E-DAB0-94D558D82764,CheckCondition
|
||||||
|
{Before Next Pane is Displayed}
|
||||||
|
|
||||||
|
D7F585DB-0DEC-A94E-DAB0-94D558D82764,Comment
|
||||||
|
{Check if calibre.exe is still running}
|
||||||
|
|
||||||
|
D7F585DB-0DEC-A94E-DAB0-94D558D82764,FailureMessage
|
||||||
|
{calibre is still running. Please shut it down before proceeding. You can quit calibre by right clicking on the calibre system tray icon.}
|
||||||
|
|
||||||
|
D7F585DB-0DEC-A94E-DAB0-94D558D82764,ResultVirtualText
|
||||||
|
CalibreRunning
|
||||||
|
|
||||||
|
D7F585DB-0DEC-A94E-DAB0-94D558D82764,Script
|
||||||
|
{set pid [::InstallAPI::FindProcesses -name calibre.exe]
|
||||||
|
if {$pid eq ""} {
|
||||||
|
## myapp.exe is not running
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
return 0}
|
||||||
|
|
||||||
D86BBA5C-4903-33BA-59F8-4266A3D45896,Conditions
|
D86BBA5C-4903-33BA-59F8-4266A3D45896,Conditions
|
||||||
{2 conditions}
|
{2 conditions}
|
||||||
|
|
||||||
@ -1475,6 +1499,9 @@ FBA33088-C809-DD6B-D337-EADBF1CEE966,String
|
|||||||
FreeBSD-4-x86,Active
|
FreeBSD-4-x86,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
FreeBSD-4-x86,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
FreeBSD-4-x86,DefaultDirectoryPermission
|
FreeBSD-4-x86,DefaultDirectoryPermission
|
||||||
0755
|
0755
|
||||||
|
|
||||||
@ -1526,6 +1553,9 @@ FreeBSD-4-x86,RootInstallDir
|
|||||||
FreeBSD-x86,Active
|
FreeBSD-x86,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
FreeBSD-x86,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
FreeBSD-x86,DefaultDirectoryPermission
|
FreeBSD-x86,DefaultDirectoryPermission
|
||||||
0755
|
0755
|
||||||
|
|
||||||
@ -1577,6 +1607,9 @@ FreeBSD-x86,RootInstallDir
|
|||||||
HPUX-hppa,Active
|
HPUX-hppa,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
HPUX-hppa,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
HPUX-hppa,DefaultDirectoryPermission
|
HPUX-hppa,DefaultDirectoryPermission
|
||||||
0755
|
0755
|
||||||
|
|
||||||
@ -1628,6 +1661,9 @@ HPUX-hppa,RootInstallDir
|
|||||||
Linux-x86,Active
|
Linux-x86,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
Linux-x86,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
Linux-x86,DefaultDirectoryPermission
|
Linux-x86,DefaultDirectoryPermission
|
||||||
0755
|
0755
|
||||||
|
|
||||||
@ -1679,6 +1715,9 @@ Linux-x86,RootInstallDir
|
|||||||
Solaris-sparc,Active
|
Solaris-sparc,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
Solaris-sparc,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
Solaris-sparc,DefaultDirectoryPermission
|
Solaris-sparc,DefaultDirectoryPermission
|
||||||
0755
|
0755
|
||||||
|
|
||||||
@ -1730,6 +1769,9 @@ Solaris-sparc,RootInstallDir
|
|||||||
TarArchive,Active
|
TarArchive,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
TarArchive,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
TarArchive,CompressionLevel
|
TarArchive,CompressionLevel
|
||||||
6
|
6
|
||||||
|
|
||||||
@ -1790,9 +1832,15 @@ TarArchive,VirtualTextMap
|
|||||||
Windows,Active
|
Windows,Active
|
||||||
Yes
|
Yes
|
||||||
|
|
||||||
|
Windows,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
Windows,Executable
|
Windows,Executable
|
||||||
<%AppName%>-<%Version%><%Ext%>
|
<%AppName%>-<%Version%><%Ext%>
|
||||||
|
|
||||||
|
Windows,FileDescription
|
||||||
|
{<%AppName%> <%Version%> Setup}
|
||||||
|
|
||||||
Windows,IncludeTWAPI
|
Windows,IncludeTWAPI
|
||||||
Yes
|
Yes
|
||||||
|
|
||||||
@ -1829,6 +1877,9 @@ Windows,WindowsIcon
|
|||||||
ZipArchive,Active
|
ZipArchive,Active
|
||||||
No
|
No
|
||||||
|
|
||||||
|
ZipArchive,BuildSeparateArchives
|
||||||
|
No
|
||||||
|
|
||||||
ZipArchive,CompressionLevel
|
ZipArchive,CompressionLevel
|
||||||
6
|
6
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user