Win installer: check that the Win installer is not already running

This commit is contained in:
Uwe Stöhr 2017-11-22 00:33:29 +01:00
parent 5228f0c396
commit 0621138daa

View File

@ -603,31 +603,21 @@ Function .onInit
Quit Quit
${endif} ${endif}
# Fixme: the Unicode version of FindProcDLL::FindProc # check that another LyX installer is not currently running
# reports always that it is already running !if ${SETUPTYPE} == STANDARD
# check that the installer is not currently running FindProcDLL::FindProc "${BundleExeFile}"
#FindProcDLL::FindProc "${BundleExeFile}" ${if} $R0 == "1"
#${if} $R0 == "1" MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
# MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK Abort
# Abort ${endif}
#${endif} !endif
#FindProcDLL::FindProc "${ExeFile}" !if ${SETUPTYPE} == BUNDLE
#${if} $R0 == "1" FindProcDLL::FindProc "${ExeFile}"
# MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK ${if} $R0 == "1"
# Abort MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
#${endif} Abort
#System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${BundleExeFile}.Instance") i .r1 ?e' ${endif}
#Pop $R0 !endif
#${if} $R0 != "0"
# MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
# Abort
#${endif}
#System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${ExeFile}.Instance") i .r1 ?e'
#Pop $R0
#${if} $R0 != "0"
# MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
# Abort
#${endif}
# Check that LyX is not currently running # Check that LyX is not currently running
FindProcDLL::FindProc "lyx.exe" FindProcDLL::FindProc "lyx.exe"