Include file with varying filename (version in name) - Advanced Installer Community
csoltenborn
Posts: 9
Joined: Wed Nov 20, 2019 1:05 pm

Include file with varying filename (version in name)

Hi,

I'm creating two installers for a client/server scenario. Now, the server installer file will include the client installer file and install it on the server system (for the sake of providing it for download). However, currently, my installer files are named Foo_Server_[|ProductVersion] and Foo_Client_[|ProductVersion]. Thus, I first run the client installer build, resulting in a file Foo_Client_1.0.0.exe (I'm not building msi files). The server installer is built using the same ProductVersion (i.e., 1.0.0 in this example). How I can I include the client installer file into the server installer file, given that its name changes with each ProductVersion?

Thanks in advance,
Christian
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Include file with varying filename (version in name)

Hello Christian and welcome to Advanced Installer forum,

I am not quite sure I understand your scenario here. Could you please give me some more details so I can better understand it?

You mentioned that you have two project. Do you have separate .AIP files for each project (e.g. an AIP file for the client project and one for the server one)?

If this is the case and you want to add the installer of your client build in the server project (.AIP file), you can maybe proceed like this:

- go to "Files and Folders" page

- right lick on "Application Folder" --> "New folder" --> "Regular"

- rename the folder to something specific, such as:

Client_[|ProductVersion]

- right click on the above created folder --> "Properties" --> "Synchronize" --> enable the "Synchronize content with folder from disk" option and in the "Source folder" field, please use the folder where your client product is built.

Basically, the Synchronized Folders functionality from Advanced Installer allows you to create a synchronization link between a folder located on you hard-drive and one created in your project. This means that every time a project is open, built or you press the [ Refresh ] button in the Files and Folders page, the content of that folder is synchronized to the content of the source folder on disk.

Hope this helps.

If this is not what you were looking for, please provide some more details so I can better understand your scenario.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
csoltenborn
Posts: 9
Joined: Wed Nov 20, 2019 1:05 pm

Re: Include file with varying filename (version in name)

Hi Catalin,

thanks for the hint - this appears to work in general. We will investigate further whether this is worth the effort, or whether we will jus omit the version indicators from the installer file names.

Cheers
Christian
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Include file with varying filename (version in name)

You are always welcome, Christian.

I'm glad I could help.

Just let me know if you have any other questions and I will gladly assist.

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

Return to “Common Problems”