qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

win32 setup fails. HRESULT -2147418113 #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Installing WebpCodecSetup.exe (win32)
2.
3.

What is the expected output? What do you see instead?
successful setup; instead error popup-> Module ..\WebpWICCodec.dll failed to 
register. HRESULT -2147418113. Contact your support personel.

What version of the product are you using? On what operating system?
Webp Codec for Windows 0.15; win XP sp3

Please provide any additional information below.

Original issue reported on code.google.com by tibo...@gmail.com on 12 May 2011 at 9:39

GoogleCodeExporter commented 8 years ago
You run the installer with Administrator privileges? If so, I will provide you 
an installer that will provide more debug information.

Original comment by mikol...@google.com on 12 May 2011 at 4:37

GoogleCodeExporter commented 8 years ago
Sorry, I did not mention that detail. Yes, of course i am running the installer 
with Administrator privileges.

Original comment by tibo...@gmail.com on 15 May 2011 at 5:14

GoogleCodeExporter commented 8 years ago
Same problem, with administrator privileges.

Win XP Pro v. 2002 SP 3, AMD Athlon 64 X2 Dual Core Processor 3800+, 2.01 GHz, 
RAM: 960 MB

Original comment by ar.e...@gmail.com on 27 May 2011 at 7:50

GoogleCodeExporter commented 8 years ago
Sorry for the late response. I have build debug DLLs that can write logs to a 
custom directory. Could you:
1. Download and unpack the attached archive.
2. Create a C:\Temp directory where everyone can write (AFAIK this should be 
the default. If you change the *.reg files below, you can name it differently)
3. Add the webp-debug-path.reg to the registry (by double-clicking it)
4. If you are running on a 64-bit system, add webp-debug-path-32-on-64.reg as 
well.
5. Run a command prompt as an administrator.
6. In the directory where you unpacked the files, run:
regsvr32 WebpWICCodec32.DLL
7. If you are running on 64-bit system, run also:
regsvr32 WebpWICCodec64.DLL

If they failed, the directory C:\Temp. It should contain files 
webp-codec-debug-*.txt.  Could you send them - they may give a clue what's 
wrong.

Original comment by mikol...@google.com on 1 Aug 2011 at 8:45

Attachments:

GoogleCodeExporter commented 8 years ago
Trying to install it on C:\Programas\Imagen\Webp (we change the default 
directories on all PCs with Windows, many malware are bad programmed and fail).

When register it returns (in Spanish):
“Error de DllRegisterServer en WebpWICCodec32.DLL.
Devolvió un código: 0x8000ffff”

Attaching 
C:\Programas\Imagen\Webp\Debug\webp-codec-debug-1312310301-00000000.txt.

Original comment by ar.e...@gmail.com on 2 Aug 2011 at 6:41

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the test. The result is strange. One possible explanation is that it 
could not locate the export in advpack.dll. Do you have by chance Visual Studio 
or Windows SDK installed? If you have, could you run "link /dump /export 
C:\Windows\system32\advpack.dll" and attach the output?

I will also create a version of the DLL that will include more debugging 
messages during registration.

Original comment by mikol...@google.com on 2 Aug 2011 at 8:43

GoogleCodeExporter commented 8 years ago
I don't have link, I try with nm (dev-cpp) and get:
nm: \WINDOWS.0\system32\advpack.dll: no symbols

Original comment by ar.e...@gmail.com on 2 Aug 2011 at 11:49

GoogleCodeExporter commented 8 years ago
C:\masm32\bin>link /dump /export \WINDOWS.0\system32\advpack.dll
Microsoft (R) COFF Binary File Dumper Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : warning LNK4044: unrecognized option "export"; ignored

Dump of file \WINDOWS.0\system32\advpack.dll

File Type: DLL

  Summary

        E000 .data
        2000 .reloc
        3000 .rsrc
       15000 .text

Original comment by ar.e...@gmail.com on 3 Aug 2011 at 12:15

GoogleCodeExporter commented 8 years ago
Sorry, should have been "/exports".

Original comment by mikol...@google.com on 3 Aug 2011 at 7:35

GoogleCodeExporter commented 8 years ago
C:\masm32\bin>link /dump /exports \WINDOWS.0\system32\advpack.dll
Microsoft (R) COFF Binary File Dumper Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

Dump of file \WINDOWS.0\system32\advpack.dll

File Type: DLL

  Section contains the following exports for ADVPACK.dll

           0 characteristics
    4802349B time date stamp Sun Apr 13 13:28:11 2008
        0.00 version
           1 ordinal base
          32 number of functions
          32 number of names

    ordinal hint RVA      name

          1    0 00011CF2 AddDelBackupEntry
          2    1 00003D7B AdvInstallFile
          3    2 0000BD2E CloseINFEngine
          4    3 00007D08 DelNode
          5    4 00007F4C DelNodeRunDLL32
          6    5 00004C41 DllMain
          7    6 0000AC92 DoInfInstall
          8    7 0000D207 ExecuteCab
          9    8 0000F3E1 ExtractFiles
         10    9 00011CD4 FileSaveMarkNotExist
         11    A 00012E94 FileSaveRestore
         12    B 0000DDE7 FileSaveRestoreOnINF
         13    C 000067A5 GetVersionFromFile
         14    D 000056AC GetVersionFromFileEx
         15    E 0000B631 IsNTAdmin
         16    F 0000AD4A LaunchINFSection
         17   10 0000E6A9 LaunchINFSectionEx
         18   11 00007FB4 NeedReboot
         19   12 00007F96 NeedRebootInit
         20   13 0000BC58 OpenINFEngine
         21   14 0000C778 RebootCheckOnInstall
         22   15 000049CE RegInstall
         23   16 00010E24 RegRestoreAll
         24   17 0001088B RegSaveRestore
         25   18 0000DC2C RegSaveRestoreOnINF
         26   19 00007FDC RegisterOCX
         27   1A 0000B011 RunSetupCommand
         28   1B 0000C85F SetPerUserSecValues
         29   1C 0000A295 TranslateInfString
         30   1D 0000BC0B TranslateInfStringEx
         31   1E 0000CD8A UserInstStubWrapper
         32   1F 0000E254 UserUnInstStubWrapper

  Summary

        E000 .data
        2000 .reloc
        3000 .rsrc
       15000 .text

Original comment by ar.e...@gmail.com on 3 Aug 2011 at 9:26

GoogleCodeExporter commented 8 years ago
Thanks, I think I now understand the problem. You have MSIE6? That would 
explain why your advpack.dll exports much less functions (most importantly, 
without RegInstallW) that the one on mine XP SP3 and I didn't notice the 
problem.

I have prepared a DLL using the ANSI call RegInstall that is present in your 
system (what doesn't seem to matter as the Unicode RegInstallW seems to do a 
conversion to ANSI internally, thus is equivalent). Could you try if it works 
for you?

Original comment by mikol...@google.com on 4 Aug 2011 at 8:00

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

My experience can confirm your conclusion too. I set up MSIE8 then tried to
set up Webp Codec for Windows 0.15 again. No error message, Success!

But success regards only the setup, no Thumbnail View in the explorer, no
view in *Windows* Picture and *Fax viewer.*

Thanx for your investigation

PS.:
WebpWICCodec.dll  577 KB attachment: Sorry I'm not advanced enough to use a
dll.

Original comment by tibo...@gmail.com on 5 Aug 2011 at 11:41

GoogleCodeExporter commented 8 years ago
Note that the functionality of the codec on Windows XP is limited - see 
http://code.google.com/p/webp/issues/detail?id=76 .

Does anyone have IE6 to test the new DLL? If not, I will try to uninstall IE8 
from one of my machines to check this helps.

Original comment by mikol...@google.com on 12 Aug 2011 at 1:43

GoogleCodeExporter commented 8 years ago
The latest DLL registers correctly under 32-bit xp/sp3 with ie6 -- ie[78] were 
never installed.

Original comment by jz...@google.com on 22 Aug 2011 at 11:40

GoogleCodeExporter commented 8 years ago
Thanks! Could you do one more test with the DLL attached - I've found that 
RegInstall works correctly as Unicode is the *.inf file is Unicode. But I'd 
prefer to check if this doesn't break XP+IE6 again.

Original comment by mikol...@google.com on 23 Aug 2011 at 9:24

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, I didn't see a mail for this update...
The latest DLL registers fine as well.

Original comment by jz...@google.com on 1 Sep 2011 at 1:54

GoogleCodeExporter commented 8 years ago
This is fixed with the 0.1.3 installer.

Original comment by jz...@google.com on 29 Oct 2011 at 1:58