Guopeng Wen wrote:

> I found the 7.3d NSIS installer I built cannot uninstall Vim on
> Windows XP SP3.  When I replicate the uninstallation process
> manually, the following error was reported when launch
> "uninstal.exe":
> 
>     Entry Point Not Found:
>     The procedure entry point RegDeleteKeyExA could not be located
>     in the dynamic link library ADVAPI32.DLL.
> 
> It turns out RegDeleteKeyEx() is only available on 64 bit Windows,
> according to MSDN:
>     http://msdn.microsoft.com/en-us/library/ms724847(VS.85).aspx
> Minimum supported client:
>     Windows Vista, Windows XP Professional x64 Edition
> 
> That function call was introduced in changeset b204ac54bea4:
>     Fix: the MS-Windows uninstaller did not delete registry keys on
>     64 bit systems.
> 
> The simple patch (against changeset 7f578da7edb2) I attached defines
> a macro REG_DELETE_KEY, which translates to RegDeleteKeyEx when
> WIN3264 defined, and to RegDeleteKey otherwise.
> 
> I only tested the patch on Windows XP SP3, it works.  I do not have
> 64-bit system to verify with, it should work in theory since the
> code is the same after pre-processing when WIN3264 is defined.

It does work on my Windows XP system.  Apparently it's hard to predict
if RegDeleteKeyEx() is going to work.  This would require using
LoadLibrary() and GetProcAddress().


-- 
The fastest way to get an engineer to solve a problem is to declare that the
problem is unsolvable.  No engineer can walk away from an unsolvable problem
until it's solved.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui