The learn button must be pressed and held within 30 seconds of installing the batteries in both the light and the remote.
In the case of the Tru-Slim, you have to install 3 batteries in each box first to ensure the light remains off, then install the last 2 batteries and the batteries in the remote in quick succession.