Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

ERROR: Installer.patch could not be downloaded #10

Open
i-am-jabriel opened this issue May 8, 2020 · 3 comments
Open

ERROR: Installer.patch could not be downloaded #10

i-am-jabriel opened this issue May 8, 2020 · 3 comments

Comments

@i-am-jabriel
Copy link

i-am-jabriel commented May 8, 2020

Hi I tried following along with the documentation I created my own patch and uploaded the patch to google drive and updated the VERSION_INFO_URL to the new versioninfo.info

The output of the log is

...Checking if files are up-to-date...
...New version available...
An update is available!
https://drive.google.com/uc?id=[ID HERE]&export=download
...Retrieving version info...
...Checking if files are up-to-date...
...Calculating new or changed files...
...Calculating files to download...
...Downloading 1 new or updated file(s)...
...Updating 1 file(s)...
1/1 Downloading: MOM Radio Launcher.exe (0.15MB)
...Calculating new or changed files...
The thread 0x760 has exited with code 0 (0x0).
...Downloading patch: Installer.patch...
ERROR: Installer.patch could not be downloaded
Operation failed...
The program '[24540] MOM Radio Launcher.exe' has exited with code -1 (0xffffffff).

I can't figure out where to even look to attempt to debug this one.

@yasirkula
Copy link
Owner

Do all these logs come from spt_logs.txt? I don't remember logging VersionInfo URL to that file.

@i-am-jabriel
Copy link
Author

i-am-jabriel commented May 8, 2020

Thank you for the fast reply.

No this output is from Console.WriteLine

private static void CheckForUpdates(SimplePatchTool patcher)
		{
			if (patcher.CheckForUpdates(false)) // false: each file is checked one-by-one to see if the app is up-to-date
			{
				WaitForPatcher(patcher);//Failing

				if (patcher.Result == PatchResult.AlreadyUpToDate)
					Console.WriteLine("App is up-to-date!");
				else if (patcher.Result == PatchResult.Failed)
					Console.WriteLine("Operation failed...");//Here
				else
				{

The log from the spt_logs is

=== 05/08/2020 15:37:52 ===
...Retrieving version info...
...Checking if files are up-to-date...
Preferred patch method RepairPatch: 0.15MB
Preferred patch method InstallerPatch: 108.08MB
Applying repair patch
...Calculating new or changed files...
...Calculating files to download...
...Downloading 1 new or updated file(s)...
...Updating 1 file(s)...
1/1 Downloading: MOM Radio Launcher.exe (0.15MB)
DownloadError: ERROR: MOM Radio Launcher.exe could not be downloaded
Applying installer patch
...Calculating new or changed files...
...Downloading patch: Installer.patch...
DownloadError: ERROR: Installer.patch could not be downloaded
ERROR: Installer.patch could not be downloaded

@yasirkula
Copy link
Owner

Hmm, I'd expect to see some detailed error messages there, knowing that the download manager logs exceptions to the log file. Can you try using the console app to test your patch: https://github.com/yasirkula/SimplePatchTool/wiki/Testing-Patches

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

No branches or pull requests

2 participants