I know that if you want your setup files to detect whether the pc have .Net Framework 3.5 installed, you must configure the prerequisites in the Setup Properties. There 3 options to choose from and I'm not quite understand what is the second options means: "Download prerequisites from the same location as my application".
Is it that I must get the .Net Framework 3.5 installation files ready first? Where should I put this installation files?
it's for distributing the prerequisites with your installer (like an offline-installer):
http://msdn.microsoft.com/en-us/library/vstudio/hh873130.aspx
Related
I did the following steps to create a Windows Setup project:
Create a Windows Forms Application using Visual Studio
Install "Microsoft Visual Studio Installer Projects plugin"
Add a "Setup Project" to the solution
In the "Application Folder", add project output
(Steps 5 and 6 are optional)
By right clicking the Setup project and opening "Properties", select "Prerequisites"
Select "Download prerequisites from the same location as my application"
Build the solution.
After all these steps, I see many files (Setup.exe, Setup.msi, NETFX472 folder) in the Release folder. But I only want one simple self-contained setup file. So, users can run the setup file and install the application easily.
How can I make a simple and self-contained Setup file for my project?
I know it's possible, but I am looking for an easier and more efficient way to do it.
I know I can create another Windows Forms app called Setup which copies the project outputs to user's Program Files directory and copy the output files one-by-one. But I don't think that solution is elegant.
EDIT:
After more tries, I learned that Setup.exe is for installing dependencies (only .NET Framework 4.7.2 for my case) and then running Setup.msi. So, without Setup.msi file, Setup.exe is nothing and vice-versa.
Also, I want my program should work 100% offline (including setup). So, installer should include offline .NET Framework 4.7.2 installer.
What I don't want here is Setup.exe to only install dependencies. It should also install my program. So, it should do also whatever Setup.msi file does. Second thing I don't want is dependency installer as separate file (offline .NET Framework 4.7.2 installer in this case). It should also be embedded into Setup.exe.
I am a newbie in creating the setup projects and I have created a "myfirstSetup" project. Its working good, but it has a dependency or I should say a prerequisite to be installed before its installation. I want that prerequisite to be installed during my project installation.
Till now I have done following things :
1.) Added the prerequisite by going myfirstSetup Properties
2.) Select the prerequisite
3.) Check the Download Prerequisite from the same location as my application
The .exe that is being created is installing the prerequisite but the .msi is only installing my project.
any help will be appreciated thank you.
That's the way it works - the setup.exe installs prerequisites and then your MSI installs your project. There are many reasons for this. Is there an actual problem or do you just believe your MSI file should be able to install prerequisites like the .NET framework, SQL Express and so on?
I have Inno Setup installed and also Advanced Installer 10.9 (Professional edition), and was wondering if I can create a multi-installation setup package that has both my application and Mschart? I have tried to simply create a single package that contains the _Mschart_file, but when another computer (user) doesn't have it installed already (Mschart), it won't allow you to view the graphs. I've read about Merging Modules in the Advanced Installer 10.9, this program is also really slick and PRETTY! So would prefer to use this.
So, when the user opens up setup, It will install the application first then Mschart (vice versa) sequentially.
In Visual Studio you can create a boostrap package with your prerequisites and add it to tour msi package. The installer will detect where your prerequisite is installed or no and take the appropriate decision.
See this article for more info:
http://msdn.microsoft.com/en-us/library/ms165429.aspx
I have an application that uses .net 3.5 (created in C# - Visual Studio 2010). Application runs fine, but if I try to publish and set the prerequisites to use the same location as the application I get this:
Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information. Aplication
I have the framework installed and also the kit but I guess I have to put some files somewhere... but I don't know where.
Can any1 help me?
According to this page:
The reason is that we shipped the .NET
Frameworks 3.5 SP1 package as Homesite
Only, i.e. only supports "Install
Prerequisites from Component Vendor's
Website". We did this to keep the
size of VS 2008 SP1 from being too
large.
We did put info in the SP1 readme on
how to get the files put on your
machine to enable the samesite
scenario. Look for "Enable Samesite".
http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm
I am looking for some general feedback here. I have a very simple application that I created in VC# Express 2008, with no special dependencies.
Now, I am going to release it as open source, and am curious as to how I should deploy it. Do I need to create an installer package with any dll's? Should I just zip up the *.exe file with a README?
Also, how should I go about handling the requirement for the .NET framework that a C# program needs?
You can use WiX. That will handle .Net framework dependency.
Updated: As an open source project you don't need to include setup application. It is extra (fancy staff).
The express versions only include the Publish option (Click Once). I would advice to read the EULA first, there are restrictions on distributing applications made with the Express versions.
Also see this SO question.