Commit 6a5007f
committed
(PA-8247) Add guard against other ruby process when installing
Previously, when installing puppet on Windows, if there is
another already running ruby.exe process running during the
install, it would fail with an `msiexec 1603` error:
Error: Failed previous installation with: ScriptHalted MSI (s)
(60:6C) [22:12:51:748]: Product: Puppet Agent (64-bit) -- Error
1306. Another application has exclusive access to the file
'C:\Program Files\Puppet Labs\Puppet\puppet\bin\ruby.exe'.
Please shut down all other applications, then click Retry.
...
ERROR: msiexec.exe installation failed!!! Return code 1603
This commit updates files/install_puppet.ps1 to guard against
other ruby processes by waiting for it to finish before trying
to install puppet. It will wait however long `$WaitForPuppetRun` is
before erroring.1 parent 278235a commit 6a5007f
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
323 | 347 | | |
324 | 348 | | |
325 | 349 | | |
| |||
0 commit comments