The new regime, known as the Helvetic Republic, was highly unpopular.