I had made project in windows application, now I want to add custom launch condition for SQL Server Compact 3.5.
Can it will done with registry search? can it will done with component id search?
and if yes then how please let me know.
If you are using Visual Studio Web installer packager you need to use custom action and try to find registry version
Try below
http://blogs.msdn.com/b/sqlservercompact/archive/2008/02/08/sql-server-compact-release-versions.aspx
I would suggest to go with Wix Installer, it gives you lot of flexibilty.
Related
I have database,images and text files in my project and i would like to make instalation..
Also I would like to put prerequirements so that people who install this must install version of .net framework i used in my project
What is the best way to achieve that?
UPDATE:
I wanted to use microsoft visual studio installer but it doesnt work .. it doenst create exe file and i cant open app
I've personally used NSIS for making installers. It has an extensible scripting bit to put whatever prerequisites you need(TOS, EULA, ect.) and it can easily create a professional looking installer.
Try using Inno Setup. It has a good scripting language along with a wizard if you don't want to script. It's also free (unless you are deploying commercial applications).
I have an Windows C# application for which I will have to create an installer
which would ask user for custom and complete installation.These custom and complete installation options are same application with different feature.
I know to provide options by using Installer UI radio buttons but how to provide control as it takes specific exe for the custom and complete installation respectively.
Or is there any way to achieve this, appreciate if you would provdie step by step procedure.
I am using Visual studio 2013 premium version, MySQL 5.5.
You have different ways, you can do it by configurate in VS. But on this I canĀ“t say much. I would prefer to use a NSIS-File or MS-Build to create an setup.exe
With NSIS you can say all Options etc. which the installer should include.
Here is an NSIS tutorial. Hope that helps.
There is no support for custom dialogs in Visual Studio setup projects - they are limited feature setup projects that do not supply access to the full functionality of Windows Installer. Any installs you see with those Custom and Complete choices (or choices of which features to install) will not have been built with Visual Studio setup installer projects. That means you'll need to choose another tool that meets those requirements, and any others you might have for the install.
I wana made a setup or MSI Installer in .Net 4, which should install my C# project plus .Net framework 4 and crystal reports 2010 viewer. Right now, i have MSI Installer for my solution only and the two things are installed separately. But i want just one installer.
Please let me know any tutorial or best free solution.
Thanks
Atif
Visual Studio lets you to make a simple setups, for example Sql Server needs very advance configuration like specifying instance name, SA user's password and so on ... doing this things in visual studio is impossible, yes you can chose to install them but you have to write some code to configure them in application start up.
You may find something here
Hope this help.
I have found a lot of programs to make an installation package for .net application but non of them meet my requirements.
I'm looking for a free application which is able to create installation and uninstallation package and is able to check if net framework and sql 2008 Redistributable is installed if not application should be able to install them first and then start application installation process
Take a look at Wix.
It is free, but the initial learning curve may be a little bit harder then other programms. The output of WiX is a *.msi package.
I recommend Inno Setup - I compared it once with NSIS and found it more usable. It suports scripting, and you will find example scripts for installation of .NET and other redistributables through the search engine of your choice.
Did you try installer, that is shipped with visual studio? If it is very simple, try Wix. Aslo, consider NSIS.
Or Windows Installer?
If you have Visual Studio installed then you can simply create a setup project within your solution. If not, then download from the above link (or fine the appropriate version to download) and utilise the set creation application manually.
I am working on a project, where I need to give a repair/remove option to my installer [which will be shown at installation time] if the program previously installed. And I need to do it with VS 2008. Please help me on that.
EDIT: Actually for some security reason I removing registry entry for previous installation. So that I can uninstall it from my application only, which is password protected. So thats why I need to customize that repair/remove option. So that it will appear by seeing some specific registry value. How can I do that ?
Thanks.
Just add a Setup project to your current solution. A setup project uses the Windows Installer technology which gives you the repair and remove option for free. Use this type of project when you have a "simple" installation. If you want more control (custom dialogs) you should install Wix. It plugs into VS and you can define an installation file in XML which is then compiled to a Windows Installer package.
I believe WIX is more suitable for your requirements where you have more control over your installer.
If you only want your application to be uninstalled only from your application, you can probably add a custom action (or Condition) in your installer which validates if the installer action (Repair/Remove) was launched from your application and not from ARP.
One way would to be pass a Custom Property from your application to the msiexec which is tested in your custom action (or Condition) and doesn't let the installer process proceed if executed without setting this property.