Minecraft is an incredibly crafty and awesome game; however, like all games, it has its own problems that pop once in a while. One of the most occurring errors that have existed for a long time is the Minecraft Error Code 2318. The error message reads “The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2318.” Thankfully, the error message is clear and indicates the exact cause of the problem.
Users encounter this problem when installing the game and since this is a launcher setup error, the primary suspect is a corrupt game package. Hence, the first fix you must attempt is re-download the launcher from the official website and install it.
How to Fix Minecraft Error Code 2318
Often times while downloading, the program or file can get corrupted, so to ensure that you have the uncorrupted file have a steady internet connection. Download the file from the official Minecraft website and attempt to install. Does the Minecraft Error Code 2318 still appear. If it does try running as an administrator. To do this, right-click on the Minecraft Launcher and select Run as administrator. Hopefully, this would suffice to fix the problem.
If the error still occurs, restart the system and try the process once again. In most cases, this will help you install the game and enjoy it.
If all fails, you have no choice but to raise a ticket with Minecraft and they will help you short out the issue. Here is the link to Minecraft Support to raise a request.
you cant run minecraftinstaller.msi as administrator