Need to install bootloader first before setting different clock speeds works

Hello guys,

I have a question: In one of my patches I am setting the clocks to higher speed because I need a fast PWM output. I use the code proposed on the Arduino page itself:

  TCCR0B = TCCR0B & 0b11111000 | 0x01; //Clockdivider Clock0 = 1 -> Clockspeed = 62,5KHz
  TCCR1B = TCCR1B & 0b11111000 | 0x01; //Clockdivider Clock1 = 1 -> Clockspeed = 31,25KHz

I am working with an Attiny44PU-A and everything runs without problems but I always have to install the bootloader before the Attiny will take the clock changes. Otherwise the PWM outputs are normal speed.
I need to do 250 of those Attinys and I'm looking for a way to avoid burning the bootloader to all of them before I can upload the (fully working) code.

What am I missing here?

"Burning Bootloader" changes the fuses. That can be combined with uploading by running avrdude directly.

Enable verbose output for uploading. Burn Bootloader. The avrdude command is output to the status window.

With verbose output still enabled, upload your program. The avrdude command is output to the status window.

Combine the two commands into one.

You now have everything needed to upload and change the fuses in one command.

Or, you could rebuild your program to run at 1 MHz. The PWM frequency will be one-eighth.