James went into exile on 23 December after his army deserted him and on 4 January 1689, William appointed the Scots Brigade senior officer Hugh Mackay, commander in Scotland. Ramsay's regiment went with Mackay and after James landed in Ireland on 12 March, another former Scots Brigade officer, John Graham, Viscount Dundee, launched a Scottish rising in his support. Despite their victory at Killiecrankie in July, Dundee's death and lack of reinforcements prevented the Jacobites exploiting it; after their defeat at the Battle of Cromdale in May 1690, the campaign largely focused on minor policing actions, carried out by locally-raised troops.