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

WIP: Trying to unpack Razer Synapse 3 family of installers. #165

Open
ghost opened this issue Sep 13, 2019 · 1 comment
Open

WIP: Trying to unpack Razer Synapse 3 family of installers. #165

ghost opened this issue Sep 13, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 13, 2019

(Post under active construction, I had to start all over again due to no prompt when closing tab in opera for github comments)

I'm trying to get to the bottom of this intrusive software that requires internet connection and login to do basics configuration with a mouse, even if it's first time only, there doesn't appear to be any "driver only" installer but while some other "tournament drivers" are out there that aren't available for download it seems but it's said to work differently but I haven't found any links to them either.

The Razer Synapse installer from the official website is not standalone, it's not even an online installer, but only a download module that downloads the online installer from the following addresses:

discovery.razerapi.com
manifest.razerapi.com
assets.razerzone.com
assets2.razerzone.com
rzrmanifest2.s3.amazonaws.com
s3.amazonaws.com

It is placed into a very unusual location which I hope gets cleaned up once it's done:
C:\Windows\Installer\Razer\Installer
The RazerInstaller.exe program is then launched which is what we then see on screen, this is the online installer, so not the actual installer yet. Canceling the online installer before starting does not clean up. I will not actually try to install via the online installer tho, unless the manual way fails or doesn't work right.

It creates a configuration .xml file in the Windows User Temp folder, where most of the interesting details of the installation process are located, for all of the components of Synapse3, including download URLs for the actual installers of the component packages. The download links appear to be partially containing random generated numbers, I didn't spend time testing that, but the download links here may not work for everyone or even anyone else. The file contains details about the packages, whether or not they're required, require admin privileges, whether hidden in GUI and/or in Windows settings, install parameters like /silent, dates, names, hashes, and other settings.

Synapse Module: AUDIOVISUALIZER - Chroma Visualizer
http://cdn.razersynapse.com/1561626623LcnjOm3nRazerAudioVisualizerSetup_v3.4.0711.062716.exe

Synapse Module: CHROMABROADCASTER - Chroma Connect
http://cdn.razersynapse.com/1566446008ecgoithXRazerChromaBroadcasterSetup_v3.4.0901.082211.exe 

Synapse Module: GMS - Game Manager Service
http://cdn.razersynapse.com/1562726959shNbKp09RzGMS_Setup_V2.0.146.173.exe
Special Installer*
Hidden
NotOptional
Silent

Synapse Module: HUE - Phillips Hue
http://cdn.razersynapse.com/15632692923hQ92mYsRazerPhilipsHueSetup_v3.4.0711.071614.exe

Synapse Module: Natasha - Razer Central - Razer Core Services
http://cdn.razersynapse.com/1562906456XSZqJkFtRazerCentral_v7.3.22.122.exe
Special Installer*
Hidden
Required
NotOptional
Silent

Synapse Module: Razer Chroma Studio - Chroma Studio
http://cdn.razersynapse.com/156586469825wozVTfRazerChromaStudioSetup_v3.4.0901.081518.exe

Synapse Module: Razer Macro 
http://cdn.razersynapse.com/1565864698rmd6xICjRazerMacroSetup_v3.4.0901.081518.exe

Synapse Module: Razer Synapse
http://cdn.razersynapse.com/1566350181hiSGg2MoRazerSynapseSetup_v3.4.0901.082102.exe
NotOptional

Synapse Module: Razer Synapse Dependencies 
http://cdn.razersynapse.com/1532494580S1lVvCUwRazerSynapseDependenciesSetup_v3.3.0725.072507.exe
Hidden
NotOptional

There is an added Razer Cortex information but that's a separate thing and is indeed treated as a separate "product" in the XML, I'm currently just focusing on the Synapse 3 or codenamed "Emily3" stuff where the raw drivers should be.

Looks like GMS and RazerCentral are what I called the "Special Installers" which won't work with UniExtract, they use a custom Razer icon too, while some are standard 7-Zip Solid SFX archives or some other archive with the legacy looking setup icon, which is very good news, and I think I can proceed much better knowing this now.

Further research shows that this seems it may be some kind of driverless thing with the firmware on the mouse interfacting with the service software directly, I'll continue later.


Part 2:

Looks like the initial online installer creates a logfile in C:\ProgramData\Razer\Installer\Logs in which it logs all the events such as OS detection, HW peripheral detection, it includes the output of the installer's configuration in the XML, most interestingly it notes another URL that I haven't seen before:

2019-09-13 22:51:25,313 [7] DEBUG RazerInstaller [(null)] - Driver URL: http://cdn.razersynapse.com/1563258303SaPbPQZeRazer_108_0Setup_v3.4.0711.071612.exe

The logfile doesn't say what was done with it, but I never got any prompts or any indication anything was installed from it, because this URL is generated with the secondary RazerInstaller from the Windows\Installer location, not the primary downloader.

So I downloaded and let's see what we can find. WinRAR can't open it ... while 7-Zip Can open it, I accidentially executed it but it just extracted everything into Program Files x86 including the included installers inside, there's appears to be some raw drivers in there indeed, proper sys and inf files, including what appears to be a minimal version of Synapse3 108_0 GUI, at least it looks like it.

Drivers are indeed for the type of mouse I have including a RzCommon driver. So I'll go and try to manually put these things in and see what happens.

Okay seems like raw drivers worked just fine, the proper device info shows up, what appears part of the GUI doesn't seem operational as there is no EXE or maybe something I'm missing, infact most of what this installer does is just extracts, the Windows OS doesn't really know anything's installed tho apart from the drivers.

The Synapse3Dependencies is actually recognized by WINRAR properly, UniExtract and 7-Zip can't open up the whole file, it only sees one folder $PLUGINS while there's a LOT more files in it that WinRAR seems to be able to open, but it reports it as a 7Zip SFX. However WINRAR does not see the stuff that 7-Zip can, but I determined there is nothing needed for me in here as I already have all of these NET packages, patches and updates for Win10.


One interesting thing I saw in the UniExtract2 logs is this line, when trying to unpack the component installers:
2019-09-13 23:20:54:814 Executing: C:\Windows\system32\cmd.exe /d /c C:\Program Files Manual\UniExtract\bin\ttarchext.exe
2019-09-13 23:20:54:849 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Which means it can't support installation paths with spaces, probably a bug.

@ghost ghost changed the title Trying to unpack Razer Synapse 3 family of installers. WIP: Trying to unpack Razer Synapse 3 family of installers. Sep 13, 2019
@ZhangWebber
Copy link

Is there any success?

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

No branches or pull requests

1 participant