Skip to main content

Zip a File Step

You can Zip a file in the Run Tool by making use of the external program step and the built in archiver: TAR.exe.

We use this step to zip the Data Sync installer during the build process.

To be able to zip a file you will need to add it as a step to your project. To do this click onto the Add Step button and select Run External Program from the list. Enter in a name for the step and click OK.

External Program

Configuration

This will open the configuration window. To zip the file, click onto the zipped file icon to pre-fill the fields with the default configuration and then edit the parameters as you need to. Once you are done, click OK to add the step.

Configuration Zip File

ParameterDescription
ProgramThe external program file to be run. For this example we need tar.exe
Program ArgumentsAny arguments to apply to the program. To zip a file you need -a -c -f and then the name to give the zipped file and the file to zip. You can use a wildcard for the file to zip.
Working DirectoryThe path to the directory where the program is stored. Click onto the ellipsis (...) to browse your directory to find the program or use the built in setting {{SolutionPath}}.
Hidden WindowSelect the checkbox to start the program in a hidden window.

The step will then be added to the bottom of your project and you can move this to where you need it to be, set the run condition and save the project.