Hours of research and nothing so far!
Hey guys,
This is my first post here and i am hoping that other members can share their expertise and help me out here. I have been given tasks of deploying and uninstalling few applications via GPO. Deploying was not an issue after i got my hands on a msi file. I am having a lot of pain uninstalling winzip (7, exe) and winrar (3.20, exe) installed. Now, these software needs to be removed. I have browsed previous posts here and tried to use those as well but so far no luck.
I am using 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:
1. I tried calling winzip32.exe /uninstallx and uninstall.exe /s (for winrar)
-> For WINZIP, 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.
Even tried the VBS below i found online, same result for WinZIP uninstall.
2. Since this needs to be a silent uninstall, the RUN AS command is not an option.
3. Tried the CPAU command to pass username and password and execute a script, it says it completed successfully but it doesn't uninstall the program.
Please help! how can i get this done. I don't know what i can do anymore.
This is my first post here and i am hoping that other members can share their expertise and help me out here. I have been given tasks of deploying and uninstalling few applications via GPO. Deploying was not an issue after i got my hands on a msi file. I am having a lot of pain uninstalling winzip (7, exe) and winrar (3.20, exe) installed. Now, these software needs to be removed. I have browsed previous posts here and tried to use those as well but so far no luck.
I am using 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:
1. I tried calling winzip32.exe /uninstallx and uninstall.exe /s (for winrar)
-> For WINZIP, 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.
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
2. Since this needs to be a silent uninstall, the RUN AS command is not an option.
3. Tried the CPAU command to pass username and password and execute a script, it says it completed successfully but it doesn't uninstall the program.
Please help! how can i get this done. I don't know what i can do anymore.
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
timmsie
13 years ago
So basically the main issue your facing is elavated rights
This is a massive cludge but could you create an msi which only contains 2 custom actions which run your uninstall commands.
you can then deploy this by group policy
or you could possibly use a .zap file http://support.microsoft.com/kb/231747
This is a massive cludge but could you create an msi which only contains 2 custom actions which run your uninstall commands.
you can then deploy this by group policy
or you could possibly use a .zap file http://support.microsoft.com/kb/231747
Posted by:
jimmyx
13 years ago
Posted by:
hat3sp1racy
13 years ago
Hi Timmsie,
Thanks for your reply. I haven't worked with .zap files before but i will look at the link and see if that helps out. And yes, you got it right, elevated rights is giving me a pain in the rear. Every other script that i worked with plays well with local admin rights.
I didn't know you could use .zap to uninstall apps that were not installed by a msi file. Will give it a shot.
Thanks
Thanks for your reply. I haven't worked with .zap files before but i will look at the link and see if that helps out. And yes, you got it right, elevated rights is giving me a pain in the rear. Every other script that i worked with plays well with local admin rights.
I didn't know you could use .zap to uninstall apps that were not installed by a msi file. Will give it a shot.
Thanks
Posted by:
hat3sp1racy
13 years ago
Hi, what do you mean by using the script at startup? I have tried GPO user/computer settings and dumping the script (.bat or vbs) for login script. I have not tried the startup script (if you are talking about profile based script that you could set for individual user). I was under the impression that login script under user settings in GPO and the individual startup script ran with user's permissions/rights. So, if that's the case, the script will probably error out?
I haven't tried it yet but i will give it a shot. Thanks.
I haven't tried it yet but i will give it a shot. Thanks.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.