aho
Posts: 58
Joined: Thu Jul 21, 2016 4:38 pm

Change File Attributes of the Setup Wizard

Hi,
I want to change a file property of my setup.exe.

An installer property shall be changed with the SetProperty command ( https://www.advancedinstaller.com/user- ... perty.html ).
The value of the installer property shall be written to the ProductVersion oder FileVersion Property of the installer.

Note:
I already use the "Set version from file" function. So ProductVersion and FileVersion are set to the version of the configured file. Later I want to overwrite (f.e. ProductVersion) with the value of the installer property.

How can this be done?

Thanks,
Andreas
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Change File Attributes of the Setup Wizard

Hello Andreas,

If I understand this correctly, you want to overwrite the Product Version of your setup (please correct me if I'm wrong). To do so, you can take advantage of the "Set Version" command. Please have a look on our "Set Version Command" article for more information about this.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aho
Posts: 58
Joined: Thu Jul 21, 2016 4:38 pm

Re: Change File Attributes of the Setup Wizard

Hi Catalin,
thanks for your reply. I think my explanation was not good.

I want to put information from our build server into the setup.exe file as a file attribute.
I do not want to change the ProductVersion of the MSI package.
This information from the build server can also contain characters - not only numbers.

Have a look at this screenshot:
2019-09-11 17_23_03-exe properties file description - Google-Suche.png
2019-09-11 17_23_03-exe properties file description - Google-Suche.png (16.61 KiB) Viewed 9401 times

The best solution would be if I can change the file description of my setup.exe.

Is this possible?

Best regards,
Andreas
aho
Posts: 58
Joined: Thu Jul 21, 2016 4:38 pm

Re: Change File Attributes of the Setup Wizard

Any ideas?

Best regards,
Andreas
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Change File Attributes of the Setup Wizard

Hello Andreas,

First of all, please accept my apologies for the delayed reply (I had 2 days off last week and we also do not work over the weekend).
The best solution would be if I can change the file description of my setup.exe.
In order to change the "File Description" attribute of your setup.exe, you can proceed as it follows:

1. go to "Builds" page

2. under the "Output" section, click on the "Customize EXE metadata"

3. there, you should be able to customize your setup attributes

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”