VS2010 Setup project, Excel AddIn, C#, ExcelDNA, NetOffice
I use VS2010 setup project to create installer.
Click Prerequisite properties of the setup project, I see Windows Installer 3.1 and Windows Installer 4.5 are listed in prerequisite list.
In VS2008, I checked Windows Installer 3.1 in prerequisite (though I do not know why?).
In VS2010, I wonder maybe I should check windows installer 4.5 in prerequisite list.
I wonder if I need check it and why?
Another thing is Shared Add-in support Update for Microsoft .NET framework 2.0 (KB908002) is listed in prerequisites list, too. Wonder if I need it? My AddIn is target .NET 35 Sp1
My addIn target .NET framework 3.5 sp1 in VS2008, now I move to VS2010, in setup project, I can check either .NET 3.5 SP1 or .NET 4.0 as prerequisite. Does my target .NET framework have to be the same version as that in prerequisite list?
In VS2010, I wonder maybe I should check windows installer 4.5 in
prerequisite list. I wonder if I need check it and why?
You should check it only if you need to use Windows Installer 4.5 features.
Another thing is Shared Add-in support Update for Microsoft .NET
framework 2.0 (KB908002) is listed in prerequisites list, too. Wonder
if I need it? My AddIn is target .NET 35 Sp1
You should answer this question. Does your add-in need it in order to work correctly? Did you add a .NET Framework prerequisite which includes this update?
Does my target .NET framework have to be the same version as that in
prerequisite list?
It's the other way around. First you determine the .NET Framework version your add-in needs and then add it as a prerequisite.
Related
I'm trying to deploy my windows forms application via Visual Studio Installer extension.
As shown below, I'm setting .NET Framework 4.8 as a one-and-only prerequisite.
The problem is, when I test the installer package on target computer, the setup installs the .NET Framework 4.8 properly at first time which is good but after I un-installed my application and re-run the installer, the setup project again starting to install .NET Framework 4.8 while it's already installed.
It seems like the installer does not check if the prerequisite already installed which is annoying behaviour. Is there a way to fix or prevent this?
I'm trying to distribute a small windows application I made in Visual Studio 2010 and is targeted to .NET framework 2.0. I've made an installer project, but in the Prerequisites window I can't set .NET framework 2.0. I can only see 3.5 SP1 above. There is a whole list here: http://msdn.microsoft.com/en-us/library/7tx0bw8y(v=VS.100).aspx. I'd like to have earlier versions as well, as are shown here: http://msdn.microsoft.com/en-us/library/7tx0bw8y(v=VS.80).aspx. I can see that the .NET Framework 3.5 SP1 will install 2.0 as well, but I don't want to bother a user that already has 2.0, but not 3.0, 3.5 or 3.5 SP1.
I've also managed to set the Launch Condition to .NET Framework 2.0. I've tested this on a virtual machine that has no .NET Framework and it just asks a user to go to a website to download and install the framework manually. (Also the link actually goes to 4.0 Client Profile. I know where to change the link, but 2.0 has separate x86 and x64 downloads, but you can only enter 1 link.)
All I'm trying to do is for the installer to install the .NET Framework 2.0 automatically if the user doesn't have it and then install my application. It would be great if there was only 1 file, which I can then have people download from my website. So, how can I accomplish this?
You would have to install an old version of the Window SDK (version 6) on your machine to get the bootstrapper for .NET 2.0. Doing so makes little sense:
after you install it the user's machine will get updated to .NET 3.5 SP1 by Windows Update.
the 2.0 bootstrapper will blow up your installer size to over 50 megabytes, the .NET 3.5 SP1 bootstrapper is a megabyte or so, it selectively downloads what the user needs at install time.
you don't want to ship code that you haven't tested on 2.0.
I have applications that have been created by a third party. These apps were done by using Visual Basic .NET 2003 with MS .NET Framework 1.1. Now I'm in the need to be able to modify these apps, but it seems that at the moment there is only one possible software to purchase and that is the Visual Studio 2010.
Is it even remotely possible to use this newer version with these old creations, or do I have to rewrite the entire code?
If it is possible, I reckon if I make modifications with VS2010, it is impossible to do anything with VB .NET 2003 afterwards?
You can upgrade the projects to VS 2010 and .Net 2.0 or 4.0 and work on them there.
It will not be easy to go back again.
So I migrated from VS2008 to VS2010 with my clickonce application. I use to have the 2008 C++ redist as a prereq for my application. Upon moving to VS2010 that option no longer exists and the 2010 C++ redist will not do. I have successfully been able to re-add the 2008 redist into the Visual Studio 2010 prereqs list.
My question is, if I now make the 2008 C++ redist a prereq again, will that break my clients? My clients already have the 2008 redist installed.
Thanks much
No, it will not break your clients, as long as you are targeting the same framework version you were with VS 2008.
The prereq installer, usually called the bootstrapper, is completely separate from ClickOnce. It "bootstraps" together prereq installs to make the experience nicer for end users. That's it. It doesn't do anything special other than download and kick-off all your prereq installs and then launch your ClickOnce app when it finishes.
Now, if you upgraded your app to the 4.0 Framework and a client without the framework runs your app, you're in for some trouble. This is a different issue than your C++ runtime prereq though.
I know Visual Studio 2010 has a new Code Analysis tool built in, but that is only for the premium and ultimate editions. From what I can see the latest FxCop supports .NET 3.5 SP1. Searching I wasn't able to find any references to an FxCop for .NET 4.0. Is there plans to continue to offer FxCop and for it to support .NET 4.0? Where would I find more information about it and download it?
The latest version of FXCop (v10) is bundled with the install of the latest Windows SDK for Windows 7 and .Net 4, released on 5/19/2010. From Microsoft - Full ISOs
Once the SDK is installed you can find the FXCop installer EXE under %programfiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop (This assumes you kept the default install directory when installing the SDK).
Enjoy.
FxCop is now enhanced to work with .NET 4.0. You can find it here:
http://blogs.msdn.com/b/codeanalysis/archive/2010/07/26/fxcop-10-0-is-available.aspx
New version is marked with 10.0 just like Visual Studio.
I googled for FXcop 4.0 and found the following a helpful links:
http://social.msdn.microsoft.com/Forums/en/vstscode/thread/74b2815a-626d-4aef-a08a-14c2fa72b506
Looks like its not yet out but FXCop support for .NET 4.0 is planned.
An alternative to FxCop rules would be to use the tool NDepend. This tool that lets write Code Rules over C# LINQ Queries what we call CQLinq, supports .NET v4 and v4.5, and is integrated in VS 2012, 2010, 2008. Disclaimer: I am one of the developers of the tool
More than 200 code rules are proposed by default. Customizing existing rules or creating your own rules is straightforward thanks to the C# LINQ syntax.
Rules can be verified live in Visual Studio and at Build Process time, in a generated HTML+javascript report.