Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent uninstall in Windows #94

Closed
m-lindemann opened this issue Mar 13, 2018 · 16 comments
Closed

Silent uninstall in Windows #94

m-lindemann opened this issue Mar 13, 2018 · 16 comments
Assignees
Milestone

Comments

@m-lindemann
Copy link

Is there a way to silent uninstall MiKTeX on Windows? The old way "miktexsetup [options] uninstall" doesn´t work anymore. Thanks!

@yulasinio
Copy link

Same issue here using setup utility v2.9.6637.0 getting error: Unknown/unsupported setup task: uninstall

@edocevoli edocevoli self-assigned this Apr 6, 2018
@edocevoli edocevoli added this to the 2.9.6670 milestone Apr 6, 2018
edocevoli added a commit that referenced this issue Apr 6, 2018
@empereira
Copy link

Hello,

The silent uninstall method works with the uninstall_admin.exe?

C:\Program Files\MiKTeX 2.9\miktex\bin\x64\internal>uninstall_admin.exe uninstall

@edocevoli
Copy link
Member

@infomatico: uninstall_admin.exe is a desktop application and it does not run unattended (silently).

@empereira
Copy link

@edocevoli

I'm using wapt for package remote installation. Is there any way I can uninstall silently via the command line?

@edocevoli
Copy link
Member

miktexsetup uninstall can be used to remove MiKTeX on the command-line. Some in-use files cannot be removed, i.e., you have to remove the installation directory manually. For example:

miktexsetup uninstall
rmdir /S /Q "C:\Program Files\MiKTeX 2.9"

@empereira
Copy link

@edocevoli

I downloaded miktexsetup-2.9 and I also tried with miktexsetup.exe that it has in the installation x64 folder to perform the uninstallation and the following error occurs when executing the command:

C:\Program Files\MiKTeX 2.9\miktex\bin\x64>"miktexsetup.exe" --verbose --shared
uninstall
miktexsetup: Unknown/unsupported setup task: uninstall

In the download page, informs that the miktexsetup is using to uninstall.
image

At the bottom of the link page below is the uninstall command.
https://docs.miktex.org/manual/miktexsetup.html

How can I solve this problem?

@edocevoli
Copy link
Member

miktexsetup.exe is a part of the MiKTeX distribution, i.e., you have to update MiKTeX in order to get miktexsetup.exe. The documentation is a little bit out of date.

@empereira
Copy link

@edocevoli

you have to update MiKTeX in order to get miktexsetup.exe.

Do I need to run the "miktexsetup.exe install" command to update?

@edocevoli
Copy link
Member

You can update MiKTeX as follows:

mpm --update

@empereira
Copy link

@edocevoli

thanks for help!!

Are there any plans for miktex to have an .msi for installations via deploy through active directory?

@edocevoli edocevoli modified the milestones: 2.9.6670, 2.9.6700 Apr 23, 2018
@empereira
Copy link

@edocevoli

Via cmdline returned non-zero exit status 1.

returned non-zero exit status 1.
Output:'"C:\Program Files\MIKTEX\miktex/bin/x64/internal\copystart_admin.exe"' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.

Translation:

returned output status other than zero 1.
Output: 'C:\Program Files\MIKTEX\miktex/bin/x64/internal\copystart_admin.exe' 'is not recognized as an internal command
or external, an operational program or a batch file.

The uninstall key seems to be wrong?!

@MiKTeX MiKTeX deleted a comment from Archanak1 May 2, 2018
@MiKTeX MiKTeX deleted a comment from Archanak1 May 2, 2018
@MiKTeX MiKTeX deleted a comment from Archanak1 May 2, 2018
@empereira
Copy link

@edocevoli

Any news about my doubt?

@edocevoli
Copy link
Member

Please check the milestone
unbenannt

@edocevoli
Copy link
Member

Thank you for the repost. This has been fixed now.

@vickywijek
Copy link

Hi

Did anyone have any luck with silently uninstalling Miktex? I am still having issues with silently uninstalling Miktex 2.9.6753.

I get the following error message when running the silent command: C:\Software\Tex>"C:\Program Files\MiKTeX 2.9\miktex\bin\x64\miktexsetup.exe" uninstall

miktexsetup: Unknown/unsupported setup task: uninstall

@empereira
Copy link

empereira commented Jul 4, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants