Add/Remove Programs Icon file and TFS build

Having trouble running Advanced Installer? Got a bug to report? Post it all here.
Post Reply
pcservtn
Posts: 5
Joined: Thu Apr 25, 2019 3:57 pm

Add/Remove Programs Icon file and TFS build

Post by pcservtn » Thu Apr 25, 2019 4:10 pm

I can't figure out how to configure my Advanced Installer project to use an icon file for Add/Remove Programs when I build on our TFS Build server.

I can add the icon file and build fine on my Visual Studio machine because the file is on the local disk. But, I can't figure out how to get that file to be included in the project in a way that I can add it to source control so that it can be found by TFS Build as well?

Appreciate your help,

Jeff

pcservtn
Posts: 5
Joined: Thu Apr 25, 2019 3:57 pm

Re: Add/Remove Programs Icon file and TFS build

Post by pcservtn » Thu Apr 25, 2019 8:48 pm

I think I figured this out on my own. In case anyone has this question in the future, here was my problem and the solution.

In Visual Studio, the Advanced Installer MSI project cannot have "New Items" or "Existing Items" added to it. So, its not like any other Visual Studio projects that I am used to working with. You just can't add any items to it other than the ones it adds itself. It basically has just a single item (the .aip file) and one or more references. It appears that is all that will ever show up for the project in Solution Explorer.

I needed another item (the Add/Remove Programs icon file) added to the project, so on the file system, I created a folder named "Media" and put my icon file in it. Then, I used the Advanced Installer Visual Studio extension's "Product Details" tab to browse to the icon file. This works for building the file locally, but not on TFS because the file is not in source control yet.

The secret was to look in the "Excluded Changes - Additions" section on the Pending Changes page of Team Explorer. In there was the icon file, which I selected and "Promoted". This caused it to be added to TFS Source control, even though you still don't see it anywhere in Solution Explorer in Visual Studio. (Seems like the Advanced Installer Visual Studio extension should at least show it in Solution Explorer since it is an artifact of the project, but it doesn't).

Then, my TFS build succeeded because Advanced Installer could find the icon file since it had been uploaded to source control.

In general, I think the Advanced Installer documentation and YouTube videos are a little lacking when it comes to using Advanced Installer's Visual Studio extension. Maybe Advanced Installer is not used that much with Visual Studio and that is why there isn't a lot of documentation.

In my case, I got sick of trying to figure out a previous developer's Wix-based installer and am trying to migrate to Advance Installer because it has a GUI. It does have good documentation on the main Advanced Installer software, but not enough for the Visual Studio extension. So, some better documentation would have been helpful. I think I have most of it figured out by trial and error now, though.

Daniel
Posts: 7849
Joined: Mon Apr 02, 2012 1:11 pm
Contact:

Re: Add/Remove Programs Icon file and TFS build

Post by Daniel » Tue May 07, 2019 2:21 pm

Hello and welcome to our forums,

Thank you for giving Advanced Installer a trial and we apologize for the delayed answer.

Indeed I can confirm you that to resolve the requirement you had it is necessarily to add in your TFS source control environment the icon file to the same path relative to your setup project file (.aip file) as it is currently on your current machine.

In what regards the user guide articles and video tutorials about how to use our VS Extension, we already are working on this and hopefully we will manage to enhance our help resources.

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

Post Reply