Duplicate files in file list - Advanced Installer Community
mrichardson
Posts: 5
Joined: Mon Aug 12, 2013 8:55 pm

Duplicate files in file list

I am evaluating your application to decide whether or not to use/purchase it for our company. I am currently in the middle of the trial period and am attempting to create a installer for a currently existing Visual Studio 2010 solution. When I create the AI project in the solution it automatically adds the Output files to the Files and Folders. However, we are using a couple of third party tools (Infragistics and TXTControl) and need to make sure those dependency files are included as well.

I open the AI project in the Advanced Installer application for editing and use the Import solution option to try to import the current solution in order to detect and include the dependency files I need. I select one configuration to import and then I check the dependency files I need from the the list of Reference Files in the Detected Files screen. I also notice duplicates of the Output files in other directories showing up in the Reference File list but I ignore them.
AI0.jpg
AI0.jpg (451.65 KiB) Viewed 9217 times
Next I accept the default shortcut and project folder options. The import process completes with no errors. However, in the Files and Folders section there are now multiple copies of all the Output Files from other directories that were not listed in either copy of the files from the detected files section (Output or Reference). There is also now a second copy of the EXE file listed.
AI1.jpg
AI1.jpg (459.59 KiB) Viewed 9217 times
Is this a bug or is there something I am missing? I would like to be able to get the dependency files detected and imported into the installer and have it so that they will be automatically updated when we have to change versions of the 3rd party tools. Is this possible? If so, then how do I go about it? Thank you for your help.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate files in file list

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why this happens. Can you please send us your Visual Studio projects files to support at advancedinstaller dot com so we can investigate them? Also, you can try to isolate the behavior in a sample and send it us so we can investigate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mrichardson
Posts: 5
Joined: Mon Aug 12, 2013 8:55 pm

Re: Duplicate files in file list

When you say "Visual Studio projects files" do you mean the Advanced Installer project and its contents or all the projects in the solution?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate files in file list

Hello,

I mean the Visual Studio solution and projects files. You can send us the Visual Studio solution and projects without the source files so we can try to reproduce and investigate this. Please send them in the same folder structure you have them on your hard drive. Also, you can try to isolate the behavior in a sample containing Visual Studio projects with dummy files and send it us so we can investigate.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mrichardson
Posts: 5
Joined: Mon Aug 12, 2013 8:55 pm

Re: Duplicate files in file list

Sorry for the delay. I have been out of the office for the past week. Attached to this message is a zip file containing the files you requested. Thank you for the help.
Attachments
Source.zip
(58.82 KiB) Downloaded 268 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate files in file list

Hello,

Please give us some time to investigate this and we'll get back to you as soon as we have a conclusive answer. Until then, can you please try to import your solution in a new AI 10.3 project (using our "Visual Studio Application" project template from Advanced Installer "Start" page) and tell us if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mrichardson
Posts: 5
Joined: Mon Aug 12, 2013 8:55 pm

Re: Duplicate files in file list

The duplicate files do not appear in the project created by using the template in the Advanced Installer application itself. However, I need to be able to hook this project up to my Visual Studio solution in order to maintain the latest files and references so that they are always updated and included when it is time to make a new upgrade/version.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate files in file list

Hello,

I've tested your scenario in a new Advanced Installer 10.3 project added to your Visual Studio solution, but I cannot reproduce the behavior. Can you please try to add (in Visual Studio) to your solution a new AI 10.3 project and see if the behavior still persist?
However, I need to be able to hook this project up to my Visual Studio solution in order to maintain the latest files and references so that they are always updated and included when it is time to make a new upgrade/version.
In order to achieve this you can try to add a new AI project to your Visual Studio solution, and then use the [Edit in Advanced Installer] button to open the project in Advanced Installer. Then you can import the VS solution in order to add the required referrence files.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mrichardson
Posts: 5
Joined: Mon Aug 12, 2013 8:55 pm

Re: Duplicate files in file list

Here is what I have done:
1) Add new AI Project to solution

2) Edit new project in Advanced Installer

3) Import the VS Solution in order to add the reference files.
AI2.jpg
AI2.jpg (97.67 KiB) Viewed 9118 times
4) Selected the x86 Debug configuration to import. Clicked Next.
AI4.jpg
AI4.jpg (32.37 KiB) Viewed 9118 times
5) Selected the files I needed from the Detected files list.

6) The Create shortcut dialog was left as defaulted.

7) The General configurations dialog was left as defaulted.

8) The Import Wizard finishes successfully.

9) The Files list still has multiple copies of the output dll's and the exe.
AI10.jpg
AI10.jpg (263.9 KiB) Viewed 9118 times
Once I have an Advanced Installer project in my solution with the files I want in it do I have to reimport each time one of the dlls changes? For instance when the Infragistics tools change do I have to do a reimport or will the references in the AI project be automatically updated with the new version of the Infragistics tools I have replaced in the rest of the solution?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate files in file list

Hello,
9) The Files list still has multiple copies of the output dll's and the exe.
Unfortunately, I cannot replicate this behavior. I'll open a ticket in our bug tracking system and we'll try to further test and investigate this on our side. I'll let you know if we will find a resolution for this. However, as a workaround you can manually remove the duplicate files from our "Files and Folders" page.
Once I have an Advanced Installer project in my solution with the files I want in it do I have to reimport each time one of the dlls changes? For instance when the Infragistics tools change do I have to do a reimport or will the references in the AI project be automatically updated with the new version of the Infragistics tools I have replaced in the rest of the solution?
No, the related referrence files should be automatically updated every time they change as long as they reside in the same output location.

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: Duplicate files in file list

Hello,
9) The Files list still has multiple copies of the output dll's and the exe.
After further investigation this behavior seems to be caused by an Advanced Installer limitation. An improvement regarding this will be added in a future version of Advanced Installer. Thank you for bringing this to our attention. We'll notify you when this will be available.

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: Duplicate files in file list

Hello,

This was fixed in version 10.7 of Advanced Installer released on November 11, 2013. Also, we have included support in our VS extension to add application references directly within your Advanced Installer project in Visual Studio.

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

Return to “Common Problems”