[Bug 38922] Trying to upgrade Evernote multiple times with higher versions results in error 'Evernote was already installed by another user'

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 31 19:42:59 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38922

Anastasius Focht <focht at 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 at 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

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list