brennanschnell
(Fresh Scripter)
2007-05-28 09:30 PM
Startup Script to uninstall winzip

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?

Les
(KiX Master)
2007-05-28 09:45 PM
Re: Startup Script to uninstall winzip

Login or startup script? Which is it?
What version of WinZIP?


brennanschnell
(Fresh Scripter)
2007-05-28 09:48 PM
Re: Startup Script to uninstall winzip

Login Script and its WinZIP 7.0

Les
(KiX Master)
2007-05-28 10:19 PM
Re: Startup Script to uninstall winzip

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


brennanschnell
(Fresh Scripter)
2007-05-28 10:21 PM
Re: Startup Script to uninstall winzip

What would it look like for a startup script?

Les
(KiX Master)
2007-05-28 10:22 PM
Re: Startup Script to uninstall winzip

The same.

brennanschnell
(Fresh Scripter)
2007-05-29 02:06 PM
Re: Startup Script to uninstall winzip

Thank you for your help!

brennanschnell
(Fresh Scripter)
2007-05-29 02:07 PM
Re: Startup Script to uninstall winzip

Where you wrote PathToFile ... I put in my path on the machine correct? for example c:\Program Files\WinZIP

Mart
(KiX Supporter)
2007-05-29 02:11 PM
Re: Startup Script to uninstall winzip

Yep.

Arend_
(MM club member)
2007-05-29 03:51 PM
Re: Startup Script to uninstall winzip

Preferably the %programfiles% variable.

Mart
(KiX Supporter)
2007-05-29 11:24 PM
Re: Startup Script to uninstall winzip

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.


brennanschnell
(Fresh Scripter)
2007-05-30 03:11 PM
Re: Startup Script to uninstall winzip

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?


Les
(KiX Master)
2007-05-30 03:31 PM
Re: Startup Script to uninstall winzip

 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


brennanschnell
(Fresh Scripter)
2007-05-30 05:38 PM
Re: Startup Script to uninstall winzip

Thanks again for all your help i got it working with the the x after uninstall

brennanschnell
(Fresh Scripter)
2007-05-30 05:39 PM
Re: Startup Script to uninstall winzip

I mean without the x after uninstall

brennanschnell
(Fresh Scripter)
2007-06-05 03:31 PM
Re: Startup Script to uninstall winzip

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


Les
(KiX Master)
2007-06-05 06:04 PM
Re: Startup Script to uninstall winzip

Did you try a reboot? ISTR that there is a pending operation.

Mart
(KiX Supporter)
2007-06-05 08:28 PM
Re: Startup Script to uninstall winzip

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.