Carone Blog

Monday, January 21, 2008

Remove Windows Messenger from XP

Tip: Easiest method to disable Messenger: C:\Program Files\Messenger and either rename the Messenger folder to something like "MessengerOLD" or just move it.

  • Remove Messenger from XP

Start/Run/RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

  • Disable Messenger

Start/Run/gpedit.msc/Admistrative Templates/Windows Components/Windows
Messenger. Alter your settings in the right pane. (For Pro)

  • Stop Windows Messenger from Auto-Starting

Simply delete the following Registry Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\MSMSGS

  • Uninstall Messenger

You have to edit sysoc.inf (located in /WINDOWS/inf). Under [Components] you should see the following line:

msmsgs=ocgen.dll,OcEntry,msmsgs.inf,hide,7. Take the word ‘hide’ out of the line, and it should look like this: msmsgs=ocgen.dll,OcEntry,msmsgs.inf,,7. Exit and save. Go to Add or Remove Programs, and click on Add/Remove Windows Components. There you should now be able to uncheck the MSN Messenger Service, and by clicking Next it will uninstall.

Registry Locations/Settings

Favorite folders, etc… - HKEY_CURRENT_USER\Software\Micorsoft\Windows\CurrentVersion\Explorer\Shell
Folders

Startup entries
- HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

Make XP Smaller

Here’s something I learned….you can make XP smaller by removing programs you don’t use…in order to do this you have to modify some system files, otherwise the uninstall option does not show up in thecontrol panel for a lot of programs (windows XP programs). Here’s how to do it: Go to the Windows folder/inf/sysoc.inf…..remove the word "hide" from all the entries in that folder. (In order to see that folder you have to enable "view all files" in tools/view/folder options.) After you do this, you will then be able to remove a whole lot of stuff using control panel….including the annoying messenger icon that always pops up. I’m not sure how small you can shrink this OS….maybe 900mb. Problem here is you have to do a large default install before you can shrink it….there may be a work-around here, but I
haven’t found it yet.

WORKAROUND - Create a custom install disk using nLite - you can remove a ton of addins from the basic install.

Control New Popup Windows - Websites

All of this is
easy to do. The trick is to manipulate the window’s components
through JavaScript. Here’s how to gain control over window components.
First, inside your script, include the window.open method, and
add, as arguments, the URL and a name for the new window. For
example, the code window.open ("http://www.pcmag.com/",
"PC Magazine") opens the PC Magazine Web site in a
new window and places the text PC Magazine in the title bar
of that window. You don’t actually need the title bar text,
but it’s useful to help orient the user, and also because by
using different names you can include several different windows
in the same HTML document.

Now that you have
the window in operation, you can tailor its components. To do
so, add a third argument to the window.open statement, this
one enclosing one or more options in one set of quotation marks.
(It’s important to note that if you put anything in the third
argument, you must spell out all of the features you want. The
features have default values, but if you enable only some, the
ones not defined will be disabled. (See The MSDN Library.)

These options
must be separated by commas, but without a space following the
commas. Here are the available options:

· channelmode—The
new window is displayed in theater mode and shows the channel
band.

· directories—The
new window displays the Links bar in IE or the Personal bar
in Navigator.

· fullscreen—The
new window displays the browser in full-screen mode, hiding
the title bar and menus. If you use this, be sure to give users
a button or other obvious way to close the window.

· height—The
new window’s height is set to the specified number of pixels.

· left—The
new window’s position is set in pixels, relative to the top-left
corner of the screen.

· location—The
new window displays the address bar.

· menubar—The
new window displays the browser’s menu bar.

· scrollbars—The
new window displays vertical and horizontal scrollbars when
necessary (excluding them can make content inaccessible).

· status—The
new window includes a status bar at the bottom.

· toolbar—The
new window displays the browser’s toolbar (making toolbar buttons
such as Back and Forward available).

· top—The
new window’s position is set in pixels, relative to the top-left
corner of the screen.

· width—The
new window’s width is set to the specified number of pixels.

· resizable—The
new window can be resized by the user.

Here’s an example.
The following code would open the PC Magazine site in a new
resizable window showing only the toolbar:

window.open("http://www.pcmag.com/",

"PC Magazine", "toolbar=yes,resizable=yes")

Note that the
value "yes" can be replaced by "1", and
that if you omit the value entirely the browser will assume
"yes" or "1".

The following
sets the height and width of the new window, makes it nonresizable
(by leaving out the resizable option), and displays the menu
bar, the location bar, and the scrollbars:

window.open("http://www.pcmag.com/","PC
Magazine",

"menubar=yes,location=yes,scrollbars=yes,

width=628,height=333")

Internet Explorer
and Netscape Navigator, versions 4 and later, handle the height
and width options differently. In IE 4 and later, you can specify
height, width, or both; in Navigator 4 and later you must specify
both in order to specify either.

Set Time Automatically

net time /setsntp:"time.nist.gov time-a.nist.gov time-b.nist.gov"

Do a screen shot


Press the PrtScr key (on some keyboards it’s marked "Print
Screen"). Windows will place an exact copy of the entire
screen and put it on the clipboard. From there, it’s relatively
easy to open Word, Paint (Start | Programs/All Programs | Accessories
| Paint), or any other program that understands pictures, and
paste the picture into a file, typically by choosing Edit |
Paste. Save the file and attach it to your e-mail missive to
the support staff. If you don’t want to take a picture of the
entire screen, Windows will let you snap a picture of the currently
active window. Just press Alt+PrtScr (hold down the Alt key,
then press PrtScr or Print Screen, and release both). Be sure
you click on the message once before hitting Alt+PrtScr, to
make sure the right dialog box is active.

Numlock in NT/2000:

Windows NT is supposed to remember the NumLock state when you log off and restore it when you log on. In the Registry key HKEY_CURRENT_USER \Control Panel \Keyboard, if the value InitialKeyboardIndicators is 2, NumLock is turned on. If that value is 0, NumLock is turned off.