D8TA Posted February 21, 2006 Share Posted February 21, 2006 I read about the security vulnerability with Google desktop search and have been asked to create a login script to detect, and uninstall the desktop search from the desktops. All the PCs are Windows XP and we are using Novell NetWare to login to the network. Has anyone created a login script to do this or can someone give me a hand. How do you go about removing unneccessay applications. Unfortunately, we have some users who are administrators of their local machines and we are just currently looking at Active Directory. Hopefully by summer we will have AD implemented. I am really new to login scripts let alone having one execute the uninstall of an application. Thanks! Link to comment Share on other sites More sharing options...
exrcizn Posted February 21, 2006 Share Posted February 21, 2006 Does the uninstall show up in Add/Remove programs? If it does I may be able to give you a script based on the uninstall key in the registry. Link to comment Share on other sites More sharing options...
D8TA Posted February 21, 2006 Author Share Posted February 21, 2006 Yes it does. That would be great! Link to comment Share on other sites More sharing options...
exrcizn Posted February 21, 2006 Share Posted February 21, 2006 In the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall you'll find a key for each entry in the Add/Remove programs list and some other programs that may not be listed there. Scroll down through the keys until you find the one for Google desktop search. There will be an uninstall string listed on the right-hand side. You can put this into a batch file that you can use in a login script.If you're not sure how to do this last part I can help with that too. Link to comment Share on other sites More sharing options...
D8TA Posted February 21, 2006 Author Share Posted February 21, 2006 How do I add the uninstall string, C:\Program Files\Google\Google Desktop Search\GoogleDesktopSetup.exe -uninstall to a batch file and make it a login script? Link to comment Share on other sites More sharing options...
chilifrei64 Posted February 21, 2006 Share Posted February 21, 2006 If that is what the uninstall string is in the registry key that exrcizn mentioned then yes ... just add that to the batch fileyou will then need to take that string and add it to a batch file. Quick note.. Most cases, this works well for both WinXP and 2k.. however, 1 instance of mine using this method, the uninstall strings werer different for xp and 2000.. and also.. sometimes you have to put start infront of it in the batch file.. it all depends on how the uninstall is called. Link to comment Share on other sites More sharing options...
exrcizn Posted February 21, 2006 Share Posted February 21, 2006 So here's where you would start...here's a vbscript that will uninstall the software. If you already know this please don't take offense...open Notepad and copy the script below into it and name it RemoveGoogleDesktop.vbs or whatever other file name you'd like to use. To test it install Google desktop then run the .vbs file from Start, Run. If this works it's your first step:On Error Resume Next'Remove Google Desktop if it is installedDim filesys, wsSet ws = WScript.CreateObject("WScript.Shell")Set filesys = CreateObject("Scripting.FileSystemObject")'Test to see if file exist - if it does then Google Desktop is installed 'If the file exists uninstall Google DesktopIf filesys.FileExists("C:\Program Files\Google\Google Desktop Search\GoogleDesktop.exe") Then ws.exec("C:\Program Files\Google\Google Desktop Search\GoogleDesktopSetup.exe -uninstall -silent") End If Link to comment Share on other sites More sharing options...
gunsmokingman Posted February 21, 2006 Share Posted February 21, 2006 I have re-edit exrcizn to make it so the drive letter does not matter.Dim filesys, Google, ws Set ws = WScript.CreateObject("WScript.Shell") Set filesys = CreateObject("Scripting.FileSystemObject") Google = ws.ExpandEnvironmentStrings("%ProgramFiles%\Google\Google Desktop Search\GoogleDesktop.exe") 'Test to see if file exist - if it does then Google Desktop is installed If filesys.FileExists(Google) Then : ws.Run(Chr(34) & Google & " -uninstall -silent" & Chr(34)) : End If Link to comment Share on other sites More sharing options...
exrcizn Posted February 21, 2006 Share Posted February 21, 2006 Thanks Gunsmokingman. Good idea. Link to comment Share on other sites More sharing options...
gunsmokingman Posted February 21, 2006 Share Posted February 21, 2006 It was a good script I just added one more varible to it. Link to comment Share on other sites More sharing options...
D8TA Posted February 28, 2006 Author Share Posted February 28, 2006 I've tried many times but I am still very new to login scripts. We are using Novell NetWare and I cannot seem to get this script to work. I need a NetWare compatible script to uninstall the Google Desktop Search. What am I doing wrong??Thanks! Link to comment Share on other sites More sharing options...
exrcizn Posted February 28, 2006 Share Posted February 28, 2006 It's been so long since I've used Netware (the good ole days) that I can't remember off the top of my head how to do this. I'll have to pass this to someone else.Good luck! Link to comment Share on other sites More sharing options...
D8TA Posted March 1, 2006 Author Share Posted March 1, 2006 Anyone??? Link to comment Share on other sites More sharing options...
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