My current packaging rhythm is using wrapping technologies that are natively x86 based (AutoIT, WISEScript). To modify the 64-bit registry view we use things like HKLM64 to get that that registry hive. How do I handle which registry view I am editing (native x64 view vs the 32-bit Wow6432Node)? I would sure hate to have separate code blocks using something like:
Depends on the program. If you are installing a 32bit version then that program expects registry entries in a 32bit registry hive. On 64bit os they are in a different location so you either modify one or the other or both. The toolkit doesn’t assume this for you. So you would have to write an If statement for it. Only once would be enough though: