PDA

View Full Version : Pass install folder via command line



NewsArchive
03-16-2018, 02:38 AM
I would like to be able to pass the install folder via command line and if
the installer receives, use it as the default install folder.

I am sure this can be done.

Anybody have a quick example?

Thus far, have not had to do anything too sophisticated with SB.

Thanks!

Greg Berthume
C10 12799 | SQL Server 2016

NewsArchive
03-16-2018, 02:39 AM
Hi Greg

simple.. two ways as per the Scripting Guide from SB help...

/X pathname - Set default %_SB_INSTALLDIR% installation folder to pathname
/V VARIABLE VALUE - Set %VARIABLE% to VALUE

Then manage with tests of those variables within your script.

HTH

JohnG