w3champions / launcher

This is the launcher for w3champions. It includes the needed flo hostbot executables.
32 stars 18 forks source link

Uninstaller should remove `\_retail_\webui` #180

Open francislavoie opened 12 hours ago

francislavoie commented 12 hours ago

Apparently \_retail_\webui doesn't get wiped out when uninstalling, which can break the WC3 client, resulting in a W3Champions Ladder Error: You are not yet authorized on the W3Champions server. Try again in a few minutes. error message.

Just did a quick bit of research, I think this requires setting up an NSIS macro to wipe out that directory.

To do this, I think vue.config.js needs to be edited, add this after win: {:

    nsis: {
      include: "build/installer.nsh"
    }

And then a new file build/installer.nsh would have:

!macro customUnInstall
    RMDir /r "$PROGRAMFILES\Warcraft III\_retail_\webui"
!macro

See https://www.electron.build/nsis