Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi.
I have an application which uses sql local database. So, it must be installed on the computer which my application will be running.
I have made my own setup via vb.net (without any setup maker)
I want to install sqllocaldb in background in my setup. Is there any way to do it?

(This is the setup of sqllocaldb: https://www.microsoft.com/betaexperience/pd/SQLEXPLDB/enus/[^]
Posted

Thanks for help Maciej Los, finally i did it.
This works for sql:
Shell("msiexec.exe -i C:\Users\user\Desktop\SqlLocalDB.msi /quiet IACCEPTSQLLOCALDBLICENSETERMS=YES", AppWinStyle.Hide, True)


We can change qb instead of quiet, to show a basic ui for setup that is working
 
Share this answer
 
Comments
Maciej Los 24-Dec-13 17:10pm    
+5!
Could you - formally - accept my answer? It helps you to find final solution ;)
MuhsinFatih 25-Dec-13 10:03am    
Ok, thanks :)
 
Share this answer
 
Comments
MuhsinFatih 15-Dec-13 14:05pm    
Thanks. I'll try it :)
MuhsinFatih 16-Dec-13 10:02am    
Thanks but, my question was not just adding prerequisite. I want to install it in my application, in background. I don't want to tell what they need to install
MuhsinFatih 22-Dec-13 12:24pm    
Could you please answer my last question?
MuhsinFatih 24-Dec-13 12:44pm    
I've found a code which does what I wanted:
Shell("msiexec -i C:\Users\user\Desktop\SqlLocalDB.msi /quiet AGREETOLICENSE=True", AppWinStyle.Hide, True)
This works correctly with other setups, but unfortunately, didn't work for sqllocaldb setup.
Could you try this? I would like to know where problem is..

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