EN RU
Log in
Home
Download
Purchase
Documentation
Support
Contact us
 
Help  /  Examples & tips

How to customize the setup executable file

How to use version number in the file name

As you know, you can specify the name of the program executable file in the Project - Program Details - Version. In this case, the installer will automatically detect the version of the program and assign it the variable ver, which you can use during the installation process. But what if you want to specify the version number in the setup file name, for example, setup-1.0.1.exe. You can't enter setup-#ver#.exe because variables like #variable# are only defined during the installation process. Use the global variable $ver$, it is automatically replaced by the current version of the program that is listed in the Version. For example, you can define Project - Output - Setup Executable Filename like

setup-$ver$.exe
mysetup.$ver$.exe
Version
Version

Setting the file timestamp

Let's complement the previous point another undocumented feature. If you specify the executable program file in Version parameter, CreateInstall can automatically set the file timestamp of the setup file the same time as the program file has. It is enough to define a global variable timestamp and assign it to 1. You can do this in the Project - Preprocessor page.

Preprocessor
Preprocessor
Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.
  • Help
    • Introduction
    • Get to know CreateInstall
    • Compare installers
    • License Agreement
    • License Light
    • License Free
    • Program features
    • Command Reference
    • FAQ
    • Examples & tips
      • Customizing setup.exe
      • Example of use of the dialog function
      • Global and local variables
      • How to manage the reboot
      • How to use conditional statements
      • How to use the command Dialog - Settings
      • How to wait for an event
      • Relative paths in the projects
      • Tracking exit
      • Functions for variables
      • One project for many applications
      • Open shortcut folder
    • CreateInstall Assistant
    • Problem solving
    • Setup Extractor
Copyright © Novostrim, OOO, 2009-2026 All rights reserved.