ZAP File
   HOME

TheInfoList



OR:

A .ZAP File (Zero Administration Package) is a text file, which allows the publishing of an application to a user on a Microsoft Windows system (
Windows 2000 Windows 2000 is a major release of the Windows NT operating system developed by Microsoft and oriented towards businesses. It was the direct successor to Windows NT 4.0, and was released to manufacturing on December 15, 1999, and was officiall ...
, XP Professional,
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, which was released five years before, at the time being the longest time span between successive releases of ...
, or
Windows 7 Professional Windows 7, a major release of the Microsoft Windows operating system, has been released in several editions since its original release in 2009. Only Home Premium, Professional, and Ultimate were widely available at retailers. The other editions ...
), for applications for which a
.MSI Windows Installer (msiexec.exe, previously known as Microsoft Installer, codename Darwin) is a software component and application programming interface (API) of Microsoft Windows used for the installation, maintenance, and removal of software. ...
file does not exist.How to publish non-MSI programs with .zap files
/ref> It is used in
Active Directory Active Directory (AD) is a directory service developed by Microsoft for Windows domain networks. It is included in most Windows Server operating systems as a set of Process (computing), processes and Windows service, services. Initially, Active D ...
Domains and is installed using a
Group Policy Group Policy is a feature of the Microsoft Windows NT family of operating systems (including Windows 7, Windows 8.1, Windows 10, Windows 11, and Windows Server 2003+) that controls the working environment of user accounts and computer accounts. G ...
.


A basic .ZAP file

A .ZAP file can be as simple or as complicated as the System Administrator wishes to make it. There are only two required fields in a .ZAP file, an Application Name (called a Friendly Name) and a Setup Command line. Other information is optional. The .ZAP File begins with a title line consisting of the word Application inside single
Square Brackets A bracket is either of two tall fore- or back-facing punctuation marks commonly used to isolate a segment of text or data from its surroundings. Typically deployed in symmetric pairs, an individual bracket may be identified as a 'left' or 'r ...
( . Underneath this come the entry fields, the two Required fields being FriendlyName = "''Name''" and SetupCommand = "''\\Server\share\setupfile''". You can also add Optional entries, such as DisplayVersion = and Publisher =. Note that DisplayVersion and Publisher do not require
Quotation Marks Quotation marks (also known as quotes, quote marks, speech marks, inverted commas, or talking marks) are punctuation marks used in pairs in various writing systems to set off direct speech, a quotation, or a phrase. The pair consists of an ...
around the variables. Below is a very simple example of a .ZAP file. pplicationFriendlyName = "Program" SetupCommand = "\\FileServer\Share\setup.exe" /q


Restrictions to a .ZAP file

The .ZAP file is more restricted than a .MSI file in that it cannot be rolled back if the application fails to install correctly, cannot use elevated privileges to install itself (i.e. the User needs to have the rights to install the software - usually given by Group Policy) and cannot install on first use, or install a separate feature on first use. Many .ZAP Files require user intervention. This can be overcome if the Systems Administrator creates a
Batch file Batch may refer to: Food and drink * Batch (alcohol), an alcoholic fruit beverage * Batch loaf, a type of bread popular in Ireland * A dialect term for a bread roll used in North Warwickshire, Nuneaton and Coventry, as well as on the Wirra ...
and runs a quiet or silent install from a Batch File command. However, running an
Executable file In computing, executable code, an executable file, or an executable program, sometimes simply referred to as an executable or binary, causes a computer "to perform indicated tasks according to encoded instructions", as opposed to a data fil ...
(such as setup.exe) often bypasses quiet, passive or silent installation switches, even if specified in the SetupCommand. In addition, .ZAP files are not run automatically prior to, or during a User Logon. Instead, the User must access Add/Remove Programs from within the Windows Control Panel, Select Add New Programs and select the Installation from here. The User must have access to the location where the .ZAP file is located and have access to the location of the Setup files (if these locations are different), otherwise they will not be able to install the Application. .ZAP Files cannot be Assigned to Computers and must be published to Users. Therefore when a User moves to another computer (even only temporarily) they can install this application on that machine whether the program should be there or not. Finally, .ZAP Files do not automatically uninstall when a User no longer requires the software. Instead, the software remains installed on the machine permanently, unlike a .MSI installation which can be set to uninstall when the Computer is removed from the relevant OU.


Publishing a .ZAP file

After creating a .ZAP file and placing it in an accessible share - usually creating an Active Directory Group with access to this location - the Systems Administrator needs to create a
Group Policy Object Group Policy is a feature of the Microsoft Windows NT family of operating systems (including Windows 7, Windows 8.1, Windows 10, Windows 11, and Windows Server 2003+) that controls the working environment of user accounts and computer accounts. G ...
, open the editing screen, select User Configuration, Software Settings and Software Installation and create a New Package to the location of the .ZAP file. Since GPOs default to .MSI, the System Admin needs to ensure that they search for .ZAP files, instead of .MSI files. Accepting the new package and assigning the GPO to the relevant Organizational Unit ( OU) will publish the application. The user(s) will then need to reload the group policy from the server which manages GPO. This can be done either through logging off and then on again, or by running "gpupdate" through a command line.


References

{{reflist Installation software Microsoft application programming interfaces Windows administration Windows components