I'm trying to change the product code at compile time but having a little trouble. I first tried passing a compiler variable PRODUCTCODE={blah} (with correct replacement of the blah). That had no effect. So I passed the same compiler variable and made one of the first lines be
In case anyone was wondering, I did figure out my problem. Go to the visual screen -> Application Information -> Project Properties and set the product code field to "#USEPRODUCTCODE#" (without quotes). A tool tip bubble might complain at you but you can ignore it. Then set a compiler variable named USEPRODUCTCODE to the GUID you want to use. Don't do anything in the code section.