Install SQL Native Client Silent

Welcome Forums General PowerShell Q&A Install SQL Native Client Silent

Viewing 5 reply threads
  • Author
    Posts
    • #262931
      Participant
      Topics: 6
      Replies: 11
      Points: 90
      Rank: Member

      Hello..

      The sqlncli.msi file is in the user roaming folder.

      I’m trying to install with the following code:

      I don’t get an error message, but the client is not installed.
      Does anyone know what I’m doing wrong?
      Thank you very much for your help …

    • #262980
      Participant
      Topics: 8
      Replies: 16
      Points: 74
      Rank: Member

      Hello..

      The sqlncli.msi file is in the user roaming folder.

      I’m trying to install with the following code:

      I don’t get an error message, but the client is not installed.

      Does anyone know what I’m doing wrong?

      Thank you very much for your help …

      See if you are able to pass the arguments and use call operator

      $cmd = "msiexec.exe” + " " + $Arguments
      & $cmd | out-null
      • This reply was modified 1 week, 6 days ago by Harsha.
      • This reply was modified 1 week, 6 days ago by Harsha.
    • #262986
      Participant
      Topics: 8
      Replies: 16
      Points: 74
      Rank: Member

      Hello..

      The sqlncli.msi file is in the user roaming folder.

      I’m trying to install with the following code:

      I don’t get an error message, but the client is not installed.

      Does anyone know what I’m doing wrong?

      Thank you very much for your help …

      see if you are able to use call operator

      $cmd = msiexec.exe + " "+ $Arguments
      & $cmd | out-null
      • This reply was modified 1 week, 6 days ago by Harsha.
      • This reply was modified 1 week, 6 days ago by Harsha.
    • #263061
      Participant
      Topics: 6
      Replies: 11
      Points: 90
      Rank: Member

      Also does not work

    • #263202
      Participant
      Topics: 8
      Replies: 617
      Points: 2,393
      Helping Hand
      Rank: Community Hero

      I personally like to build command line arguments in an array. I’ve added a log for you to get more info in case it fails for you. I’ve tested this on several different systems with different operating systems.

      If it’s still not installing I would try the opposite architecture package (if 32 bit is failing try 64 bit or vice versa)

    • #263223
      Participant
      Topics: 6
      Replies: 11
      Points: 90
      Rank: Member

      I’m using your code, I found error 1603 in the log file.
      I have now run the code as admin and it worked.

      Thank you for your help

Viewing 5 reply threads
  • You must be logged in to reply to this topic.