Jump to content

Winzip Last Step.... Choose Close Dang It


Recommended Posts

I am in the midst of writing this script to install Winzip 9. Everything seems to work fine on my main machine (has autoit installed), but on my testing machine (does not have autoit installed) the last bolded section does not work.

Help?

; Run the winzip installer

Run("winzip90.exe")

; Initial Setup Screen

WinWaitActive("WinZip® 9.0 SR-1 Setup", "&Setup")

Send("!s")

; Install location

WinWaitActive("WinZip Setup", "into the following folder")

Send("{ENTER}")

; Setup Complete 1 of 2

WinWaitActive("Setup Complete 1 of 2", "Setup Complete message 1 of 2")

Send("{ENTER}")

; Setup Complete 2 of 2

WinWaitActive("Setup Complete message 2 of 2", "Setup Complete message 2 of 2")

Send("{ENTER}")

; Features overview

WinWaitActive("WinZip Setup", "WinZip features include")

Send("!n")

; License agreement

WinWaitActive("License Agreement")

Send("!y")

; Quick start

WinWaitActive("WinZip Setup", "Quick Start Guide")

Send("!n")

; Choose interface

WinWaitActive("WinZip Setup", "switch between the two interfaces")

Send("!c")

Send("!n")

; Installation type (custom/express)

WinWaitActive("WinZip Setup", "&Express setup (recommended)")

Send("!e")

Send("!n")

; Select file associations

WinWaitActive("WinZip Setup", "WinZip needs to associate itself with your archives")

Send("!n")

; Close

WinWaitActive("WinZip Setup", "new features in this release")

Send("{TAB}")

Send("{ENTER}")

Link to comment
Share on other sites

  • Moderators

Is this zip for personal installation of a "zipped" file using 9.0 or are you simply installing 9.0? I would imagine you might be able to use a switch for the install and bypass all of your headaches.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Is this zip for personal installation of a "zipped" file using 9.0 or are you simply installing 9.0? I would imagine you might be able to use a switch for the install and bypass all of your headaches.

This is for an update to our corp licensed version of Winzip 8.1

Link to comment
Share on other sites

  • Moderators

This is what I meant:

How do I avoid the installation Wizard and all those "Next" buttons?

When you run WINZIP32.EXE, using the above examples, you go through the entire installation process. You have to reply to each panel in the installation wizard. WinZip has a way to install silently. Silent installs can be managed by packages like Microsoft's System Management Server (SMS).

The /AUTOINSTALL variable is added to the end of the WINZIP32.EXE command line to perform silent installations of WinZip.

Instead of using:

"N:\Program Files\WinZip\WINZIP32.EXE"

or "C:\Program Files\WinZip\WINZIP32.EXE"

Use:

"N:\Program Files\WinZip\WINZIP32.EXE" /autoinstall

or "C:\Program Files\WinZip\WINZIP32.EXE" /autoinstall

Be sure to use "WINZIP32.EXE". Not WINZIP100.EXE. Not SETUP.EXE.

Be sure there is a space between WINZIP32.EXE and /autoinstall.

Note that the /autoinstall switch, when used on its own, facilitates an automatic installation of WinZip with default installation settings, using the default Classic interface, as if the user had manually selected the "Express Install" option. The default installation settings include the creation of a program group, desktop and start menu shortcuts for all users, addition of the Quick Pick tray icon in the startup folder for all users, creation of WinZip file associations for all users, and configuration of WinZip's Check for Updates feature, among other things.

How do I customize the silent installation of WinZip?

Here are some switches you can use with /autoinstall:

prevent WinZip from including the WinZip Quick Pick icon in the taskbar tray

"n:\program files\winzip\winzip32.exe" /noqp /autoinstall

prevent the "Check for Update" function from running

"n:\program files\winzip\winzip32.exe" /noc4u /autoinstall

prevent the "Tip of the Day" from displaying

"n:\program files\winzip\winzip32.exe" /notip /autoinstall

prevent the pre-configured WinZip jobs from being installed

"n:\program files\winzip\winzip32.exe" /nopredefinedjobs /autoinstall

prevent the prompt dialog from appearing when running WinZip jobs **

"n:\program files\winzip\winzip32.exe" /nojobrunprompt /autoinstall

prevent WinZip from including the WinZip icon on the desktop

"n:\program files\winzip\winzip32.exe" /nodesktop /autoinstall

prevent WinZip from including the WinZip icon at the top of the Start menu

"n:\program files\winzip\winzip32.exe" /nostartmenu /autoinstall

prevent WinZip from creating a WinZip program group and icons

"n:\program files\winzip\winzip32.exe" /nomenugroup /autoinstall

**Be sure to consider the security implications of allowing your users to automatically run WinZip Job files before installing with this parameter.

You may use any combination, or all, of these switches.

Please note that when using multiple switches, they must be in the order displayed below.

/noqp

/noc4u

/notip

/nopredefinedjobs

/nojobrunprompt

/nodesktop

/nostartmenu

/nomenugroup

For example, if you want to customize your installation to have no WinZip Quick Pick icon, no WinZip desktop icon and no WinZip icon in the start menu, you would issue this command:

"n:\program files\winzip\winzip32.exe" /noqp /nodesktop /nostartmenu /autoinstall

Note: you can tell if you made an error if the WinZip installation wizard begins. Cancel the installation and fix the problem.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

You should install WinZip32.exe not the installer....

Be sure to use "WINZIP32.EXE". Not WINZIP100.EXE. Not SETUP.EXE.

Imagine WINZIP100.EXE as WINZIP90.EXE. Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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