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

Visual Studio adds folders and files back into my AI project

I have a VS solution with AI as one of the projects. Whenever I build my solution everything is successful but VS adds a folder as a subdirectory of the Application Folder and adds a config file to my Application Folder. Neither of these are desired or required. What is more I think that they cause my installation to bring up an error when installing ("RESULT: 0×80131043"). This suggests that the installer was having difficulties registering files to the GAC. All of the files in my application folder get registered to the GAC but I don't want the config file or the sub folder to remain. When I look at the Assemblies area I can actually see that the config file has been added too in order to be registered and that would explain why it is failing. (It gets added along with the main DLL as AI_PROPPATH_FILENAME_PERBUILD_MyComponent.dll. Under the assembly properties there are AI_PROPPATH_FILENAME_PERBUILD_MyComponent.dll and AI_PROPPATH_FILENAME_PERBUILD_MyComponent.dll.config. I am not sure why it is showing AI_PROPPATH_FILENAME_PERBUILD_MyComponent.dll and not simply MyComponent.dll)

When I delete these extra components and build the installer from the AI environment everything works fine. I have not noticed this with any other VS solution.

Thanks

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

Re: Visual Studio adds folders and files back into my AI pro

Hello David,

Currently, this is our default implementation for our Visual Studio Extension. When a new Advanced Installer setup project is added to your VS solution the output folders of your solution's projects are added as sub-folders of the "Application Folders". If you want to edit the added files and folders then (as you already noticed), you can edit the setup project in Advanced Installer. However, please keep in mind that every time when you build your VS solution the .aip (project file of the Advanced Installer setup project added to your VS solution) will be synced with your solution's projects output folders. Therefore the related sub-folders and files will be added again to your project. As a workaround you should edit the AI setup project in Advanced Installer based on your needs and, then save it under a different name so it will not be synced at VS solution build time.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hank3006
Posts: 2
Joined: Mon Jul 07, 2014 4:34 pm

Re: Visual Studio adds folders and files back into my AI pro

Daniel, I have the same problem with the visual studio plugin adding unwanted project output to my advanced "Files and Folders" Tab under "Target Computer\Application Folder". Your workaround does not make much sense to me. You are essentially telling us not to use the visual studio plugin because it will add unwanted projects to our advanced installer project. How do we disable auto sync?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Visual Studio adds folders and files back into my AI pro

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Unfortunately you cannot disable the sync operation, which is done at build time, in our Advanced Installer extension for Visual Studio. Currently, this is our default implementation and it cannot be changed. Maybe we'll consider such an improvement in a future version of Advanced Installer, thank you for your suggestion. Until then, as a workaround is to edit and build the .aip (project file) directly in Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hank3006
Posts: 2
Joined: Mon Jul 07, 2014 4:34 pm

Re: Visual Studio adds folders and files back into my AI pro

Thanks for the reply. Where is the best place to submit feature requests? I can understand sync'ing on the first run of the extension but running it every time is a problem. The biggest problem is that it runs even when you right click the aip and then open in ai. My problem with ai's default configuration is that it is making changes to my aip without even asking the user if it is ok. It blindly makes the changes and never lets the user know anything happened.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Visual Studio adds folders and files back into my AI pro

Hello,

If you want to submit a feature request you can do so on our "Feature Requests" forum branch.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udonmez
Posts: 16
Joined: Thu Feb 14, 2013 12:06 pm
Location: Ankara

Re: Visual Studio adds folders and files back into my AI pro

This property is totally nonsense.
It should be optional and after upgrade our project to all of our projects had been included all related referenced outputs.
Every time we are to delete all files under the Application Folder. For the build sequence(last build on AIP) we should referenced all projects to AIP project and ex. when we open the Application Folder directory we are seeing 40 folder.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Visual Studio adds folders and files back into my AI pro

Hello,

To remove a project output added in "Files and Folders" page of your Advanced Installer setup project you should proceed like this:
1. open your Visual Studio solution in Visual Studio
2. open your AI setup project in the solution
3. go to "Files and Folders" page and using the [Add Project Output] button uncheck the unwanted project in the list
4. save the project

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

Return to “Common Problems”