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: 7
      Replies: 12
      Points: 104
      Rank: Participant

      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 3 months, 2 weeks ago by Harsha.
      • This reply was modified 3 months, 2 weeks 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 3 months, 2 weeks ago by Harsha.
      • This reply was modified 3 months, 2 weeks ago by Harsha.
    • #263061
      Participant
      Topics: 7
      Replies: 12
      Points: 104
      Rank: Participant

      Also does not work

    • #263202
      Participant
      Topics: 9
      Replies: 707
      Points: 2,848
      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: 7
      Replies: 12
      Points: 104
      Rank: Participant

      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
  • The topic ‘Install SQL Native Client Silent’ is closed to new replies.