DrDoctor13 / wine-origin-updater

Updater for Origin in Wine
57 stars 17 forks source link

Ran the updater script, but Origin still thinks it's out of date #9

Open YamiYukiSenpai opened 5 years ago

YamiYukiSenpai commented 5 years ago

I installed Origin through Lutris, and even after running the script, Origin still thinks it's out of date.

I made sure it's not running in the background.

DrDoctor13 commented 5 years ago

I had this problem for a while, too. Eventually, it goes away. Does it keep trying to run the installer or just display a banner?

On Fri, Dec 14, 2018, 4:22 PM YamiYukiSenpai <notifications@github.com wrote:

I installed Origin through Lutris, and even after running the script, Origin still thinks it's out of date.

I made sure it's not running in the background.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DrDoctor13/wine-origin-updater/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/ALJ3MQE6HRtBR-1zEw2UkseWPe6uL3mQks5u5BaYgaJpZM4ZUSgP .

bytemech commented 5 years ago

Can confirm that Version 10.5.31 of Origin seems to have this issue for me as well. Looking at the source of updateorigin.sh I imagine the problem is upstream and origin have not published a fully patched .exe as their recent download version and are relying on people downloading then updating.

What happens after updateorigin.sh is run is

This has been happening for me for the last 4 days.

AlexJDowson commented 5 years ago

Also experiencing this issue on Lutris using wine-4.0-rc7 (32-bit prefix). The script runs without error, and "does it's thing" (downloads Origin, unpacks the installer, and moves a bunch of files around). But, Origin still requests that I update. I'm running the script from within the Origin install directory.

0xFFFFFFFFFFFFFFFFFF commented 5 years ago

Origin is such a piece of crap. I installed it on a Windows VM, copied the installation files to my wine prefix and it won't log me in. I enter the right credentials and they ask me to send an email. Ok, no problem. I enter the right 2FA code, and it says that I can't login right now. Wow.

FiXIDeA commented 5 years ago

I have same issue. "unzip ./OriginSetup.exe" in Origin directory fixed my problem

File OriginClientService.exe is different in root of "OriginSetup.exe" and in "update/OriginUpdate_10_5_34_21025.zip".

phrogg commented 5 years ago

Same issue. Also the solution from @FiXIDeA did not work for me unfortunately.

fskale commented 5 years ago

Hi all, because my daughter bugged me for a day, i had time to debug and found the problem. The updateorigin.sh always downloads the latest version and some time in the past, origin enabled the option (local.xml) to allow Beta version to be installed. Here we are. The Installer tries to install an older version (10.5.41.27263) while the local version is newer (Beta but a total disaster: 10.5.42.27950 )! I did the following tto fix the problem as follows: 1.) Disable the BetaVersion flag in the local.xml file by: (Check your WINEPREFIX before continuing !) My local install is located in the home under Games/Origin so firtstly, i want to export the WINEPREFIX:

export WINEPREFIX=~/Games/origin

2.) Change to the ProgramData/Origin directory by:

cd $WINEPREFIX/drive_c/ProgramData/Origin/

3.) Edit the local.xml file usiong you favorite editor. I use vi. (vi local.xml) Be sure to disable the Beta Version installation

"<"Setting value="false" key="BetaOptIn" type="1"/">"

Save the file. 4.) Remove all but the localContent and the local.xml file by. Double check that you're are in the Origin dir by entering the command: pwd Should be:

/home/user/Games/origin/drive_c/ProgramData/Origin

Then:

mv local.xml LocalContent ../
rm -rf *
mv ../local.xml ../LocalContent .

5.) Now the version part. I found the update (with the right version) file in the Program directory of origin. (update) Decoded the xml and found the download link. Stay in the $WINEPREFIX/ProgramData/Origin directory. Of course you can do the unzip -o stuff, but i wanted to know what files will be changed so i used rsync for that part. Download, unzip and delete the temp dir afterwards. Check your origin version 64 or 32 bit: PATH32="drive_c/Program Files/Origin" PATH64="drive_c/Program Files (x86)/Origin" I have installed origin using 64 bit so here we go:

mkdir temp
cd temp
wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginUpdate_10_5_41_27263.zip
unzip -o OriginUpdate_10_5_41_27263.zip -d $WINEPREFIX/Program\ Files\ \(x86\)/Origin/

Now you have the right version installed. Remove the temp dir by issuing the commands:

cd ..
rm -rf temp

You're done Start lutris and then start Origin. We have cleared the cache, so you've to relogin. (First login) Now the games files will be verfied without errors but can take some time. Be sure to disable following settings: Disable Origin in Game Disable automatic updates Disable beta version installation Hope this helps

Best regards Franz

phrogg commented 5 years ago

@fskale nice answer, wouldn't it be easier to just do this: unzip -o OriginUpdate_10_5_41_27263.zip -d ../. Then it also would be unimportant which bit version you have.

fskale commented 5 years ago

@fskale nice answer, wouldn't it be easier to just do this: unzip -o OriginUpdate_10_5_41_27263.zip -d ../. Then it also would be unimportant which bit version you have.

No, because as an expert, i want to point out how you can debug things and fix it step by step for the "no commandline" users. Also, you have to let origin to rebuild its cache by removing the debris of the beta version.

phrogg commented 5 years ago

Yeah man, I just meant to replace this one line. With this line: unzip -o OriginUpdate_10_5_41_27263.zip -d $WINEPREFIX/Program\ Files\ \(x86\)/Origin/. Nothing against your great tut. Just this one line.

fskale commented 5 years ago

Yeah man, I just meant to replace this one line. With this line: unzip -o OriginUpdate_10_5_41_27263.zip -d $WINEPREFIX/Program\ Files\ \(x86\)/Origin/. Nothing against your great tut. Just this one line. The working dir is ProgramData/Origin, you'll want to extract the files to the program Directory. The data dir is only for storing cache data, updater residue and therefore is not the program installation destination.

phrogg commented 5 years ago

Ohh ok, I thought you wanted to create the temp directory in the game folder. Sorry then.

DrDoctor13 commented 5 years ago

@fskale Unless I'm wrong, it seems your situation is only for when Origin is receiving updates from the beta channel. This script only downloads stable updates and thus should only be run on stable installations of Origin.

It would be possible to tweak this script to pull beta updates from wherever Origin looks for them, but I don't have the time to do so right now. Origin is already volatile enough as is under Wine. If anyone else on this issue is using the beta version of Origin (admittedly, I should've asked which versions were being affected), I would advise switching to the stable release channel.

But thank you for looking into this with the depth that you did, @fskale.

phrogg commented 5 years ago

@DrDoctor13 But the interesting thing is I don't think I signed up for any beta updates but still having this issue.

DrDoctor13 commented 5 years ago

If that's the case, the only cause I can think of is that EA accidentally pushed an update then removed it from their servers.

On Wed, Jul 10, 2019, 6:57 PM Phil Roggenbuck notifications@github.com wrote:

@DrDoctor13 https://github.com/DrDoctor13 But the interesting thing is I don't think I signed up for any beta updates but still having this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DrDoctor13/wine-origin-updater/issues/9?email_source=notifications&email_token=ACZHOMKWWUZOHJ23F7KCKIDP6ZSN5A5CNFSM4GKRFAH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZU7RII#issuecomment-510261409, or mute the thread https://github.com/notifications/unsubscribe-auth/ACZHOMIV5P6CNISWPIQOYFDP6ZSN5ANCNFSM4GKRFAHQ .

fskale commented 5 years ago

If that's the case, the only cause I can think of is that EA accidentally pushed an update then removed it from their servers. On Wed, Jul 10, 2019, 6:57 PM Phil Roggenbuck @.***> wrote: @DrDoctor13 https://github.com/DrDoctor13 But the interesting thing is I don't think I signed up for any beta updates but still having this issue. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#9?email_source=notifications&email_token=ACZHOMKWWUZOHJ23F7KCKIDP6ZSN5A5CNFSM4GKRFAH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZU7RII#issuecomment-510261409>, or mute the thread https://github.com/notifications/unsubscribe-auth/ACZHOMIV5P6CNISWPIQOYFDP6ZSN5ANCNFSM4GKRFAHQ .

Hi, the accidental pushing of the beta version took place between 03 and 09 July. My kids didn't check the beta option in the settings though. However, when it still doesn't work, check the client log located in the users folder under LocalSettings/Origin.

spychodelics commented 5 years ago

@fskale Thank you, after Origin always crashing after the update yesterday i found this! And it helped!

Macribit commented 5 years ago

anyone checked this recently?? seems it's broken again . I can't login because the app thinks the client is outdated and none of this fixes worked for me.

DrDoctor13 commented 5 years ago

Someone on reddit has recommended a fix to me, but I have not had enough time to test it. Someone on Reddit sent me a fix I have not had time to test, I have directed them here.

0xFFFFFFFFFFFFFFFFFF commented 5 years ago

I also had this issue again and can't really remember how I fixed it. Can you guys try these steps?

Please note that I am using a stable (not beta) build under a 64-Bit prefix. Also, Origin tells me after some time that it needs an update, but does not force me to (it is a message shown above my games library). You can simply ignore this.

FiXIDeA commented 5 years ago

I also had this issue again and can't really remember how I fixed it. Can you guys try these steps?

  • Launch Origin and choose that "update just for now" option
  • Wait for the Updater to disappear
  • Close all running wine applications
  • Navigate to the path $WINE_PREFIX/drive_c/ProgramData/Origin/SelfUpdate/
  • You should be able to see a directory called Staged
  • Copy and overwrite the content from this directory to your origin installation
  • Try launching Origin again, does it try to update again?
  • If so, try to manually set the Origin version in the windows registry
  • Close all running wine applications
  • Open regedit, navigate to HKEY_LOCAL_MACHINE\Software\Wow6432Node\Origin
  • Change ClientVersion to 10.5.46.29856

Please note that I am using a stable (not beta) build under a 64-Bit prefix. Also, Origin tells me after some time that it needs an update, but does not force me to (it is a message shown above my games library). You can simply ignore this.

It works! Thank you!

phrogg commented 5 years ago

Works for me aswell. Thanks!

HN2000 commented 4 years ago

Yes, thank you this worked today for me as well! I use 64-bit prefix and I tried to use the update script but Origin kept wanting to update and I couldn't get why. Now that I got it working I noticed that the update.zip file which the update script pulled was 10_5_63_37653 but the file which the Origin itself downloaded with kuba1909's method was actually 10_5_61_37414

nicman23 commented 3 years ago

"just this once" option did not work for me but automatically update works

proton 6.9 ge-2