April 7, 201115 yr Hey guys,This is my first post here. I am hoping that you guys could share your expertise and show me the correct path. I am trying to uninstall two softwares, Win-zip-7.0 and Win-RAR 3.20. I am on a Win2000 domain environment. No option to schedule tasks. Users on WIN XP Pro SP2/SP3.I was told to create a silent login script that would uninstall these applications to all users when they log into the domain. So, GPO -> login script.What i have tried:I tried calling winzip32.exe /uninstallx and uninstall.exe /s (for winrar)-> The bat file works well but needs local admin credentials. For normal user who does not have elevated rights, they receive the message "Cannot uninstall - file C:\program files\winzip\readme.txt is in use by another program. Same thing shappens with WinRAR uninstall as well. If i run these script for normal user, it would error out saying a file is in use etc...Even tried the VBS below i found online, same result for WinZIP uninstall. On Error Resume NextDim fsoSet fso = CreateObject("Scripting.FileSystemObject")main()sub main() 'Let's find out where WinZip is installedWZPath=regget("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\winzip32.exe\") Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run WZPath & " /uninstallx",0,TRUE FullWZPath = replace(WZPath, "PROGRA~1", "Program Files") DeleteAFolder(left(FullWZPath,(len(FullWZPath)-13)))end subfunction regget(value) on error resume next Set regedit = CreateObject("WScript.Shell") regget=regedit.RegRead(value)end functionfunction DeleteAFolder(filespec) Dim fso on error resume next Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFolder(filespec)end functionSo, i am facing issues with admin privileges. Please let me know if there is ANYWAY to get this working by script. I have not created custom uninstallers before, is this possible via custom uninstaller? Do you know of any that i can use? I think i have browsed enough forums but i am still unable to get an answer. Will appreciate any help you guys can provide.Thanks Edited April 11, 201115 yr by Tripredacus changed topic title before move
April 7, 201115 yr You could try solving your admin rights issue by moving your working script in computer configuration of the gpo so it will run with system rights each time the computer start. Edited April 7, 201115 yr by allen2
July 14, 201115 yr I had a similar problem removing Winzip 10. I found that the winzip folder was set to readonly. Once I unchecked that box, the uninstall proceeded normally.
Create an account or sign in to comment