mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Fix the small problems with the installer described by Paul Rubin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10038 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6c83e71ae7
commit
0100abdb0d
@ -155,15 +155,16 @@
|
|||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 3" "Text" "${DownloadLabel}"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 3" "Text" "${DownloadLabel}"
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 4" "Text" "${HomeLabel}"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 4" "Text" "${HomeLabel}"
|
||||||
|
|
||||||
|
|
||||||
${if} ${ExePath} == ""
|
${if} ${ExePath} == ""
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 3" "State" "1"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 3" "State" "1"
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 4" "State" "0"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 4" "State" "0"
|
||||||
!insertmacro MUI_INSTALLOPTIONS_READ $0 "ioDownload.ini" "Field 5" "Flags"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 5" "Flags" PATH_MUST_EXIST|DISABLED
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 5" "Flags" $0|DISABLED
|
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 5" "State" ""
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 5" "State" ""
|
||||||
${else}
|
${else}
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 3" "State" "0"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 3" "State" "0"
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 4" "State" "1"
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 4" "State" "1"
|
||||||
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioDownload.ini" "Field 5" "Flags" PATH_MUST_EXIST
|
||||||
|
|
||||||
${StrRep} "${ExePath}" "${ExePath}" "${RemoveFromPath}" ""
|
${StrRep} "${ExePath}" "${ExePath}" "${RemoveFromPath}" ""
|
||||||
StrCpy ${ExePath} "${ExePath}${AddtoPath}"
|
StrCpy ${ExePath} "${ExePath}${AddtoPath}"
|
||||||
|
@ -39,4 +39,3 @@ Left=5
|
|||||||
Right=-1
|
Right=-1
|
||||||
Top=47
|
Top=47
|
||||||
Bottom=58
|
Bottom=58
|
||||||
Flags=PATH_MUST_EXIST
|
|
@ -290,7 +290,9 @@ void __declspec(dllexport) run_configure(HWND hwndParent, int string_size, char
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const command = std::string("start /WAIT /B sh.exe ") + configure_file;
|
// Even "start /WAIT /B sh.exe configure" returns
|
||||||
|
// before the script is done, so just invoke "sh" directly.
|
||||||
|
std::string const command = std::string("sh.exe ") + configure_file;
|
||||||
if (system(command.c_str()) != 0) {
|
if (system(command.c_str()) != 0) {
|
||||||
pushstring("-1");
|
pushstring("-1");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user