https://bugs.winehq.org/show_bug.cgi?id=38922
Bug ID: 38922 Summary: Unable to update Evernote: "Evernote was already installed by another user" Product: Wine Version: 1.7.46 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: robert.munteanu@gmail.com Distribution: ---
Created attachment 51852 --> https://bugs.winehq.org/attachment.cgi?id=51852 Evernote setup log after the failed update attempt
I'm trying to update Evernote by downloading the latest installer ( 5.8.13 ) and running it in an existing installation. I immediately get a popup saying:
Evernote was already installed by another user. Only one per-user installation is supported. An administrator can install Evernote for everyone after the per-user installation is removed.
There is no terminal output, but I've attached the EvernoteSetup.log file, which contains snippets such as
[07/15/2015 11:11:53] Error getting product version: 1605 [07/15/2015 11:11:53] Error getting product install location: 1605
https://bugs.winehq.org/show_bug.cgi?id=38922
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- Is this it? https://evernote.com/download/get.php?file=Win
https://bugs.winehq.org/show_bug.cgi?id=38922
--- Comment #2 from Robert Munteanu robert.munteanu@gmail.com --- Yes, that's a link to the latest installer. Note that 5.8.13 is can be downloaded from http://cdn1.evernote.com/win5/public/Evernote_5.8.13.8152.exe , and older versions are available as well.
https://bugs.winehq.org/show_bug.cgi?id=38922
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://cdn1.evernote.com/wi | |n5/public/Evernote_5.8.13.8 | |152.exe
https://bugs.winehq.org/show_bug.cgi?id=38922
powolters@gmail.com powolters@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |powolters@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=38922
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer Status|UNCONFIRMED |NEEDINFO CC| |focht@gmx.net Summary|Unable to update Evernote: |Unable to update Evernote |"Evernote was already |x.y to 5.8.13: "Evernote |installed by another user" |was already installed by | |another user" Ever confirmed|0 |1
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
I can't confirm this, the upgrade works fine here.
For testing purpose I installed Evernote 5.1.2.2387 prior.
http://www.filehippo.com/download_evernote/56802
The application log shows the installer properly detected a previous product version and proceeds successfully.
--- snip --- ... [10/24/2015 11:46:45] Evernote 5.8.13.8152 Installation has started [10/24/2015 11:46:45] Running as user: focht [10/24/2015 11:46:45] Initializing installed product finder. [10/24/2015 11:46:45] Checking if product {f761359c-9ced-45ae-9a51-9d6605cd55c4} is installed. [10/24/2015 11:46:45] Product {f761359c-9ced-45ae-9a51-9d6605cd55c4} is not installed. [10/24/2015 11:46:45] Checking registry for product {f761359c-9ced-45ae-9a51-9d6605cd55c4}. [10/24/2015 11:46:45] Located product GUID in HKLM. [10/24/2015 11:46:45] Product GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} install location is C:\Program Files\Evernote\Evernote\ [10/24/2015 11:46:45] Product GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} version is FSSH [10/24/2015 11:46:45] Initializing installed product finder. [10/24/2015 11:46:45] Located product {12FB6296-8840-11E3-86D7-00163E98E7D0} with upgrade code {AE2C091E-CF5F-4e30-8659-D640E23A8B99}. [10/24/2015 11:46:45] Product {12FB6296-8840-11E3-86D7-00163E98E7D0} version is 5.1.2.2387 [10/24/2015 11:46:45] Product {12FB6296-8840-11E3-86D7-00163E98E7D0} install location is C:\Program Files\Evernote\Evernote\ [10/24/2015 11:46:45] Initializing installed product finder. [10/24/2015 11:46:45] Checking if product {A5C8B875-E86C-4783-83F4-F35E788FFC29} is installed. [10/24/2015 11:46:45] Product {A5C8B875-E86C-4783-83F4-F35E788FFC29} is not installed. [10/24/2015 11:46:45] Checking registry for product {A5C8B875-E86C-4783-83F4-F35E788FFC29}. [10/24/2015 11:46:45] Product GUID {A5C8B875-E86C-4783-83F4-F35E788FFC29} was not found in the registry [10/24/2015 11:46:45] Checking for already installed products [10/24/2015 11:46:45] Detected version 5.1.2.2387 installation [10/24/2015 11:46:45] Product is installed PerMachine [10/24/2015 11:46:45] Admin user + PerMachine install: continue. [10/24/2015 11:46:45] Parsing command line: Z:\home\focht\Downloads\Evernote_5.8.13.8152.exe [10/24/2015 11:46:45] User preferred language is: en (US) [10/24/2015 11:46:45] Using language: 1033 [10/24/2015 11:46:45] Using transform :1033 [10/24/2015 11:46:46] The following arguments will be passed on to msiexec.exe: /lvx* "C:\users\focht\Temp\EvernoteSetupMSI.log" /qb ALLUSERS=1 TRANSFORMS=:1033 APPLICATIONFOLDER="C:\Program Files\Evernote\Evernote" [10/24/2015 11:46:46] Backing up registry key Evernote to Evernote.ENBACKUP2. [10/24/2015 11:46:46] Extracting resource with ID 129 of type BIN to file C:\users\focht\Temp\Evernote.msi [10/24/2015 11:46:46] Target file already exists. Deleting. [10/24/2015 11:46:47] Using MSI package from C:\users\focht\Temp\Evernote.msi [10/24/2015 11:46:47] Executing C:\windows\system32\msiexec.exe /i "C:\users\focht\Temp\Evernote.msi" /lvx* "C:\users\focht\Temp\EvernoteSetupMSI.log" /qb ALLUSERS=1 TRANSFORMS=:1033 APPLICATIONFOLDER="C:\Program Files\Evernote\Evernote" ... [10/24/2015 11:47:03] Process execution was successful. [10/24/2015 11:47:03] Launching Evernote. [10/24/2015 11:47:03] Evernote executable is: C:\Program Files\Evernote\Evernote\Evernote.exe [10/24/2015 11:47:03] Installation completed. --- snip ---
Your log shows it fails to read existing installer data, hinting at damaged/broken installation.
--- snip --- ... [07/15/2015 11:11:53] Located product {FEDC7C10-EF67-11E4-9B07-00505695D7B0} with upgrade code {AE2C091E-CF5F-4e30-8659-D640E23A8B99}. [07/15/2015 11:11:53] Error getting product version: 1605 [07/15/2015 11:11:53] Error getting product install location: 1605 ... [07/15/2015 11:11:53] Checking for already installed products [07/15/2015 11:11:53] Detected version installation [07/15/2015 11:11:53] Installed version () did not support admin check. Attempting to use MsiEnumProductsEx. [07/15/2015 11:11:53] PerUser install by another user: abort. --- snip ---
Please provide *exact* steps how to reproduce. BTW you must state the old version here, e.g. from which version you are upgrading. Otherwise it's pointless to spend any time on this.
* clean (new!) 32-bit WINEPREFIX * run the installer of old Evernote version x.y * run the installed app once to verify the install is proper * run the installer of new Evernote version 5.8.13 * profit!
$ sha1sum Evernote_5.1.2.2387.exe 86e0e191cfe265c40937c1326e0357129b5cb4e1 Evernote_5.1.2.2387.exe
$ du -sh Evernote_5.1.2.2387.exe 57M Evernote_5.1.2.2387.exe
$ sha1sum Evernote_5.8.13.8152.exe 90f416f06d0155384936197818456a756e89c644 Evernote_5.8.13.8152.exe
$ du -sh Evernote_5.8.13.8152.exe 92M Evernote_5.8.13.8152.exe
$ wine --version wine-1.7.53-156-gf8d78b0
Regards
https://bugs.winehq.org/show_bug.cgi?id=38922
--- Comment #4 from Robert Munteanu robert.munteanu@gmail.com --- Here are the minimal instructions to reproduce:
$ wine --version wine-1.7.53
$ sha1sum * 6ab6955ce7ef80d9aa567fac374611f210f96dfe Evernote_5.8.12.8127.exe 90f416f06d0155384936197818456a756e89c644 Evernote_5.8.13.8152.exe c58652bec9ccf373cdc00c7d77f67e0b4fcb8570 Evernote_5.9.1.8742.exe
$ export WINEPREFIX=~/wine-evernote $ export WINEARCH=win32
$ wine Evernote_5.8.12.8127.exe
( default installation options, sign in with existing account, wait a couple of minutes for sync to complete, exit evernote )
$ wineserver -k
$ wine Evernote_5.8.13.8152.exe
(hm, title says 'resuming the Evernote 5.8.12 Setup Wizard ' )
And now running 5.8.13.
( exit evernote )
$ wineserver -k
$ wine Evernote_5.9.1.8742.exe
Now the dreaded pop-up appears. It might be that a second upgrade triggers the problem.
https://bugs.winehq.org/show_bug.cgi?id=38922
--- Comment #5 from Robert Munteanu robert.munteanu@gmail.com --- Created attachment 52676 --> https://bugs.winehq.org/attachment.cgi?id=52676 Setup log after 1 successful and 1 failed upgrade
https://bugs.winehq.org/show_bug.cgi?id=38922
--- Comment #6 from Robert Munteanu robert.munteanu@gmail.com --- Created attachment 52677 --> https://bugs.winehq.org/attachment.cgi?id=52677 EvernoteSetupMSI.log, in case it's neede
https://bugs.winehq.org/show_bug.cgi?id=38922
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Component|-unknown |msi Summary|Unable to update Evernote |Trying to upgrade Evernote |x.y to 5.8.13: "Evernote |multiple times with higher |was already installed by |versions results in error |another user" |'Evernote was already | |installed by another user'
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello Robert,
the culprit is actually upgrading *multiple* times by installing newer versions. Doing a simple one-time upgrade as your initial bug report suggested works fine. That's why you always need to be exact - the information from comment #4 should have been in first place.
Anyway, I was able to reproduce the issue with the new instructions.
* Evernote 5.8.12.8127 installed * upgrade Evernote to 5.8.13.8152 * upgrade Evernote to 5.9.1.8742
Application log during 5.9.1.8742 upgrade:
--- snip --- [10/31/2015 21:50:38] Evernote 5.9.1.8742 Installation has started [10/31/2015 21:50:38] Running as user: focht [10/31/2015 21:50:38] (User is an admin) [10/31/2015 21:50:38] Initializing installed product finder. [10/31/2015 21:50:38] Checking if product {f761359c-9ced-45ae-9a51-9d6605cd55c4} is installed. [10/31/2015 21:50:38] Product {f761359c-9ced-45ae-9a51-9d6605cd55c4} is not installed. [10/31/2015 21:50:38] Checking registry for product {f761359c-9ced-45ae-9a51-9d6605cd55c4}. [10/31/2015 21:50:38] Located product GUID in HKLM. [10/31/2015 21:50:38] Product GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} install location is C:\Program Files\Evernote\Evernote\ [10/31/2015 21:50:38] Product GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} version is FSSH [10/31/2015 21:50:38] Ignoring installed product with GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} because its version is "FSSH" or missing. [10/31/2015 21:50:38] Initializing installed product finder. [10/31/2015 21:50:38] Located product {C5F59C16-1EA5-11E5-AF29-0050569584E9} with upgrade code {AE2C091E-CF5F-4e30-8659-D640E23A8B99}. [10/31/2015 21:50:38] Error getting product version: 1605 [10/31/2015 21:50:38] Error getting product install location: 1605 [10/31/2015 21:50:38] Initializing installed product finder. [10/31/2015 21:50:38] Checking if product {A5C8B875-E86C-4783-83F4-F35E788FFC29} is installed. [10/31/2015 21:50:38] Product {A5C8B875-E86C-4783-83F4-F35E788FFC29} is not installed. [10/31/2015 21:50:38] Checking registry for product {A5C8B875-E86C-4783-83F4-F35E788FFC29}. [10/31/2015 21:50:38] Product GUID {A5C8B875-E86C-4783-83F4-F35E788FFC29} was not found in the registry [10/31/2015 21:50:38] Checking for already installed products [10/31/2015 21:50:38] Detected version installation [10/31/2015 21:50:38] Installed version () did not support admin check. Attempting to use MsiEnumProductsEx. [10/31/2015 21:50:38] PerUser install by another user: abort. --- snip ---
"Error getting product version: 1605" looks suspicious.
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+msi wine ./Evernote_5.9.1.8742.exe >>log.txt 2>&1 ... 0027:Call msi.MsiGetProductInfoW(00147d20 L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}",00436a38 L"VersionString",00147ea0,0033f8a0) ret=00407e13 0027:trace:msi:MsiGetProductInfoW L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}" L"VersionString" 0x147ea0 0x33f8a0 ... 0027:trace:msi:MSIREG_OpenProductKey L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}" squished L"61C95F5C5AE15E11FA9200056559489E" ... 0027:Call advapi32.RegOpenKeyExW(80000002,0033f48e L"Software\Microsoft\Windows\CurrentVersion\Installer\Managed\S-1-5-21-0-0-0-1000\Installer\Products\61C95F5C5AE15E11FA9200056559489E",00000000,000f013f,0033f7dc) ret=7e6c70ea 0027:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=7e6c70ea 0027:Call ole32.CLSIDFromString(00147d20 L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}",0033f428) ret=7e6c63ca 0027:Ret ole32.CLSIDFromString() retval=00000000 ret=7e6c63ca 0027:trace:msi:MSIREG_OpenProductKey L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}" squished L"61C95F5C5AE15E11FA9200056559489E" 0027:Call advapi32.RegOpenKeyExW(80000001,0033f48e L"Software\Microsoft\Installer\Products\61C95F5C5AE15E11FA9200056559489E",00000000,000f013f,0033f7dc) ret=7e6c70ea 0027:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=7e6c70ea 0027:Call ole32.CLSIDFromString(00147d20 L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}",0033f428) ret=7e6c63ca 0027:Ret ole32.CLSIDFromString() retval=00000000 ret=7e6c63ca 0027:trace:msi:MSIREG_OpenProductKey L"{C5F59C16-1EA5-11E5-AF29-0050569584E9}" squished L"61C95F5C5AE15E11FA9200056559489E" 0027:Call advapi32.RegOpenKeyExW(80000002,0033f48e L"Software\Classes\Installer\Products\61C95F5C5AE15E11FA9200056559489E",00000000,000f013f,0033f7dc) ret=7e6c70ea 0027:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=7e6c70ea 0027:Call advapi32.RegCloseKey(00000000) ret=7e6adb2b 0027:Ret advapi32.RegCloseKey() retval=00000006 ret=7e6adb2b 0027:Ret msi.MsiGetProductInfoW() retval=00000645 ret=00407e13 0027:Call KERNEL32.GetLastError() ret=0041e0c5 0027:Ret KERNEL32.GetLastError() retval=00000006 ret=0041e0c5 --- snip ---
The product info for '{C5F59C16-1EA5-11E5-AF29-0050569584E9}' is obviously not present.
This is the result of an earlier problem. Wine MSI doesn't remove the upgrade code from products that have been replaced by newer versions.
Export of product upgrade codes after first upgrade:
--- snip --- [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\E190C2EAF5FC03E468956D042EA3B899] "61C95F5C5AE15E11FA9200056559489E"="" "E024922AB4025E118B4400056559489E"="" --- snip ---
61C95F5C5AE15E11FA9200056559489E = first (initial) install -> 5.8.12.8127 E024922AB4025E118B4400056559489E = first upgrade -> 5.8.13.8152
App log from first upgrade:
--- snip --- ... [11/01/2015 00:25:09] Located product {C5F59C16-1EA5-11E5-AF29-0050569584E9} with upgrade code {AE2C091E-CF5F-4e30-8659-D640E23A8B99}. [11/01/2015 00:25:09] Product {C5F59C16-1EA5-11E5-AF29-0050569584E9} version is 5.8.12.8127 ... --- snip ---
The app calls 'MsiEnumRelatedProducts()' once and gets the old upgrade code from the original install -> 61C95F5C5AE15E11FA9200056559489E (first key).
--- snip --- ... 0027:Call msi.MsiEnumRelatedProductsW(00147cb8 L"{AE2C091E-CF5F-4e30-8659-D640E23A8B99}",00000000,00000000,00147d20) ret=00407fac 0027:trace:msi:MsiEnumRelatedProductsW L"{AE2C091E-CF5F-4e30-8659-D640E23A8B99}" 0 0 0x147d20 0027:Call ole32.CLSIDFromString(00147cb8 L"{AE2C091E-CF5F-4e30-8659-D640E23A8B99}",0033f2f8) ret=7e6c63ca 0027:Ret ole32.CLSIDFromString() retval=00000000 ret=7e6c63ca 0027:trace:msi:MSIREG_OpenUpgradeCodesKey L"{AE2C091E-CF5F-4e30-8659-D640E23A8B99}" squished L"E190C2EAF5FC03e468956D042EA3B899" 0027:Call advapi32.RegOpenKeyExW(80000002,0033f356 L"Software\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\E190C2EAF5FC03e468956D042EA3B899",00000000,000f013f,0033f830) ret=7e6c8c6a 0027:Ret advapi32.RegOpenKeyExW() retval=00000000 ret=7e6c8c6a 0027:Call advapi32.RegEnumValueW(00000070,00000000,0033f7ea,0033f82c,00000000,00000000,00000000,00000000) ret=7e6cb219 0027:Ret advapi32.RegEnumValueW() retval=00000000 ret=7e6cb219 0027:Call advapi32.RegCloseKey(00000070) ret=7e6cb242 0027:Ret advapi32.RegCloseKey() retval=00000000 ret=7e6cb242 0027:Ret msi.MsiEnumRelatedProductsW() retval=00000000 ret=00407fac 0027:Call KERNEL32.GetLastError() ret=0041e0c5 0027:Ret KERNEL32.GetLastError() retval=00000006 ret=0041e0c5 --- snip ---
Only the last upgrade code 'E024922AB4025E118B4400056559489E' should be present.
You can test by yourself by removing '61C95F5C5AE15E11FA9200056559489E' from 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\E190C2EAF5FC03E468956D042EA3B899'
This makes the upgrade to 5.9.1.8742 to work:
--- snip --- [11/01/2015 01:06:52] Evernote 5.9.1.8742 Installation has started [11/01/2015 01:06:52] Running as user: focht [11/01/2015 01:06:52] (User is an admin) [11/01/2015 01:06:52] Initializing installed product finder. [11/01/2015 01:06:52] Checking if product {f761359c-9ced-45ae-9a51-9d6605cd55c4} is installed. [11/01/2015 01:06:52] Product {f761359c-9ced-45ae-9a51-9d6605cd55c4} is not installed. [11/01/2015 01:06:52] Checking registry for product {f761359c-9ced-45ae-9a51-9d6605cd55c4}. [11/01/2015 01:06:52] Located product GUID in HKLM. [11/01/2015 01:06:52] Product GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} install location is C:\Program Files\Evernote\Evernote\ [11/01/2015 01:06:52] Product GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} version is FSSH [11/01/2015 01:06:52] Ignoring installed product with GUID {f761359c-9ced-45ae-9a51-9d6605cd55c4} because its version is "FSSH" or missing. [11/01/2015 01:06:52] Initializing installed product finder. [11/01/2015 01:06:52] Located product {A229420E-204B-11E5-B844-0050569584E9} with upgrade code {AE2C091E-CF5F-4e30-8659-D640E23A8B99}. [11/01/2015 01:06:52] Product {A229420E-204B-11E5-B844-0050569584E9} version is 5.8.13.8152 [11/01/2015 01:06:52] Product {A229420E-204B-11E5-B844-0050569584E9} install location is C:\Program Files\Evernote\Evernote\ [11/01/2015 01:06:52] Initializing installed product finder. [11/01/2015 01:06:52] Checking if product {A5C8B875-E86C-4783-83F4-F35E788FFC29} is installed. [11/01/2015 01:06:52] Product {A5C8B875-E86C-4783-83F4-F35E788FFC29} is not installed. [11/01/2015 01:06:52] Checking registry for product {A5C8B875-E86C-4783-83F4-F35E788FFC29}. [11/01/2015 01:06:52] Product GUID {A5C8B875-E86C-4783-83F4-F35E788FFC29} was not found in the registry [11/01/2015 01:06:52] Checking for already installed products [11/01/2015 01:06:52] Detected version 5.8.13.8152 installation [11/01/2015 01:06:52] Product is installed PerMachine [11/01/2015 01:06:52] Admin user + PerMachine install: continue. [11/01/2015 01:06:52] Parsing command line: Z:\home\focht\Downloads\Evernote_5.9.1.8742.exe [11/01/2015 01:06:52] User preferred language is: en (US) [11/01/2015 01:06:52] Using language: 1033 [11/01/2015 01:06:52] Using transform :1033 [11/01/2015 01:06:52] The following arguments will be passed on to msiexec.exe: /lvx* "C:\users\focht\Temp\EvernoteSetupMSI.log" /qb ALLUSERS=1 TRANSFORMS=:1033 APPLICATIONFOLDER="C:\Program Files\Evernote\Evernote" [11/01/2015 01:06:53] Backing up registry key Evernote to Evernote.ENBACKUP2. [11/01/2015 01:06:53] Extracting resource with ID 129 of type BIN to file C:\users\focht\Temp\Evernote.msi [11/01/2015 01:06:54] Using MSI package from C:\users\focht\Temp\Evernote.msi [11/01/2015 01:06:54] Executing C:\windows\system32\msiexec.exe /i "C:\users\focht\Temp\Evernote.msi" /lvx* "C:\users\focht\Temp\EvernoteSetupMSI.log" /qb ALLUSERS=1 TRANSFORMS=:1033 APPLICATIONFOLDER="C:\Program Files\Evernote\Evernote" ... --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=38922
--- Comment #8 from Robert Munteanu robert.munteanu@gmail.com ---
the culprit is actually upgrading multiple times by installing newer versions. Doing a simple one-time upgrade as your initial bug report suggested works fine. That's why you always need to be exact – the information from comment #4 should have been in first place.
Sorry, I did not notice the exact cause initially - this manifested itself itself on my 'live' Evernote wine prefix. But I'll be more diligent in the future :-)