Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Turn off a desktop toolbar

Reply
 
Old 03-18-2009   #1 (permalink)
TomK


 
 

Turn off a desktop toolbar

I'm trying to figure a way with VBScript to disable a desktop toolbar and
can't find anything anywhere that will lead me in the right direction.

We have Nero installed on about 700 systems. When we installed it we
applied customizations to the install to remove a bunch of the consumer
stuff, but could not disable the Nero Search toolbar. Now we're migrating
from Lotus Notes to Exchange/Outlook and want to install Windows Search, but
I don't want two search boxes taking up so much real estate on the taskbar.

So, how can I disable that toolbar using VBScript? WMI? I'm sure it's
accessible somewhere, but I'll be darned if I can figure it out.

Thanks,

Tom



My System SpecsSystem Spec
Old 03-18-2009   #2 (permalink)
TomK


 
 

Re: Turn off a desktop toolbar

It never fails. I looked for weeks to find a solution to this with no luck,
but just after I posted this question I stumbled upon one.

I'm just building these lines into my install batch file...

rem Turn off Nero Scout and remove the search bar if Nero 7 is installed
if not exist "C:\Program Files\Nero\Nero 7\Core\nero.exe" goto
InstallWindowsSearch
regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearch.dll"
regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearchBar.dll"
regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearchTray.dll"

This removes all the annoying features I want to remove. I must admit this
isn't nearly as satifying as it would have been to learn a new VBScripting
method to nuke them! :-)

Tom

"TomK" <thomasDOTkerA@xxxxxx> wrote in message
news:OTktil8pJHA.4840@xxxxxx
Quote:

> I'm trying to figure a way with VBScript to disable a desktop toolbar and
> can't find anything anywhere that will lead me in the right direction.
>
> We have Nero installed on about 700 systems. When we installed it we
> applied customizations to the install to remove a bunch of the consumer
> stuff, but could not disable the Nero Search toolbar. Now we're migrating
> from Lotus Notes to Exchange/Outlook and want to install Windows Search,
> but I don't want two search boxes taking up so much real estate on the
> taskbar.
>
> So, how can I disable that toolbar using VBScript? WMI? I'm sure it's
> accessible somewhere, but I'll be darned if I can figure it out.
>
> Thanks,
>
> Tom
>

My System SpecsSystem Spec
Old 03-18-2009   #3 (permalink)
Alex K. Angelopoulos


 
 

Re: Turn off a desktop toolbar

Unfortunately, there's no general way to this with VBScript, so you've got
the most general solution. It IS possible to write a general wrapper for the
regsvr32 tool in script; using a bit of air-coding, here's how it would
generally work:

Function UnregisterServer(ByVal filepath)
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
If InStr(filepath, " ") > 0 Then filepath = Chr(34) & filepath & Chr(34)
UnRegisterServer = WshShell.Run("regsvr32 /u /s " & filepath, 0, true)
End Function

The filepath should be supplied without quotes; they will be inserted
automatically if needed. The return value from the function is the exit
errorcode for regsvr32. Note that I'm not sure this works precisely right;
I'm working on a 64-bit system and seem to have some issues with regsvr32
not returning errorlevel when needed...

"TomK" <thomasDOTkerA@xxxxxx> wrote in message
news:unY9eJ#pJHA.5832@xxxxxx
Quote:

> It never fails. I looked for weeks to find a solution to this with no
> luck, but just after I posted this question I stumbled upon one.
>
> I'm just building these lines into my install batch file...
>
> rem Turn off Nero Scout and remove the search bar if Nero 7 is installed
> if not exist "C:\Program Files\Nero\Nero 7\Core\nero.exe" goto
> InstallWindowsSearch
> regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearch.dll"
> regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearchBar.dll"
> regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearchTray.dll"
>
> This removes all the annoying features I want to remove. I must admit
> this isn't nearly as satifying as it would have been to learn a new
> VBScripting method to nuke them! :-)
>
> Tom
>
> "TomK" <thomasDOTkerA@xxxxxx> wrote in message
> news:OTktil8pJHA.4840@xxxxxx
Quote:

>> I'm trying to figure a way with VBScript to disable a desktop toolbar and
>> can't find anything anywhere that will lead me in the right direction.
>>
>> We have Nero installed on about 700 systems. When we installed it we
>> applied customizations to the install to remove a bunch of the consumer
>> stuff, but could not disable the Nero Search toolbar. Now we're
>> migrating from Lotus Notes to Exchange/Outlook and want to install
>> Windows Search, but I don't want two search boxes taking up so much real
>> estate on the taskbar.
>>
>> So, how can I disable that toolbar using VBScript? WMI? I'm sure it's
>> accessible somewhere, but I'll be darned if I can figure it out.
>>
>> Thanks,
>>
>> Tom
>>
>
>
My System SpecsSystem Spec
Old 03-19-2009   #4 (permalink)
mr_unreliable


 
 

Re: Turn off a desktop toolbar

TomK wrote:
Quote:

> rem Turn off Nero Scout and remove the search bar if Nero 7 is installed
> if not exist "C:\Program Files\Nero\Nero 7\Core\nero.exe" goto
> InstallWindowsSearch
> regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearch.dll"
> regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearchBar.dll"
> regsvr32 /u /s "%ProgramFiles%\Common Files\Ahead\Lib\NeroSearchTray.dll"
>
> This removes all the annoying features I want to remove. I must admit this
> isn't nearly as satifying as it would have been to learn a new VBScripting
> method to nuke them! :-)
>
It frequently happens that one wishes to get rid of some
annoying app without an uninstaller, or some annoying
side effect of an app (for example one app which I
considered to be useful, but which installed itself in
EVERY system context menu).

In this sort of situation, I think that Bill James'
Registry Search tool is invaluable:

http://www.billsway.com/vbspage/Show...es/RegSrch.txt

I have changed Bill's script around to such an extent
that he would not recognize it - and probably want to
disown any connection - but the basic purpose remains,
which is to search the entire registry for relevant
entries (in the case of the OP for "nero").

Yes, I know what you are thinking, regedit already has
that capability. Granted, it does, but this is one (very
rare) case where a script is much faster than the original
microsoft code. In addition, you get all the entries in
"reg" file format, which facilitates any editing you
wish to do.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Toolbar for the Desktop Tutorials
Desktop toolbar help! General Discussion
How to make desktop icons go away from desktop toolbar in Vista? Vista General
WLM Desktop and Google Desktop and Toolbar Live Mail
Desktop toolbar - want it to show only desktop icons. Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46