This will need to be more robust.  The setting will remain disabled if you cancel the installation or quit the game before it completes.