Page 1 of 1 1
Topic Options
#176527 - 2007-05-28 09:30 PM Startup Script to uninstall winzip
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
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?
Top
#176528 - 2007-05-28 09:45 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Login or startup script? Which is it?
What version of WinZIP?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176529 - 2007-05-28 09:48 PM Re: Startup Script to uninstall winzip [Re: Les]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
Login Script and its WinZIP 7.0
Top
#176530 - 2007-05-28 10:19 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176531 - 2007-05-28 10:21 PM Re: Startup Script to uninstall winzip [Re: Les]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
What would it look like for a startup script?
Top
#176532 - 2007-05-28 10:22 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The same.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176547 - 2007-05-29 02:06 PM Re: Startup Script to uninstall winzip [Re: Les]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
Thank you for your help!
Top
#176548 - 2007-05-29 02:07 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
Where you wrote PathToFile ... I put in my path on the machine correct? for example c:\Program Files\WinZIP
Top
#176549 - 2007-05-29 02:11 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Yep.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176552 - 2007-05-29 03:51 PM Re: Startup Script to uninstall winzip [Re: Mart]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Preferably the %programfiles% variable.
Top
#176572 - 2007-05-29 11:24 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
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.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176592 - 2007-05-30 03:11 PM Re: Startup Script to uninstall winzip [Re: Mart]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
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?

Top
#176594 - 2007-05-30 03:31 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
 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
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176601 - 2007-05-30 05:38 PM Re: Startup Script to uninstall winzip [Re: Les]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
Thanks again for all your help i got it working with the the x after uninstall
Top
#176602 - 2007-05-30 05:39 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
I mean without the x after uninstall
Top
#176769 - 2007-06-05 03:31 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
brennanschnell Offline
Fresh Scripter

Registered: 2007-05-28
Posts: 9
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

Top
#176771 - 2007-06-05 06:04 PM Re: Startup Script to uninstall winzip [Re: brennanschnell]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Did you try a reboot? ISTR that there is a pending operation.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176777 - 2007-06-05 08:28 PM Re: Startup Script to uninstall winzip [Re: Les]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
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.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.072 seconds in which 0.028 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org