Summary
How to debug a managed code custom action by attaching the msiexec process to Visual Studio 2010.Synopsis
This article explains how to debug a managed code custom action by attaching the msiexec process to Visual Studio 2010.
Discussion
public class CustomClass
return 0;
2. Build a debug version of your solution
3. Call the above method in a managed code custom action and rebuild your msi package
4. Run your MSI package until the MessageBox from the custom action gets displayed
5. Open Visual Studio and from the Debug/Tools menu, select ?Attach to Process? option. Attach the msiexec.exe process that has the type Managed
6. Add a breakpoint in the source code
7. Click the OK button to dismiss the message box
8. You should now be able to debug the custom action
Additional Information
Related Articles
Create 64 bit .NET Application for testing managed code custom action 3Number of Views Writing to the Log File from a Custom Action in an MSI 13Number of Views Debug InstallScript Custom Action Running Deferred In System Context. 4Number of Views Error Values of Managed-Code Actions in a Suite/Advanced UI Installation 4Number of Views InstallScript : How to store an error code from a custom action. 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago