Always ensure your desktop shortcut for SolidWorks 2012 is configured to run with administrative privileges ( Right-click > Properties > Compatibility > Run this program as an administrator ).
Right-click the desktop shortcut and select Properties . Navigate to the Compatibility tab. error cannot initialize library solidworks 2012