|
|
|||||||
Hello I am new at this and on my network some computers have winzip installed and I would like to remove it on login with my script...what line of code would I need for this? |
||||||||
|
|
|||||||
Login or startup script? Which is it? What version of WinZIP? |
||||||||
|
|
|||||||
Login Script and its WinZIP 7.0 |
||||||||
|
|
|||||||
Login script would require users to have admin rights to uninstall. Not sure what version of WinZIP added the silent uninstall switch of: WINZIP32.EXE /uninstallx If 7.0 has it you would add: Code: If Exist($PathToFile + '\WINZIP32.EXE') Run $PathToFile + '\WINZIP32.EXE /uninstallx' EndIf |
||||||||
|
|
|||||||
What would it look like for a startup script? |
||||||||
|
|
|||||||
The same. |
||||||||
|
|
|||||||
Thank you for your help! |
||||||||
|
|
|||||||
Where you wrote PathToFile ... I put in my path on the machine correct? for example c:\Program Files\WinZIP |
||||||||
|
|
|||||||
Yep. |
||||||||
|
|
|||||||
Preferably the %programfiles% variable. |
||||||||
|
|
|||||||
There might also be a uninstall string in the registry at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinZip If you would pull the uninstall string from the registry you would be sure to have the correct path and uninstall command. You might need to add a silent parameter but that would be it. |
||||||||
|
|
|||||||
This is the code I have in my Kiktart.kix ;Run script for removal of Winzip If @USERID = schnellb Call WinzipRemove.kix EndIf Then in my WinzipRemove.kix I have If Exist($C:\Program Files\WinZip + '\WINZIP32.EXE') Run $C:\Program Files\WinZip + '\WINZIP32.EXE /uninstallx' EndIf Is there anything else I need for this to work? |
||||||||
|
|
|||||||
Originally Posted By: brennanschnell Is there anything else I need for this to work? Proper quotes. What is the $C var thingy? Code: If Exist('C:\Program Files\WinZip\WINZIP32.EXE') Run 'C:\Program Files\WinZip\WINZIP32.EXE /uninstallx' EndIf |
||||||||
|
|
|||||||
Thanks again for all your help i got it working with the the x after uninstall |
||||||||
|
|
|||||||
I mean without the x after uninstall |
||||||||
|
|
|||||||
Hello Again, I tried this and it only worked somewhat... It deleted the winzip from the desktop and removed it from the start menu but the folder WinZIP was still in Program Files and all files in the folder were removed except for WinZIP32.exe and WZSHLSTB.dll everything else was removed...When I go into add/removed programs winzip is gone...any ideas on how to fix this from the code I was provided with? Thanks |
||||||||
|
|
|||||||
Did you try a reboot? ISTR that there is a pending operation. |
||||||||
|
|
|||||||
And if they stay after a reboot you might be able to delete the files and folder. A dll might be registered so just deleting it could give you all kinds of sh#t. Un registering it with regsvr32 could fix that problem. |