We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Building with different Visual Studio Configurations

I would like to make use of the different build configurations that exist in Visual Studio. I have a release configuration and a demo configuration. How can I specify the files to be added in AI so that they look at the correct build configuration? That is they should have dynamic paths which change between release and demo depending on the active build configuration. I cannot really see how to create different builds in AI other than the default (although I have seen an AI project with different builds when I once imported a VS setup project into AI).

Thanks

David
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Building with different Visual Studio Configurations

Hello David,

In order to create a new build, you can go in the Media page and use the [New MSI Build] toolbar button. Please note that when creating a new build, by default it contains all project resources and has the default project settings. In order to customize it you have the option to exclude various resources.

In order to include a feature that contains components that are specific for a build, you can go in the Organization page, select the related feature and edit its properties in the “Build” pane in order to include it only for specific builds.

Please let us know if that helped otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Building with different Visual Studio Configurations

Thank you. That does help a bit.

I guess my question was also if I have paths that look like this:

c:\Projects\MyProject\bin\Release\MyAssembly.dll

This would be specific to the release build.

However when I build the application in VS specifying a different build the output will go to a different folder:

c:\Projects\MyProject\bin\Demo\MyAssembly.dll

Is there a way of, rather than specifying the file twice, just making the "Release" or "Demo" part of the path dynamic depending on the build.

I hope that explains what I would like to do.

Thanks

David
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Building with different Visual Studio Configurations

Hi David,

Please note that when these builds have been created in Advanced Installer(Release-build and Demo-build) then also will be created in Visual.

Just select in Advanced Installer for the Release configuration the Release build. Make the same thing for the other build.

This should ensure that the output will be in the right build.

Please let us know if that helped otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”