Click here to Skip to main content
15,793,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am using WIX 3.8 to generate an .msi file to install an app. The Wix file contains a custom action :
<CustomAction Id="LanceScripts" FileKey="LanceurScripts" ExeCommand="" Return="asyncNoWait" />
      <Custom Action="LanceScripts" After="InstallFinalize">NOT Installed</Custom>

1) when I start the installation by double-clicking the .msi file, the custom action is not executed !
2) when I start the installation with the msiexec utility (msiexec /i MyApplication.msi /l*v MyLogFile.txt), the custom action is correctly executed !!

Can someone please explain why and what should I do to execute by double-clicking ? Thanks
Sergey Alexandrovich Kryukov 11-Apr-14 14:42pm    
Are you sure you added a custom action?
Sygrien 12-Apr-14 5:54am    
Thanks Sergey,
I don't understand your comment. Yes I added a custom action : please remember the custom action is correctly executed when I use the line command "msiexec" with parameters : "msiexec /i MyApplication.msi /l*v MyLogFile.txt"

1 solution

Please see my comment to the question.

Try to follow these instructions:[^].

You code fragment does not show if you did anything else properly, starting from the Step 2 (see the article referenced above).

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900