"Installation" of a bookmarklet is performed by creating a new bookmark, and pasting the code into the URL destination field.
In Microsoft Edge it is not possible to add a bookmarklet to your favourites, instead right-click on the link and choose 'Add to reading list'.