dbeukers
Posts: 14
Joined: Tue Oct 27, 2015 12:32 am

building debug and release versions of installer

I want to create an installer with debug and release builds, using the corresponding debug and release files produced by Visual Studio. This would appear to require including two files with the same name but different paths. AI does not appear to allow this, complaining that the filename already exists. Is there a way to accomplish this within AI?
I could probably have the VS projects copy the output from the current build to a common directory as a post-build event, and have AI get the files from there, but that seems like a kludge -- there should be a better way.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: building debug and release versions of installer

Hello,

In order to achieve this, please follow the steps from the How to install two files with the same name in the same folder? article.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dbeukers
Posts: 14
Joined: Tue Oct 27, 2015 12:32 am

Re: building debug and release versions of installer

Actually, I had previously found (and forgotten about) another method that seemed to be more what I wanted. This involves selecting the file in the the Files and Folders page and selecting Properties from its context menu. In the resulting Edit File dialog, select Edit Source Path Per Build.... The new dialog then shows the already configured Default Source Path. Under Per Build, the non-default build can be selected, then Use specific path, and an alternate path can be selected.
I had previously used this method for some of the files, but had missed other files that needed to have alternate paths per build.
I am not sure how I stumbled across this the first time, but I had trouble finding it again. It appears to do what I wanted. The difficulty in using it is that it is hard to tell what the file source actually is. The ability to adjust the Physical Source list in the Files and Folders page according to build (adding the ability to select a build) would be very helpful. Can we consider this an enhancement request, or do I need to repost it under that forum?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: building debug and release versions of installer

Hello,

First of all I'm glad you got this working by yourself.
The difficulty in using it is that it is hard to tell what the file source actually is. The ability to adjust the Physical Source list in the Files and Folders page according to build (adding the ability to select a build) would be very helpful. Can we consider this an enhancement request, or do I need to repost it under that forum?
There is no need for a new topic with this request. However, before adding any requests on our TODO list, I need to make sure I fully understand your scenario.

In the Files and Folders page, you would like to have a new column called Builds and be able to see/list the files from each build. Is this correct? Please correct me if I misunderstood your scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dbeukers
Posts: 14
Joined: Tue Oct 27, 2015 12:32 am

Re: building debug and release versions of installer

That would do. I would assume that the list could be sorted by that column (as all columns currently are), so that files for each build would be grouped together. A further enhancement that would be helpful, especially for large projects with multiple builds, would be to be able also to filter the list so that only files for a selected build (maybe including any files common to all builds?) would be displayed.
Thanks for your help.

Return to “Building Installers”