cdi blowing

Hello everbody ,Just got a 1999 trx300 fourtrax 2wd . No spark blown fuses rotted wiring solenoid battery cables etc no spark no oil light on when key on. So i ordered a wiring harness ,solenoid wiring assembly and a cdi box . I checked stator and pulser unplugged to see if they had output they did ,4to6 volts while cranking checked doide in box under handle bars not open or shorted . Applied harness and solenoid assembly and cdi . Didnt have new battery so hooked cables to my lawn mower and kick started the 4 wheeler oil lifht didnt come on when i turned key on bust it started neutral light very bright carb ran out of fuel. I app.ied fuel tank filled carb used starter button engine rolled over and smoke rolled out of new cdi and poped one of the fuses. Previous owner said it ran and the starter was bad had to kick start to run and ran fine till oil light flickered and died. Need help does any body ever has had this happen . Ccdi boxes are expensive . Does anybody think this is the voltage rectifiero