3.3.4:How to Use ZPKG
1: What is zpkg?
zpkg is a secondary encapsulation of pkg (package) files, adding additional information to the base pkg file. as a standalone file. Developers can directly send zpkg files to end users or flash manufacturers via email or other channels. Except for the developer who packaged the file, no other members can view any data within it. This partially addresses specific requirements. zpkg supports the following features:
- (Feature Spotlight) zpkg files support password configuration: When a zpkg containing password information is loaded onto a device, the project file read back from the device requires password verification to open.
- (Feature Spotlight) zpkg files support read-back prohibition: Once read-back is disabled, project files cannot be retrieved from the device.
- (Feature Spotlight) zpkg files support binding to specific device machine codes: Once bound to a machine code, a zpkg can only be loaded once onto that specific device. Unauthorized devices or repeated loading attempts will fail.
While zpkg may serve a purpose in certain specialized use cases, it still has limitations that require special attention. These are summarized as follows:
- Because passwords and project files are packaged together: This implies a certain risk of attack. PowerWriter® will do its utmost to prevent zpkg files from being compromised and leading to password leaks. Except for specific scenarios where the zpkg format is mandatory, we still recommend using pkg files + the ICWorkshop platform for project delivery in most common scenarios.
- Please be fully aware of the above limitations. If you are unsure, do not use this feature.
Binding zpkg to an authentication code is currently only supported on PWX1 devices. For device purchase links, please refer to the Store Portal at the top right corner of this page.
2: How do I save as a zpkg?
2.1: Basic Usage
The method for saving zpkg files is identical to that for saving pkg files, as demonstrated in the animation below:

2.2: Machine Code Binding
Binding the zpkg to the machine code of a specific PowerWriter device enables single-download capability for zpkg. By displaying the programming count of the project file, it achieves offline delivery capability. PowerWriter devices support machine codes for 8 channels, as shown in the figure below:

- Authentication Code: The machine authentication code (unique identifier) for PowerWriter devices. This code can only be generated through an update process, and the device will automatically generate the authentication code.
- Checksum: Verification information for channel data, displayed for reference only.
- Status: Indicates whether the current authentication code is valid. Only valid authentication codes can be copied and bound to a zpkg file. Invalid authentication codes bound to a zpkg file will fail to load.
- Update: Update the authentication code for the current channel.
- Copy: Copy the verification code to the clipboard.
2.2.1: Auth-Code Generation
Before generating an authentication code on the device, connect the device to the PowerWriter application software. Follow these steps:

After generating the authentication code, copy it to the clipboard and provide it to the zpkg publisher to bind the device to the zpkg file.
2.2.2: Auth-Code Binding
The zpkg project publisher binds the device authentication codes provided by users to zpkg. The procedure is as follows:

The zpkg file containing the device authentication code is sent back to the manufacturer for loading onto the device during production. The device permits loading only once; after loading is complete, the authentication code becomes invalid and the same zpkg file cannot be reloaded.
3: How do I load a zpkg into the Writer?
The process of loading a zpkg file onto the programmer and the process of loading a pkg file onto the programmer are demonstrated in the animation below:

4: Additional Notes
- The zpkg file containing the binding authentication code typically also requires synchronized configuration of the offline programming count limit; otherwise, the intended count control effect cannot be achieved.
- When burning the zpkg file with the binding authentication code online using the factory mode:
- If the programming count limit is enabled, online programming in factory mode will be disabled, and only offline downloads will be permitted.
- If the programming count limit is not enabled, online programming in factory mode will verify the device's authentication code. Devices that fail verification will be unable to undergo online programming.