One project with different resource files for different builds - Advanced Installer Community
AdvancedTom
Posts: 6
Joined: Wed Aug 28, 2019 4:08 pm

One project with different resource files for different builds

Hello experts,

I need some help with my project.

Following scenario:
I have one project and I want to create multiple builds, so far so good. But I want different resource files for each build.

One file should be changed in each build, i.e. for build A is file A and for build B file B is needed and so on and so on.

Unfortunately the build events doesn't work for me, because the path of the file I want to change for each build can be changed during the setup, so I need a variable for a file copy.

I can search successfully for the path in the registry, but if I use a search property as a argument variable for a build event, it is always empty.

Here is an example for my search in the registry: (I get an result as expected)
search_success.jpg
search_success.jpg (78.66 KiB) Viewed 8723 times

But if I try to use it as an argument in a build event, it returns nothing:
build_event.jpg
build_event.jpg (57.59 KiB) Viewed 8723 times

What am I doing wrong?
Is it possible to create such an project as I want, or am I totally wrong?

Hope you understood my problem and I hope you can help me.
Thank you for everything.

Greetings tom
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: One project with different resource files for different builds

Hi Tom,

To achieve what you want you should just use the "Files and Folders" section of your setup project. Just add a file in "Files and Folders" page. Then double click on the added file and use the "Edit Source Path per Build" hyperlink option.

If this does not help you just give us more details about your requirement.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AdvancedTom
Posts: 6
Joined: Wed Aug 28, 2019 4:08 pm

Re: One project with different resource files for different builds

Oh Jesus, that was easy. That's it!
Thank you so much for your help and please excuse my stupid question.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: One project with different resource files for different builds

You are always welcome and don't even worry about that Tom!

Do not hesitate to post your questions anytime we may have a doubt.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: One project with different resource files for different builds

You are always welcome Tom.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”