bipolar icon indicating copy to clipboard operation
bipolar copied to clipboard

Install Fails

Open shaund opened this issue 6 years ago • 6 comments

Installing Microsoft Visual C++ Redistributable [C:\Program Files (x86)\Bipolar\vcredist_x64.exe]
Execute: "C:\Program Files (x86)\Bipolar\vcredist_x64.exe" /norestart /q
C:\Program Files (x86)\Bipolar\vcredist_x64.exe returned exit code 1638
Installing Microsoft Visual C++ Redistributable [C:\Program Files (x86)\Bipolar\vcredist_x64.exe]
Execute: "C:\Program Files (x86)\Bipolar\vcredist_x64.exe" /norestart /q
C:\Program Files (x86)\Bipolar\vcredist_x64.exe returned exit code 1638
Output folder: C:\Program Files (x86)\Bipolar\hook
Extract: Qt5Network.dll... 100%
Execute: "C:\Program Files (x86)\Bipolar\Bipolar.exe" -install-hook
Bipolar returned exit code 2 while installing hook
Execute: "C:\Program Files (x86)\Bipolar\Bipolar.exe" -install-hook
Bipolar returned exit code 2 while installing hook
Completed

Said it couldn't find FlowSync. It's located in C:\Program Files (x86)\Polar FlowSync

.net failed cause I have newer version: [1DF8:3E5C][2018-05-26T04:12:42]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

My OS is Windows 10 Enterprise.

shaund avatar May 26 '18 11:05 shaund

Hi @shaund,

Bipolar goes to quite a bit of effort to locate Polar Flowsync (see FlowSyncHook::flowSyncDir()), this includes:

  1. FlowSync's known uninstaller registry key (in each of the possible registry hives); and
  2. standard locations under %ProgramFiles%, %ProgramFiles(x86)%, %ProgramW6432%; and
  3. if all else fails, under "C:\Program Files" and "C:\Program Files (x86)"

For 2 and 3, we are checking "standard" install locations, which for Polar FlowSync (at least for the versions I've installed) defaults to %ProgramFiles(x86)%\Polar\Polar FlowSync - note the extra Polar subdirectory that your installation is not using. Did you choose a custom directory when installing Polar FlowSync? Or is FlowSync defaulting to a different path structure now?

Anyway, there's three things we can do from here:

  1. I would really like to see / understand why the registry key detection didn't work (its the only method that could work, for example, with unusual custom installation paths, like Z:\My Stuff\Stuff from Polar\FlowSync (perfectly valid, but hard to detect). If you don't mind, I'd really appreciate you taking a few minutes to check the registry keys for me, so I can hopefully see what went wrong there. The key should be \Microsoft\Windows\CurrentVersion\Uninstall\{A1538F5C-7B65-4DB6-9FFB-FFC0DF2E85D8}_is1, and that could be under HKEY_CURRENT_USER\Software, or HKEY_CURRENT_USER\Software\WOW6432Node, or HKEY_LOCAL_MACHINE\Software or HKEY_LOCAL_MACHINE\Software\WOW6432Node. If you're not sure what registry keys are, and how to view them, then don't worry about it.
  2. I will update Bipolar to also check standard install paths without the extra Polar subdirectory. This should work in your case, but still wouldn't work for the extreme example I gave above.
  3. In the meantime, you can install the hook manually. To do so, all you have to do is copy the file C:\Program Files (x86)\Bipolar\hook\Qt5Network.dll (note this is the one in the hook directory, not the Bipolar directory) over the top of the same file in the Polar FlowSync directory - of course, its a very good idea to backup the existing file first (which Bipolar would if it managed to locate the FlowSync directory).

Cheers.

pcolby avatar May 26 '18 14:05 pcolby

Thanks for the fast response.

I might have chosen custom. I do that sometimes if a program tries to install into nested folders. But I couldn't say for sure.

I'll try 3. In the meantime, here's that key.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A1538F5C-7B65-4DB6-9FFB-FFC0DF2E85D8}_is1]
"Inno Setup: Setup Version"="5.5.3 (u)"
"Inno Setup: App Path"="C:\\Program Files (x86)\\Polar FlowSync"
"InstallLocation"="C:\\Program Files (x86)\\Polar FlowSync\\"
"Inno Setup: Icon Group"="Polar\\Polar FlowSync"
"Inno Setup: Language"="en"
"DisplayName"="Polar FlowSync version 2.6.2"
"DisplayIcon"="C:\\Program Files (x86)\\Polar FlowSync\\FlowSync.exe"
"UninstallString"="\"C:\\Program Files (x86)\\Polar FlowSync\\unins000.exe\""
"QuietUninstallString"="\"C:\\Program Files (x86)\\Polar FlowSync\\unins000.exe\" /SILENT"
"DisplayVersion"="2.6.2"
"Publisher"="Polar Electro Oy"
"URLInfoAbout"="http://www.polar.com"
"HelpLink"="http://www.polar.com"
"URLUpdateInfo"="http://www.polar.com"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"InstallDate"="20180122"
"MajorVersion"=dword:00000002
"MinorVersion"=dword:00000006
"EstimatedSize"=dword:0001321d

shaund avatar May 26 '18 16:05 shaund

I installed Bipolar-0.5.8.567 on Windows 10 and during the installation process, a popup window complained that it was impossible to install the Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.24215 included. Retrying didn't help. It is likely because I already had a newer/equivalent version installed, as everything runs smoothly. Just a silly question, on this page you stated that

The separate v800_downloader project provides a way of extracting training session data from the V800 directly, without the need for the hook mentioned above. That project extracts data in a format that is compatible with this project's Bipolar application, so can be used as a hook alternative if desired.

I copied and pasted the files downloaded by V800downloader (before they are automatically deleted by the program itself after conversion) and tried to feed them to Bipolar, but it said it didn't find any file to convert. How should I use them? Or, how should I use V800downloader as alternative hook? Thanks a lot.

roesassi avatar Oct 28 '18 10:10 roesassi

Hi @roesassi,

I installed Bipolar-0.5.8.567 on Windows 10 and during the installation process, a popup window complained that it was impossible to install the Microsoft Visual C++ 2015 Redistributable

Yeah, the updated hook is not included in 0.5.8. It has only just been included in Bipolar 0.5.9 - the Windows installer for that release is currently building on AppVeyor, and will be automatically added to GitHub once its done (OSX dmg is already there).

I copied and pasted the files downloaded by V800downloader

The files have to be renamed as per V800export::make_bipolar_names() - V800 Downloader does this, unless it crashes too early. Once renamed, Bipolar should pick them up quite happily as long as there in one of Bipolar's input directories, and the there's no corresponding output files yet.

Cheers.

pcolby avatar Oct 29 '18 07:10 pcolby

I installed the new version Bipolar-0.5.9.596.exe but it still says that it was impossible to install the Microsoft Visual C++ 2015 Redistributable (x64). This is the part of the log:

Installing Microsoft Visual C++ Redistributable [C:\Program Files (x86)\Bipolar\vcredist_x64.exe] Execute: "C:\Program Files (x86)\Bipolar\vcredist_x64.exe" /norestart /q C:\Program Files (x86)\Bipolar\vcredist_x64.exe returned exit code 1638

It is probably due to the fact that I already have them installed. Ignoring the issue complete the installation with no problem.

Regarding the V800downloader, it is possible that the files downloaded are renamed before being converted, but then they are deleted so there is no way to get them. And if I uncheck all the three output (implicitly asking only to download), V800downloader says that everything was downloaded before doing anything. Where I am making a mistake? Should I start V800downloader with a specific option to use it ad a hook in Windows? Thanks.

roesassi avatar Nov 14 '18 09:11 roesassi

mpossible to install the Microsoft Visual C++ 2015 Redistributable (x64)

Seems like this is a known bug in some versions of Microsoft Visual C++ 2015 redistributable - https://support.microsoft.com/en-au/help/4092997/vc-2015-redistributable-install-error-1638-when-newer-version-present

Regarding the V800downloader, it is possible that the files downloaded are renamed before being converted, but then they are deleted so there is no way to get them.

Yes, they are deleted once converted. That's just how the V800_downloader was written. You can probably just comment out this line to prevent that?

And if I uncheck all the three output (implicitly asking only to download), V800downloader says that everything was downloaded before doing anything.

I think the V800_downloader basically goes through each of the checked activities, and for each one, if there's an export type checked that it doesn't already have an output for, then and only then it transfers the data from the watch. So by unchecking all of the output formats, it concludes that all the necessary work is already done.

Should I start V800downloader with a specific option to use it ad a hook in Windows?

I'm not quite sure what you're asking here. The V800_downloader does not use any hook on any platform - it uses the USB connection to the watch directly.

pcolby avatar Nov 16 '18 11:11 pcolby

This issue is (almost) 5 years old now, so I'm going to close it. Feel free to re-open if its still relevant somehow. Thanks.

pcolby avatar Apr 09 '23 06:04 pcolby