Silent install of postgresql-9.3.1-1-windows-x64 with powershell

Welcome Forums General PowerShell Q&A Silent install of postgresql-9.3.1-1-windows-x64 with powershell

Viewing 3 reply threads
  • Author
    Posts
    • #275058
      Participant
      Topics: 15
      Replies: 13
      Points: 83
      Rank: Member

      Can one tell me plaease where is the wrong in this script line:

      I tried also:

      and in both caseĀ  i get the same message error:

      “There has been an error. Expected option but got “Files/PostgreSQL/9.3”. Options start with a leading “–” prefix.”

      I know this is default path for installation, but i want be able to install it in for example: “C:\new program\PostgreSQL\9.3”.

      Thanks for help.

       

    • #275118
      Participant
      Topics: 5
      Replies: 349
      Points: 632
      Helping Hand
      Rank: Major Contributor

      The error is caused by the space and not specifying quotation marks.

    • #275133
      Participant
      Topics: 15
      Replies: 13
      Points: 83
      Rank: Member

      I also tried this but it did not work, maybe it is bug in installer.

    • #275382
      Participant
      Topics: 17
      Replies: 1951
      Points: 3,987
      Helping Hand
      Rank: Community Hero

      Another option is using chocolatey:

      https://chocolatey.org/

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