you need to install MagicIV BEFORE you install your mod. it requires a clean install of the game.
but i think with the GTA IV Mod Installer you dont even need to use MagicIV, it has a file check bypasser built in. but if you sometimes dont use it, its best to install magicIV. just make sure your game isnt modded when you run the patch.