Click here to Skip to main content
15,745,178 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends,
I would like to create an setup.exe which will install all prerequisites if necessary i define in it. But this will not contain my application. The prerequisites are the following-
1. Windows Installer 3.1
2. .Net Framework 4.0
3. Microsoft report viewer
4. Fonts and
5. Custom culture.

Is it possible at all?

1 solution

Absolutely. Actually, Microsoft is in the process of deprecation of setup project template and obsolete Setup project type, which is not supported by MSBuild. What to do? I highly recommend Windows Installer XML toolset (WiX), which is fully wrapped for MSBuild and provides, among many other things, great integration with Visual Studio 2008 to 2012. This way, the complete project build from source code to the setup can be done both in Visual Studio and batch mode, from the same source solution.

This toolset is an open-source project, under CPL:[^].

Please see:[^],[^].

See also:[^],[^].

Share this answer
Saumitra Kumar Paul 24-May-13 10:00am    
My intention is to make a custom prerequisites which will contain some other prerequisites. WiX will do that for me?
Sergey Alexandrovich Kryukov 24-May-13 10:16am    
This can be a bit more difficult then other things, but as far as I know, yes.

At this moment, I only know how to make a .NET platform a prerequisite, and this is because I simply used one of the WiX extensions (this one is bundled with WiX). But I saw a documentation chapter explaining deployment of the platform redistributes with the application; and another chapter explains other prerequisite.

Besides, if you need to check some non-standard condition related to prerequisites, there is an embedded construct for finding data, which includes finding something in file system and in registry. So, you can perform a condition checkup on low level.

Actually, WiX extensions, just those already bundled with its installation, include some important features which would require totally custom actions in different installers. In particular, I recently found firewall extension which let you to open a Windows firewall exclusion for the product you install. But you can also add your own extensions:


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900