简体   繁体   中英

Inno Setup: Change file description

I'm using Inno Setup 5, and to enbody an customizable.exe file, it's name is changed in the [Files] section using the parameter DestName . But, we're talking about an.exe file.

I noticed that when it's running, the name in Task Manager is the old file name, the DestName parameter only changes it's actual name, not the file Description , which is shown in Task Manager. Somebody has had any experience like this?

I'm using Windows 10, running as administrator (if makes any difference).

The file description is a part of the file header.

You cannot change it easily. It's possible. But only with unsigned binaries. Changing a description of a signed binary would invalidate the signature, as any other change would. And nowadays all binaries should be signed.


If you sign the binary as part of the installer build, you can modify the description before that. You can use Resource Hacker command-line. There are various way to invoke a tool like Resource Hacker as part of the installer build:


For an example on how to use Resource Hacker to modify a binary description, see Inno Setup change Task Manager Description for Setup.tmp – It's about a manual modification, but you will need some of the information even for your automated (command-line) modification.


Though I believe that way easier is to automate and customize your application build process, so you can easily produce the binaries with custom description, instead of hacking it into the installer build process.

[Setup]: VersionInfoDescription

Default value: " AppName Setup" if AppName doesn't include constants, an empty string otherwise

Description: Specifies the file description value for the Setup version info. This setting has no effect if UseSetupLdr is set to no .

Code Sample:

VersionInfoDescription = "This is my awesome app description"

There is a solution I found. Go to the direction of Inno Setup, then open Default.isl file. This file includes all setup descriptions & other components. You can open this file with any text editor, then press Ctrl + F and search for whatever you want to change. After you saved this file, compile your setup file and execute it again. My description was already changed. There is an example I did previously.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM