VMware Communities
CEK201110141
Contributor
Contributor

VMware Player 4 (Linux) - Unattended Install

Hello there,

Is there any way to do a unattended installation of Vmware Player 4 on Linux?

In the early version (3.1.4) I could do that, with --console and --required, it would install without asking me anything.

Now, in this new version, even with these arguments, the installers keeps showing Acceptance Terms and ask for a yes/no response.

How could I bypass that?

Thanks

- CEK

0 Kudos
2 Replies
sputnik1969
Contributor
Contributor

It's a little bit tricky, but i had the same problem and got a solution:

First you have to rename /usr/bin/less and /bin/more to /usr/bin/_less and /bin/_more. Then you have to create a softlink from cat to more ( ln -s /bin/cat /bin/more )

Then you can install it with --console and redirect the input for the questions from a file which contains the following:

{ENTER}
yes{ENTER}
no{ENTER}
no{ENTER}
{ENTER}

Where i wrote {ENTER} just press Enter, don't write {ENTER} in the file.

After installation you can restore the original condition: remove the /bin/more link and rename more and less back to their original names.

I hope this will help to solve your problem...

0 Kudos
BillyTheChip
Contributor
Contributor

A less brutal way than renaming more and less might be using expect, which worked for me just fine:

#!/usr/bin/expect
spawn /path/to/VMware-Player-4.0.0-471780.x86_64 --console --required
expect "Press Enter to proceed." { send "\r" }
set done 0
while {$done == 0} {
  expect {
    "More" { send -- " " }
    -exact "Do you agree? \[yes/no\]:" { send -- "yes\r" }
    eof { set done 1 }
  }
}

0 Kudos