Thursday, August 20, 2009

RE: Remove message "Cannot Load registered type library" : "Do you want to register"

> I have copied my gvim installation on a USB stick.
> When I place that USB stick into another system and I run gvim from
> there it comes with the message
> "Cannot Load registered type library"
> "Do you want to register"
> "Yes/No"
>
> Can this message be removed?
> And if so how to do that?
> I assume recompiling gvim?

I see the same thing. I'm using the standard distribution of
VIM 7.2 (2008 Aug 9) MS-Windows 32-bit

My rough-and-ready solution is to have a batch file on my stick which
I run, it registers VIM automatically, runs VIM, and unregisters
again when I close VIM.

I think this still leaves some empty registry keys on the machine.
This doesn't bother me, but if it's a concern you could investigate
exactly what is left and use a utility like "reg" to delete the
traces.

It would be nice to have a better solution though.

PortableApps VIM had this problem reported back in January, so
maybe it is fixed now.

http://portableapps.com/node/15654

:: ---- Batch file starts

:: make it obvious what this cmd prompt is doing
title Running VIM

:: Add the tools directory on my stick to the path
:: so VIM can use the tools directly
:: %~d0 makes it work whatever drive letter the stick has used
set path=%path%;%~d0\tools

:: register Vim without showing that message
%~d0\vim\vim72\gvim -silent -register

:: run Vim so I can use it (then wait for it to close)
%~d0\vim\vim72\gvim

:: now Vim has closed, unregister it
%~d0\vim\vim72\gvim -silent -unregister

:: ---- Batch file ends

regards,
Geoff Wood





Reuters Limited, a Thomson Reuters company, is a company incorporated under the laws of England and Wales (registered number 145516) having its registered office and address for service at the Thomson Reuters Building, 30 South Colonnade, Canary Wharf, London, E145EP, United Kingdom.

This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment