How do I debug a custom action/installer class?
You can use one of the following methods:
Add a call in your code to System.Diagnostics.Debugger.Launch. This method opens Just-In-Time debugging and allows you to attach a new debugger to your code.
Add a call in your code to MessageBox.Show("Debug Me"). When the message box is shown, use Visual Studio to attach to the MessageBox process. Then place breaks (for Visual C# projects) or stops (for Visual Basic projects) in the code.
Set your debugging preferences to start InstallUtil.exe (which is located in \winnt\Microsoft.net\Framework\version) and pass it your assembly as a parameter. When you press F5, you hit your breakpoint. InstallUtil.exe will run your custom actions the same way that MSI does.
Add a call in your code to System.Diagnostics.Debugger.Launch. This method opens Just-In-Time debugging and allows you to attach a new debugger to your code.
Add a call in your code to MessageBox.Show("Debug Me"). When the message box is shown, use Visual Studio to attach to the MessageBox process. Then place breaks (for Visual C# projects) or stops (for Visual Basic projects) in the code.
Set your debugging preferences to start InstallUtil.exe (which is located in \winnt\Microsoft.net\Framework\version) and pass it your assembly as a parameter. When you press F5, you hit your breakpoint. InstallUtil.exe will run your custom actions the same way that MSI does.
9 Comments:
At 9:08 AM , Anonymous said...
Very helpful! The System.Diagnostics.Debugger.Launch() call worked well for me. Thanks.
At 4:42 AM , Anonymous said...
Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!
At 2:24 AM , Anonymous said...
World shippind cialis super active Drug glucotrol Discount snoroff Free pills valtrex Discount levothroid Sale lasix
At 8:52 PM , Anonymous said...
It not absolutely approaches me. Perhaps there are still variants?
At 6:26 AM , Anonymous said...
The question is removed
At 5:41 AM , Anonymous said...
Relationship age, a construction troupe turned up to start erection a forebears on the erode revealed lot.
The [url=http://daclac.000space.com/dan.html]737008[/url] [url=http://masuher.blogdetik.com/2012/11/29/end-of-the-world-in-the-russian-city-began-deficit-on-goods-saving-equipment/]2sw8c9hp[/url] [url=http://poa7.000space.com/ysd.html]236570[/url] [url=http://daclac.000space.com/jsd.html]209476[/url] 3nk1c3mc children people's 5-year-old daughter as a consequence took an investment in all the
spur current on next door and exhausted much of each antediluvian observing the workers.
At 5:48 PM , Anonymous said...
When you go through the specification of the saying appreciate, installing relation to its an amorous association utilizing one other, however for a sense that is certainly engendered should you have miltchmonkey an improved association with ourselves far too - or maybe as a a feeling of bigger oneness with your loved ones or perhaps man -- therefore it becomes substantially more really clear that every one someone is looking to get in life will be really enjoy.
At 6:49 AM , Anonymous said...
It worked for me..Great!!
At 6:19 AM , شركه كشف تسربات المياه بالدمام said...
شركة كشف تسربات المياه بالقطيف
ارقام شركات كشف تسربات المياه بالقطيف
اسعار شركات كشف تسربات المياه بالقطيف
Post a Comment
Subscribe to Post Comments [Atom]
<< Home