Click here to Skip to main content
15,889,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We have developed window application with .mdf file (from sql server 2005). Almost our entire application had been done,we have generated .msi file for our application with integration of (.mdf) but our msi file doesn't checks prerequisites to be present and doesn't installs them if they are not present in client systems.how to solve this issue help me out. Actually we are new to deployment so we need help to solve this . is their any code to be write for installation of prerequisites if they are not exists in client systems.we need only two prerequisites to be placed with our application that is : .NET FRAMEWORK 4.5 SQL SERVER 2005 EXPRESS if these two doesn't exists in client systems they must install. in any manner (means through silently). How to do this we need some steps or samples to be placed so that it would be helpful to us
Posted

write a bootstrap exe that queries for prerequisites, and installs them if required, and then executes your MSI proper

.NET[^]

SQL Server[^]

Unfortunately, Microsoft don't conform to their own MSI standards, so you can't find the appropriate feature/component ID and use the MSI detection mechnism

Do NOT install them silently - they take AGES, and there's nothing more annoying/concerning than an exe just sat there eating cycles and disk-space
 
Share this answer
 
Comments
Member 10994771 5-Nov-14 1:01am    
Thank you for your reply how to write bootstrap exe for my application can you provide any samples or links. I am new to Bootstrap.exe
barneyman 5-Nov-14 2:16am    
it can be anything you want, I previously used an ATL exe hosting a web page (using CAxWindow), so that I could display a nice splashscreen with links on it that (via SetExternalDispatch) called back into the exe ... you can probably achieve much the same in in C#

remember to flag your exe admin elevation ( http://msdn.microsoft.com/en-us/library/bb756929.aspx )
To add prerequisite, you have to right click the setup project and see the property of the project, where you can find prerequisites as an option. You can also find the MSDN article described this issue:

http://msdn.microsoft.com/en-us/library/vstudio/7eh4aaa5(v=vs.100).aspx
 
Share this answer
 

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