The launcher has 2 flavors. A java based installer and a non-java based installer.
Both version install the launcher. Once that is done the launcher and the game do require Java. Given your post I would recommend that you download Java 8 for x86-64 if you do not already have it.
When you download the launcher installer be certain to ONLY download it from minecraft.net after logging into your account. If you download it from any other site or attempt to use a 'cracked' version then I wouldn't expect it to work and may Notch have mercy on your soul.
As with the game, be certain that you download Java Runtime ONLY from the trusted site.
If you have errors with Java 8 x86-64 then I would begrudgingly suggest uninstalling and installing Java 7 x86-64 instead.
Here is a command that will do that:
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Click Here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Hello There\"}}]"],title:"Hello there",author:IronAnvil}
Though, I recommend using a book editor tool if you want more complications as formatting is tough. Here is the one I used for that command.
Add a clickEvent that runs a command and use the say command.
If you want to see a little bit more complication, here is another command. This one is long enough it will need to be run from a command block:
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Hello there:\\n\"},{\"text\":\"Click here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Hello there\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Hello there' in chat.\"}},{\"text\":\"\\n\\nGoodbye:\\n\",\"color\":\"reset\"},{\"text\":\"Click Here\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/say Goodbye\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Goodbye' in chat.\"}},{\"text\":\"\\n\",\"color\":\"reset\"}]"],title:"Book of Speak",author:IronAnvil}
Edit:
Here are both commands again but the clickEvent does not specify a command so it just outputs to chat:
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Click Here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"Hello There\"}}]"],title:"Hello there",author:IronAnvil}
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Hello there:\\n\"},{\"text\":\"Click here\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"Hello there\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Hello there' in chat.\"}},{\"text\":\"\\n\\nGoodbye:\\n\",\"color\":\"reset\"},{\"text\":\"Click Here\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"Goodbye\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"If you click here, you will say 'Goodbye' in chat.\"}},{\"text\":\"\\n\",\"color\":\"reset\"}]"],title:"Book of Speak",author:IronAnvil}
Best Answer
You haven't stated the version of Minecraft that you are playing, so not sure if this will work on your version, but try Citizens. It's unfortunately not free, but it does exactly what you're looking for—it has the ability to create NPCs with just right click dialogues to performing different commands.
This is a description of features in brief from the website itself:
If you're looking for something free, try this other NPC plugin According to its website, it has the following features: