We had the same problem installing the core Feedback module on v5.4.1. It seem to install about 95% and then crash. The module seemed to be installed but would not appear in the "add modules to page" drop down in the ribbon bar.
The following SQL fixed the problem for us:
>>>>>>>>>>>>>>>>>>
DECLARE @Identifier INT
DECLARE @DesktopModID INT
SET @DesktopModID = (SELECT DesktopModuleID FROM dbo.DesktopModules WHERE FriendlyName='Feedback')
-- `dbo.PortalDesktopModules`
INSERT dbo.PortalDesktopModules (PortalID, DesktopModuleID, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate)
VALUES (0, @DesktopModID, 1, GETDATE(), 1, GETDATE())
SELECT @Identifier = @@IDENTITY
-- `dbo.DesktopModulePermission`
INSERT .DesktopModulePermission (PortalDesktopModuleID, PermissionID, AllowAccess, RoleID, UserID, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate)
VALUES ( @Identifier, 7, -1, 0, NULL, 1, GETDATE(), 1, GETDATE())
GO
<<<<<<<<<<<<<<<<<<
Hope this helps someone.
Thanks
Steve
Solvd Ltd