You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I made a CustomAction to install a driver. The CA basically creates and launch a process that executes something like:
C:\Windows\System32\pnputil.exe /add-driver "driver.inf" /install.
The function that do this job has been tested and works.
The CA was created with VS2022 via a 'C# Custom Action Project (WiX v4)' HeatWave template project. The CA was generated to target AnyCpu.
The installer works and starts the CA that fails when attempting to start the process (C:\Windows\System32\pnputil.exe /add-driver "driver.inf" /install.) telling that a file is not find. I think that the problem comes from the fact that the msi try to start the CA as a 32bits code as the log says: MSI (s) (E0:70) [20:04:18:269]: Hello, I'm your 32bit Elevated Non-remapped custom action server.
which can be a normal behavior as the WixCA_xxxx.CA.dll file is a x86 dll!
So i tried to generate the CA to target x64 processor (in place of any cpu); the WixCA_xxxx..dll now targets x64 processor, but the WixCA_xxxx.CA.dll is still a x86 dll! This time, the msi fails to launch the CA as the log says: MSI (s) (A8:A0) [17:54:28:612]: Hello, I'm your 32bit Elevated Non-remapped custom action server.
... Error: could not load custom action class WixCA_UsbxpressDriver.CustomActions from assembly: WixCA_UsbxpressDriver
After that, i dropped this solution: using a C# CustomAction, and make a CA using The WixQuietExec custom action family ... this works using command line build with pnputil. The msi starts the CA this time as 64bits code as the log says (and as expected as pnputil.exe is a x64 application): MSI (s) (E0:20) [20:54:45:345]: Hello, I'm your 64bit Elevated Non-remapped custom action server.
So this message, is to signal what i think is a bug during the generation of the WixCA_xxxx.CA.dll file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I made a CustomAction to install a driver. The CA basically creates and launch a process that executes something like:
C:\Windows\System32\pnputil.exe /add-driver "driver.inf" /install.
The function that do this job has been tested and works.
The CA was created with VS2022 via a 'C# Custom Action Project (WiX v4)' HeatWave template project. The CA was generated to target AnyCpu.
The installer works and starts the CA that fails when attempting to start the process (C:\Windows\System32\pnputil.exe /add-driver "driver.inf" /install.) telling that a file is not find. I think that the problem comes from the fact that the msi try to start the CA as a 32bits code as the log says:
MSI (s) (E0:70) [20:04:18:269]: Hello, I'm your 32bit Elevated Non-remapped custom action server.
which can be a normal behavior as the WixCA_xxxx.CA.dll file is a x86 dll!
So i tried to generate the CA to target x64 processor (in place of any cpu); the WixCA_xxxx..dll now targets x64 processor, but the WixCA_xxxx.CA.dll is still a x86 dll! This time, the msi fails to launch the CA as the log says:
MSI (s) (A8:A0) [17:54:28:612]: Hello, I'm your 32bit Elevated Non-remapped custom action server.
...
Error: could not load custom action class WixCA_UsbxpressDriver.CustomActions from assembly: WixCA_UsbxpressDriver
After that, i dropped this solution: using a C# CustomAction, and make a CA using The WixQuietExec custom action family ... this works using command line build with pnputil. The msi starts the CA this time as 64bits code as the log says (and as expected as pnputil.exe is a x64 application):
MSI (s) (E0:20) [20:54:45:345]: Hello, I'm your 64bit Elevated Non-remapped custom action server.
So this message, is to signal what i think is a bug during the generation of the WixCA_xxxx.CA.dll file.
Nice weekend to all
Beta Was this translation helpful? Give feedback.
All reactions