ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

VS2010 Installer

Hi,

since MS no longer supports setup project I'm looking for an alternative product.
So please let me explain first what I do in VS2010.
I have a solution with several projects - on (the primary) is a WPF application (MyApp).

Now I do the following:
. Add new project - VS Intaller Setup-Wizard
. Choose Windows Installer
. Choose "Add primary output from MyApp"
--What I get so far is a list of needed files (my assemblies form the other projects, MyApp.exe, MyApp.exe.config)
--AND (important) a dependency (MS .NET Framework 4.0) with http://go.microsoft.com/fwlink/?LinkId=xxx aas install URL
--ALSO Author and Manufacturer are preset
--Next I create a folder under Programm Menu and add a shortcut (choosing one of the exe files icons as icon)
--Choose AddRemoveProgramIcon (also browse for the exe file)
--Change "RemovePreviousVersion" to true
--Now I add an extra File (a copy of MyApp.exe.config) add it to the Appllication Folder and set PackageAs "vsdpaLoose"
--Last not least I add a banner JPG file and edit the dialogs
DONE

What I get is
--a.) A setup.exe
--b.) an MSI file
--c.) an extra (unpacked) MyApp.exe.config file

When I build the setup - and it checks the needed assemblies (also if I add a new / different one to the solution) and builds a setup.
Of course in debug / release.

So what I wanted to do now is the same thing with VS2012.
Since there is no installer project I choose AI.

Add new project AI 10.0 Installer...
What I get is an empty project (although the help says "When adding an Advanced Installer project to a solution it will automatically import the build output from existent projects located in that solution").
"Redo Import" is also not working.
Anyhow - I open the setup in AI and import it.
I get 4 options - x86 debug, any cpu debug...
After import (and selecting all 4 configurations) I get by the way x86_debug and x86_debug_1 (everything doubled).
Also I get the exe placed in the application folder.
AI does not find the MyApp.exe.config...

I can add the file manually - and AI detects it is an XML file.
Property editing is possible (althoug strange since Attributes shows "Name" and "serialize as" - the value is displayed as text).
It seems as if AI just is able to read XML without knowing .NET setting files.
Anyhow - this doesn't matter here.
BUT - when I later add a property (so the XML is changed) AI doesn't detect this!!!!

Lets resume what I got so far:

An installer - no dependencies checked.
A shortcut - with no Icon chooseable from the destionation file system.
--I can choose a "source" file - but since it depends on ..\bin\debug\MyApp.exe... I'm not sure if it will work with release too.

Next I add (hoping not making a mistake) the dependencies.
This first includes .NET 4.5.
What I get is "...was added with an example URL..." - ok, I figure out a correct URL an change it. (.NET 4.5 isn't that new - why not include a correct URL like for older versions)
Furhter I had to add a launch condition.

What I got so far is almost the same as I got with VS.

I'm missing the "MyApp.exe.config" as extra file next to Setup.exe and MyApp.msi.
I messed around a bit - all I found was a solution where I get
--Setup.exe
--Setup.msi
--DISK1
---Cab1.cab
----MyApp.exe.config

So my questions (after lenghty telling my first experiences) is, how do I achive the VS Setup solution (similar result) with AI?

Currently missing:
a.) automatically dependency / prerequisite checking
b.) add some files "lose / uncompressed" to the MSI (without getting subfolders and cabs)
c.) automatically check / find new dependency files when the VS project changes
--I thought "rescan" would work - but it has no effect in VS2012 (also there is no "initall" import)
d.) automatically check ("rescan") changes in ...exe.config
--maybe this works if I choose "add as normal file" and not as XML??
e.) choose "install for Everyone" in the setup dialog
--also default with VS generated installers (I can even "preset" ist)

I simply can't beleave, that such a simple thing which can be done with the free VS 2010 Installer can't be done with your product.
I just guess I have to get use to your product - and I hope someone can help me with this.

A last thing - I guess (in your dialogs) "Company Name" stands for "Manufacturer" and "Contact" is Author?

Thanks in advance
Manfred
Paulo
Posts: 6
Joined: Tue Mar 26, 2013 9:16 pm

Re: VS2010 Installer

Hi,
I am also having the same issues with the visual studio integration in VS2012. In the documentation it says
Import Visual Studio solutions in your installer project
When adding an Advanced Installer project to a solution it will automatically import the build output from existent projects located in that solution. If later more projects are added or the current ones are modified and you want to include them in your install package, a new import operation must be performed.

Select the project .AIP file from the "Solution Explorer" and from the context menu use the “Redo import” option.
This does not happen and no projects in my solution ever get added to the installer. Could you please confirm if this is a bug or support for VS2012 is not in Advanced Installer yet.

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

Re: VS2010 Installer

Hello,

We currently perform a major refactoring for our Visual Studio extension and this may cause some unexpected behavior. Please give us some time to investigate the reported issues and we'll get back as soon as we have a conclusive answer.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Re: VS2010 Installer

Hi Daniel,

in the VS Addin is a "Redo Import" menu item (which doesn't work).
How to do a "Reimport" in the AI main UI?

If I do this by "Import VS..." I get new Build items (x86_Debug_1 and so forth..).
What I expect / want is that the existing ones are updated.

By the way - I uninstalled V9.x to install V 10.0.
Doing this I was redirected to you site to give an "uninstall reason report".
I did this....

About an hour later I got an email from you (Daniel) - which was very informational.
All my issues (except the VS addin) are solved.
Everything I needed (was asking for) is possible.

So my want to use this platform to say THANK YOU FOR THE EXCELLENT SUPPORT!
I'm a happy Telerik customer for a lot of years.
It all started like here - I need a solution, test something - and more or less "fail a bit".
Then I got support answers solving my problems.
Just like you did in your email.

Every product has its pros and its cons.
But most important is to get the things done - and this most of the time is a matter of support quality.
Yours is great!

Thank you
Manfred
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: VS2010 Installer

Hi Manfred,

I'm afraid there is no option to reimport the solution in the main GUI of Advanced Installer. I've added this on our TODO list, if other users request it we shall surely implement the support.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Re: VS2010 Installer

Hi Bogdan,

this feature is not that important -- but since VS integration is not working I guess it is the only one possible.

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

Re: VS2010 Installer

Hello Manfred,
Add new project AI 10.0 Installer...
What I get is an empty project (although the help says "When adding an Advanced Installer project to a solution it will automatically import the build output from existent projects located in that solution").
Indeed, this was a bug in our latest versions of Advanced Installer. A fix for this issue was implemented in our next version (10.1) of Advanced Installer which should be released until the end of this week.
"Redo Import" is also not working.
I've tested your scenario, but I cannot reproduce the behavior. Can you please give us a detailed step by step test case scenario so we can try to reproduce and investigate this?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Re: VS2010 Installer

Hi Daniel,

since VS Integration didn't create a working solution I'll wait for 10.1 to test this further.
I just hope my Trial will run Long enough...

Manfred
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: VS2010 Installer

Hi Manfred,

Advanced Installer 10.1 was released on May 2, 2013. You can try it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Re: VS2010 Installer

Hi,

I now use 10.5.2 Build 52901.

Reimport - seems to work - and files are automatically scanned.
So far so good - BUT...

As I wrote before I came from VS2010 Setup project.
There dependencies are automatically scanned, the needed files are included an so on.

With AI I get the following situation.
.NET FW is not detected automatically
All files from the output folder have to be selected manually (or are included automatically).
Automatic inclusion also includes XXXX.vshost.exe, XXXX.vshost.exe.config
Further PDB files are included.
Also XML Files from third party assemblies if the are in the output folder.
--I can exclude XML files from the folders property
--This becomes a problem (or lots of work) if I have additional XML files needed in the installation as well.
--"My workaround" - (I found no "exclude this file" in context menus) - exclude all unneeded file in filter by adding each as "full name wildcard".

All of this is not a stopper - but the "VS Application" doesn't really make sense if I have to check everything manually.


My hope - I'm doing something wrong...
Is there a "less manual way" to get the simple functionality of the VS2010 included setup wizard?

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

Re: VS2010 Installer

Hello Manfred,

I'm afraid currently this is our default implementation. In order to achieve what you want you should manually edit your installation project in Advanced Installer. However, we already have some of these improvements on our TODO list and hopefuly they will be available soon. Also, I'll add your suggestion on our TODO list and we'll try to add an improvement regarding this in a future version of Advanced Installer. Thank you for your suggestion.

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

Return to “Building Installers”