turbomcp Posted May 11, 2004 Posted May 11, 2004 i know its astupid question i did it once and i forgoti need block messenger and msn messnger from loading at startupthanks
tim Posted May 11, 2004 Posted May 11, 2004 With VBscript you can use object.RegDeleteIs that all you needed to know?
turbomcp Posted May 12, 2004 Author Posted May 12, 2004 i was hoping for something using regediti know this:How to delete keys and values from the registry:Create a reg file like this, notice the hyphen inside the first bracket REGEDIT4[-HKEY_CURRENT_USER\SomeKey] When double clicking this .reg file the key "SomeKey" will be deleted along with all string, binary or Dword values in that key.If you want to just delete values leaving the key in place, set the value you want to delete = to a hyphene.g. REGEDIT4[HKEY_CURRENT_USER\SomeKey]"SomeStringValue"=-but i want to delete the whole value(stop msn and windows messengers from stating at startup)
tim Posted May 12, 2004 Posted May 12, 2004 You can't delete values using the regedit '-' (minus) sign?I will look into that.This will do the trick but there must be simpler way:'Initialization SectionConst RegKey = "HKCU\SomeKey\"Const RegVal = "SomeStringValue" 'Set up an instance of the WSS objectSet WSS = WScript.CreateObject("WScript.Shell") 'Try deal with any errorsOn Error Resume Next WSS.RegDelete RegKey & RegValIF Err <> 0 then Err.Clear Set WSS = NothingWscript.QuitSave this as a .vbs file. Run with CScript.exe or WScript.exe like this:"CScript DelReg.vbs //NoLogo"
ZoSTeR Posted May 12, 2004 Posted May 12, 2004 There is a commandline regeditor at www.resplendence.com
oioldman Posted May 12, 2004 Posted May 12, 2004 Afternoon turbomcp,If your after stopping it from loading, you can do no worse than doing the below, this will actually UN-INSTALL it completely.Make sure your Internet Explorer, Outlook Express, Windows Messenger and other programs are closed before doing this.1) Click on Start, Run2) Type the following (or cut and paste it) into the Run lineRunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove3) Click on OKMore ways of doing it can be found here =>http://www.kellys-korner-xp.com/xp_messenger.htmThis includes, uninstalling, disabling service, stopping from autloading at startup and a few otherHope that helps
maxXPsoft Posted May 12, 2004 Posted May 12, 2004 You wanted a script to do it but heres a cmd file. You can remove the pause from it unless you want to see the results.First you NET STOP that Messenger service then set its start value to a 4 to prevent it from running on boot. This is NOT MSN MessengerThe PreventRun stops msn messenger from loading at start.save below as Messenger.cmdthese are all 5 single lines but it gets wrapped here.NET STOP MessengerREG ADD HKLM\SYSTEM\CurrentControlSet\Services\Messenger /v Start /t REG_DWORD /d "4" /fREG ADD HKCU\Software\Policies\Microsoft\Messenger\Client /v PreventRun /t REG_DWORD /d "1" /fpauseEXITI can whip this up in vbs or several other's can if you need it that way.
oioldman Posted May 12, 2004 Posted May 12, 2004 You can't delete values using the regedit '-' (minus) sign?I will look into that.Hello Tim,with ref to the above quote, I found this on M$, only url needed as is long doc =>http://support.microsoft.com/default.aspx?...kb;en-us;310516but essentially, "Deleting Registry Keys and ValuesTo delete a registry key with a .reg file, put a hyphen (-) in front of the RegistryPath in the .reg file. For example, to delete the Test subkey from the following registry key:HKEY_LOCAL_MACHINE\Softwareput a hyphen in front of the following registry key in the .reg file: HKEY_LOCAL_MACHINE\Software\TestThe following example has a .reg file that can perform this task. [-HKEY_LOCAL_MACHINE\Software\Test]To delete a registry value with a .reg file, put a hyphen (-) after the equals sign following the DataItemName in the .reg file. For example, to delete the TestValue registry value from the following registry key:HKEY_LOCAL_MACHINE\Software\Test"As for how you can add this to a VBScript, i wouldn't know that answer sorry.
turbomcp Posted May 12, 2004 Author Posted May 12, 2004 thnaks to all:)the greatest forum i knowgreat people who help eachother outi managed to found it and added it to my reg tweaks:Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]"MsnMsgr"=-"MSMSGS"=-thanks again to everybody
maxXPsoft Posted May 12, 2004 Posted May 12, 2004 I think we talking about diff OSThose aren't in my Run key in XP.
tim Posted May 12, 2004 Posted May 12, 2004 with ref to the above quote, I found this on M$, only url needed as is long doc =>Cool, thanks for the info
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now