Jump to content

Recommended Posts

Posted (edited)

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 Next

Dim fso

Set fso = CreateObject("Scripting.FileSystemObject")

main()

sub main()

'Let's find out where WinZip is installed

WZPath=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 sub

function regget(value)

on error resume next

Set regedit = CreateObject("WScript.Shell")

regget=regedit.RegRead(value)

end function

function DeleteAFolder(filespec)

Dim fso

on error resume next

Set fso = CreateObject("Scripting.FileSystemObject")

fso.DeleteFolder(filespec)

end function

So, 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 by Tripredacus
changed topic title before move

Posted (edited)

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 by allen2
  • 3 months later...
Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...