Click here to Skip to main content
15,435,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
How to install powershell and sql server 2008 r2 silent from same batch file.

my batch file code is....

VB
cd\
cd nirali
cd xp_powershell
WindowsXP-KB926139-v2-x86-ENU.exe /quiet /passive /norestart 
ping 127.0.0.1>nul

cd\
cd Windows
cd system32
powershell.exe "c:\nirali\SQLEXPRADV2008_x86_ENU.exe /CONFIGURATIONFILE=c:\nirali\ConfigurationFile.ini /INDICATEPROGRESS"


successed to install Powershell but not able to install sql server....
want to install both in same batch file...

Thanks in advance...thanks a lot for your help...
Posted
Updated 15-Oct-12 20:15pm
v2
Comments
Nirali R shah 15-Oct-12 7:58am    
if i run both batch file one by one .. then it installs fine.. no need to restart pc after installation of powershell... it creates issue when using both script in same batch file... :(

1 solution

You can't because powershell needs system restart :(
 
Share this answer
 
Comments
Nirali R shah 15-Oct-12 7:52am    
so is there any solution for the same??
Zoltán Zörgő 15-Oct-12 8:00am    
It depends why you want this. Do you install sql server so often, that a manual restart and continuation is not acceptable? Than use an install builder, that can handle prerequisites and postponed installation.
Nirali R shah 15-Oct-12 8:50am    
Thank u very much for your reply...please suggest me what can i do for the same? please.....
Zoltán Zörgő 15-Oct-12 9:05am     CRLF
Many bootstappers and install utils can do this, look here for example: http://shieldmaster.wordpress.com/2009/04/26/tutorial-adding-setup-prerequisites-to-installshield-package/ (http://msdn.microsoft.com/en-us/library/aa730839(v=vs.80).aspx)
Nirali R shah 15-Oct-12 9:35am     CRLF
sorry but not getting any idea from this link.. :(

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