localdb - Embedding SqlLocalDb in NSIS installer script -


i'm trying embed sqllocaldb installer script.

the installer far working. application gets installed. user should asked if wants install sqllocaldb. if yes installer throws sqllocaldb.msi installed dir , not execute it.

i followed script on nsis page but..

section "sqllocaldb"  setoutpath $instdir\prerequisites  messagebox mb_yesno "would use local db server?" /sd idyes idno endsqllocaldb     iffileexists 'c:\program files\microsoft sql server\110\tools\binn\sqllocaldb.exe' endsqllocaldb beginsqllocaldb     goto endsqllocaldb     beginsqllocaldb:     file "sqllocaldb.msi"     execwait '"sqllocaldb.msi" /i "$instdir\prerequisites\sqllocaldb.msi"'     endsqllocaldb: sectionend 

any ideas i'm missing out here?

this old but: execwait should be

execwait  'msiexec /i "$instdir\prerequisites\sqllocaldb.msi"' 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -