locked
Command-line installation issue : InstallMediaPath parameter? RRS feed

  • Question

  • Hello,

    I have an unsuccessful command-line installation of SQL Express 2008 R2. I need to do it to install a new local instance so that a Winforms application could use it (I'm packaging the app thus installing pre-requisites through my installer).

    I hit "InstallMediaPath" blank parameter issue, if I look into "C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Detail.txt".

    System.ArgumentNullException: Value cannot be null.
    2014-09-08 09:40:17 Slp: Parameter name: InstallMediaPath
    

    I read on the forums that this error can solve by uncompressing before running setup, so here are my two commands. I still have the issue.

    "Resources\SQLEXPR_x86_ENU.exe" /Q /X:"%TEMP%\SESetup"
    "%TEMP%\SESetup\Setup.exe" /ACTION=Install /QS /IAcceptSQLServerLicenseTerms=True /Features=SQL,Tools /InstanceName=MSSQLSAFETIFY /SQLSVCACCOUNT=\"NT AUTHORITY\\NETWORK SERVICE" /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD="somePassword"
    

    Earlier in log file I see a correct value for InstallMediaPath so am clueless.

    2014-09-08 10:00:51 Slp: Setting: SQLSVCACCOUNT
    2014-09-08 10:00:51 Slp: Value specified: "NT,AUTHORITY\\NETWORK,SERVICE /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD=somePasssword /ACTION=RUNRULES /RULES=GlobalRules /WORKFLOW=Install /TIMESTAMP=20140908_100041 /LOGMARKER=_GlobalRules /MEDIASOURCE=C:\Users\bpo\AppData\Local\Temp\2\SESetup\ /INSTALLMEDIAPATH=C:\Users\bpo\AppData\Local\Temp\2\SESetup\x86\setup\ /ENU  /MEDIALAYOUT=Core
    2014-09-08 10:00:51 Slp: New setting source: CommandLine; previous setting source: Default
    2014-09-08 10:00:51 Slp: ----------------------------------------
    2014-09-08 10:00:51 Slp: Completed Action: ProcessFeatureCommandLineArguments, returned True
    
    Thank you so much for helping. Do I have some incorrect parameters?


    Monday, September 8, 2014 8:13 AM

Answers

  • I finally found a solution, using a Configuration.ini file. Blog entry dealing with MS SQL unattended setup

    I suceeded with a configuration file, adding though two parameters to file, IAcceptSQLServerLicenseTerms="True" and SAPWD="passwordOfMyChoice".

    With command line only, I had "path2" parameter null value error, once I added /InstallMediaPath undocumented (?) option to my initial command line switches...

    • Marked as answer by _Barbara Post_ Tuesday, September 9, 2014 12:46 PM
    Tuesday, September 9, 2014 12:45 PM