mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 06:34:17 +02:00
Portable installer: Better error message when installation fails.
This commit is contained in:
parent
f7212f46cf
commit
11ff1b023d
1 changed files with 5 additions and 2 deletions
|
|
@ -418,8 +418,11 @@ static BOOL move_program() {
|
|||
}
|
||||
|
||||
if (MoveFileEx(L"Calibre Portable\\Calibre", L"..\\Calibre", 0) == 0) {
|
||||
show_last_error(L"Failed to move calibre program folder");
|
||||
return false;
|
||||
Sleep(4000); // Sleep and try again
|
||||
if (MoveFileEx(L"Calibre Portable\\Calibre", L"..\\Calibre", 0) == 0) {
|
||||
show_last_error(L"Failed to move calibre program folder. This is usually caused by an antivirus program or a file sync program like DropBox. Turn them off temporarily and try again. Underlying error: ");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!directory_exists(L"..\\Calibre Library")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue