On the Configuration page, change the value of the offerCodeGeneratorConfigString property in the Campaign | partitions | partition_N | offerCodeGenerator category to the location of the custom offer code generator executable. The location is relative to the Campaign web application home.