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
FOLLOW US
Get the latest news in Application Packaging