AyrA / MakeMKV

MakeMKV Automatic Beta key Update Tool
MIT License
75 stars 6 forks source link

If the program does not retrieve a key don't stop with press any key to continue #2

Open No-good-deed-goes-unpunished opened 2 weeks ago

No-good-deed-goes-unpunished commented 2 weeks ago

I have an automation script which installs all my programs and tweaks my system. It installs MakeMKV then tries to update the key with your makemkvupdater.exe. If there is an error retrieving the key the script stops dead in it's trak with a "press any key to continue" The message is written to a log file and is not visible on the console. Is it possible to remove this pause, or if it's running from a script, don't pause?

Also, I notice the program runs makemkv after attempting to retrieve the key. Which I then have to kill..

"%BasePath%\MakeMKVUpdater" >>%LogFile% 2>&1
taskkill /F /IM "MakeMKV.exe" >>%LogFile% 2>&1
AyrA commented 2 weeks ago

The program is not intended to be run on its own. You're supposed to make the MakeMKV desktop shortcut point to that executable so it updates the key before running MakeMKV itself. It's to make sure you always have the latest key when you run MakeMKV but is not intended to just pre-install the key and then silently exit.

If your goal is to just install the latest key without checking first if that's necessary, you can just go to https://cable.ayra.ch/makemkv/ and use the registry file API directly. Simply download the registry file, then use REG IMPORT <filename> to import it onto your registry.

Note: For the API to work you have to send a proper User-Agent header.