Importing Visual Studio solution. Files not found - Advanced Installer Community
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Importing Visual Studio solution. Files not found

I've imported a Visual Studio 2010 solution into the winforms version of AI 14.2 for testing, with defaults and no settings changed except for the AI project storage folders.
I selected the release version of my solution.
Ive attached a screen shot of a page of the initial list of files picked up by AI. It can't find most of the files. The same happened when I attempted to import from my original setup.exe but I sorta expected that.
As you can see the physical source of these files claims to be the AI directory rather than the solution directory.
Am I missing something?

I've also found that I can't create an AI installer extension project within Visual Studio. If I create the project and it attempts to scan the solution file then VS freezes for many minutes then crashes with an out of memory exception. I'm assuming that it needs updating to match the new desktop version 14.2. I checked to see if there was a script file within the extension files but didn't find one.
import.png
import.png (181.53 KiB) Viewed 4301 times
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Importing Visual Studio solution. Files not found

I had created another AI project on the solution path, (AI visual studio extension 13.6) this was the one that froze when I tried to add files from my solution and had an out of memory exception. So when I opened visual studio there were no files in the AI project.
So I copied the aip from the project that was located on a temp folder (AI application 14.2) which had my list of files, (but with the missing files paths above), and replaced the VS solution aip file within the AI project.
When I opened the AI project within visual studio, the list of files were able to resolve ok.
So I'm guessing that the temp folder located AI project was attempting to resolve file paths relative to the solution rather than the project on the temp folder.
It would be nice if there were a configuratble option that offered up the root that the AI project used for finding files so this could be edited if something was obviously incorrect.


Argh, sorry. I was wrong. I thought they're resolved but they used a bastardized mixure of both paths. Ill go look again. Ive found an edit source path option.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Importing Visual Studio solution. Files not found

Hello,

First of all I can confirm you that you should always make sure you use the same version of our Visual Studio extension as the current installed Advanced Installer version (desktop application).

In what regards the wrong resolved paths of your application files, I'm not so sure why this happens. It will be very useful if you could replicate the issue into a small test buildable solution and send it us to support at advancedinstaller dot com so we can fully test and investigate this on our side.

Also, please try to use our Visual Studio extension to create from scratch from Visual Studio an Advanced Installer setup project and add in the setup project the application project outputs and see if this works as expected.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Importing Visual Studio solution. Files not found

Hi. I just went thro the aip file and changed all the file path references.
The reason Im looking at AI is because Im stuck on visual studio 2010 and Im trying to find an alternative for our old installer. I can't update VS from 2010 until I find a replacement for the old setup project.
Advanced installer VS2010 extension is only being supported up to 13.6. So I can't import it into there.
Fixes to the desktop version allowed me to import the solution (as there was a bug fix for my original problem). But the path references were wrong for many of the files, even in the desktop import.
I switched out the VS extension aip file for the desktop version of aip file, then fixed the references manually. It's all built properly and the installer works :D
(Just need to work out web installer methods then I can clean it all up. Just hoping the trial lasts long enough for me to prove to the boss it's worth buying)
thanks for all your help
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Importing Visual Studio solution. Files not found

You're always welcome.

Thank you for giving a trial to our product. If you need to extend your trial period just write us a quick email to support at advancedinstaller dot com and we will send you a trial extension you could apply on your machine.

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

Return to “Common Problems”