Hi…
I should probably know how to search for this as I am sure others have asked it - I have a very short time frame to get something working and then I have to work on another project - if anyone could help me with this I would really appreciate it!
I need to use the following command to install a windows package…
msiexec /qn /i “c:/bak/msodbcsql.msi” IACCEPTMSODBCSQLLICENSETERMS=YES
I have tried:
win_package:
path: \mydomain.local\share\sqltools\msodbcsql.msi
product_id: ‘{7E425BFB-1DEB-499F-8F3F-3522A6E98754}’
state: present
aruguments: /qn /i IACCEPTMSODBCSQLLICENSETERMS=YES
and that has a fatal error that fills several screens with red unhappiness that I am trying to make sense of but no luck so far… the first bit looks like this:
fatal: [AnsWin201601]: FAILED! => {“changed”: false, “exit_code”: 1603, “log”: "=== Verbose logging started: 4/19/2018 10:21:12 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Windows\system32\msiexec.exe ===\r\nMSI (c) (D0:80) [10:21:12:367]: Resetting cached policy values\r\nMSI (c) (D0:80) [10:21:12:367]: Machine policy value ‘Debug’ is 0\r\nMSI (c) (D0:80) [10:21:12:367]: ******* RunEngine:\r\n ******* Product: \\mydomain.local\share\sqltools\msodbcsql.msi\r\n ******* Action: \r\n ******* CommandLine: **********\r\nMSI (c) (D0:80) [10:21:12:367]: Client-side and UI is none or basic: Running entire install on the server.\r\nMSI (c) (D0:80) [10:21:12:367]: Grabbed execution mutex.\r\nMSI (c) (D0:80) [10:21:12:382]: Cloaking enabled.\r\nMSI (c) (D0:80) [10:21:12:382]: Attempting to enable all disabled privileges before calling Install on Server\r\nMSI (c) (D0:80) [10:21:12:382]: Incrementing counter to disable shutdown. Counter after increment: 0\r\nMSI (s) (20:28) [10:21:12:382]: Running installation inside multi-package transaction \\mydomain.local\share\sqltools\msodbcsql.msi\r\nMSI (s) (20:28) [10:21:12:382]: Grabbed execution mutex.\r\nMSI (s) (20:10) [10:21:12:382]: Resetting cached policy values\r\nMSI (s) (20:10) [10:21:12:382]: Machine policy value ‘Debug’ is 0\r\nMSI (s) (20:10) [10:21:12:382]: ******* RunEngine:\r\n ******* Product: \\century.terrapin.local\share\sqltools\msodbcsql.msi\r\n ******* Action: \r\n
If the product is already installed no error… I install another package from the same location on the line before this … but it does not require the msiexec … you can just use the /s switch on it and that works fine, so I know my setup is basically working, but I think I am just not calling msiexec correctly or something and I don’t know how and googling hasn’t found me anything yet. Sorry for the long post, but any help on this would be hugely appreciated.
Thanks
Bill