Installation has failed

So my original problem was Atom crashed and then when I tried to re open it I got an error window that said “A java script error occurred in the main process”. There was a question about that error in this section from back in February that had no answers. I searched online for hours and could not find anything close to a workable solution. So I deleted Atom and attempted to re install it and now when I open the launcher I get an error window that says "Installation has failed, there was an error while installing the application check the setup log for more information and contact the author.

Is there anyone who can help with this? a few hours ago atom was working perfectly fine and now I can’t get it back.

Can you share a screenshot of the error? Also, can you share the installation log file so we can take a look? It’s located at %AppData%\Local\atom\SquirrelSetup.log.