Definitive/Guaranteed Approach to Execute Batch Script Post MSI Installation using Visual Studio 2013 -


i've been cobbling post installation steps having difficulties, go into. please recommend suitable, ideally native, process run custom steps post installation.

using: visual studio 2013 ultimate

setup: vb.net project & visual studio instillation project

test os: win 7 x64 admin

currently, installer install main application , extracts ms sql express + sql scripts subdirectory. have batch file ("installsql.bat") in same directory, silently installs sql express, , executes sql scripts.

so how best execute "installsql.bat" script, when visual studio doesn't support batch execution, installer custom action?

methods i've tried:

  1. add cmd.exe (32-bit & 64-bit) + installer custom action launch script, per post. reason, cmd.exe executed non-administrator credential, , sql setup fails.

  2. use vbs script, launch batch script. vbs script not run , error "a script required install complete not run".

i happy consider alternative approach install sql express , run scripts, not based on batch file. however, custom batch file works when run manually i.e. not installer.

please note, needs work on windows xp , up, location insensitive i.e. no static file locations , ideally, without using 3rd party utilities. last requirement weak.

i config file

"yoursqlexefile" /configurationfile="fullpath\yourconfigfile" 

you did not specify version of sql using (2008/2012/2014, etc). can find examples google search... otherwise may able share use if reply sql version.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -