-
I'm migrating my WiX3 installer to 4. We have C# custom actions where we execute pnputil.exe to install drivers. This works fine under v3. For v4 the process. Start() fails when the executable is in system32. The installer Package includes Scope="perMachine" to run elevated. Here is the exception I'm getting;
Code (example shows hardcoded path but using env to get systemroot):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the issue. The Visual Studio project for the custom action didn't have x64. Adding x64 to the solution via Configuration Manager and then selecting x64 for the CA platform then built the dll as 64 bit. This also resolved registry access in HKLM to not be in WOW6432Node. |
Beta Was this translation helpful? Give feedback.
Found the issue. The Visual Studio project for the custom action didn't have x64. Adding x64 to the solution via Configuration Manager and then selecting x64 for the CA platform then built the dll as 64 bit.
This also resolved registry access in HKLM to not be in WOW6432Node.