If you stay connected at the internet at install you have to activate online. Are you offline at install you have to activate manual with OfflineActivation.exe.
Here's a link how it works with online/offline activation.
https://support.securom.com/rockstarunlock/?c=GTA4