]> git.lyx.org Git - features.git/commitdiff
Do not update MiKTeX database prior to configuration.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 9 Sep 2018 16:33:09 +0000 (12:33 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 9 Sep 2018 16:33:09 +0000 (12:33 -0400)
The user can do this kind of thing if they wish, but we should not
do it on their behalf. (These commands were also run whether MiKTeX
or TeXLive was installed.)

development/Win32/packaging/installer/setup/configure.nsh

index f8156b6d3e777b7bc3228582e20a4c1acdfd124a..80960a61fe9f6f58b00ec91484fc1ce142705d88 100644 (file)
@@ -233,30 +233,11 @@ Var ConfigureReturn
 
 Section -ConfigureScript
 
-  SetOutPath "$INSTDIR\Resources"
-  
-   # install all necessary packages at once because this is much faster then to install the packages one by one
-   DetailPrint $(TEXT_CONFIGURE_LYX)
-   ${if} $MultiUser.Privileges != "Admin"
-   ${andif} $MultiUser.Privileges != "Power"
-    # call the non-admin version
-    # at first we need to synchronize the package database
-    nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--update-db"'
-    nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--require=@$INSTDIR\Resources\Packages.txt"'
-   ${else}
-    ${if} $MiKTeXUser != "HKCU" # call the admin version
-     nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--update-db"'
-     nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--require=@$INSTDIR\Resources\Packages.txt"'
-    ${else}
-     nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--update-db"'
-     nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--require=@$INSTDIR\Resources\Packages.txt"'
-    ${endif}
-   ${endif}
-  
   DetailPrint $(TEXT_CONFIGURE_LYX)
   nsExec::ExecToLog '"$INSTDIR\Python\python.exe" "$INSTDIR\Resources\configure.py"'
   # $ConfigureReturn is "0" if successful, otherwise "1"
   Pop $ConfigureReturn # Return value
+  # Should we do something with that?
 
 SectionEnd