My project includes a template that is installed in the 32 bit Program Files directory. Accessing this template is relatively simple:
string templateLoc = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)
+ @"\path.html";
This works as intended on my local system, including after building the WiX installer. However, on my client's system, it looks for the template in the System32 directory.
The only real difference between our systems is that I run Windows 7, and my client runs Windows 10. Is there a difference between these systems that affects Environment
? Or, is there something wrong with my syntax?