I have been a user of MiKTeX (mostly using LyX to typeset my documents with the help of MiKTeX). Till now, I was using MiKTeX version 4.2 to do my work, and I decided to update it to the newest version of MiKTeX available (version 5.1). After uninstalling the previous version, I downloaded the files to my local machine and proceeded with the installation. However, just before the installation was supposed to start, I get this error:

Usage: setupwiz [OPTIONS]
--local-package-repository= DIR
--paper-size= Letter
setupwiz reads its arguments from setupwiz.opt, if such a file exists. See the MiKTeX Manual for more information.

Now, after this, there's only one 'OK' button, which closes the dialogue box. Nothing happens after that. I looked up the MiKTeX Manual as mentioned in the error message, but couldn't understand the error. I am further attaching the screenshot of the error dialogue box for additional information. enter image description here

I will be very grateful if someone pointed out what is the matter with this installation.

P.S.: As MiKTeX is a very essential tool for my workflow, I reinstalled version 4.2 on my computer but didn't come across any such issues this time.

  • 1
    where did you get these versions numbers? The current miktex has version 22.7. If you want to use the setup wizard to install you will have to use the command line and give it at least one option or as the message says write first an option file. Jul 19 at 13:48
  • @UlrikeFischer I got these numbers from the installer that I downloaded from their website. I use the net installer for them. And I haven't used the command line to install MiKTeX up until now, so I don't know how to do it. Can you please show me how I can do that?
    – DeBARtha
    Jul 19 at 13:58
  • 2
    why don't you use the basic installer if you don't know how to use the command line? Jul 19 at 14:01
  • 1
    sure, but after you installed the basic version you can install the rest of the packages with the miktex console. Simply select all missing packages and then click on the + for installation. Jul 19 at 14:49
  • 1
    @DeBARtha From the version-number you provided I guess you use the MikTeX Net Installer. A small manual of the MiKTeX Net Installer can be found here: https://docs.miktex.org/manual/setupwiz.html. You can provide command-line-options. Probably some of them are mandatory, i.e., must be provided? The last time I installed MiKTeX, in a first step I had everything downloaded to a local repository, and in a second step I installed from the local repository. Probably your instructor can provide a local repository from which instructed ones can install? Jul 19 at 17:25


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.