Archive: Debugging Installations


Debugging Installations
Hi,
I would like to add some features to NSIS and in order to-do that I need to debug the Installation the actual exehead. Does someone found a way todo so?

-BlackEnd


Debug version of NSIS never compiled right. You have two options, first is to make the debug version compile, second is to just use message boxes.


What's the Debug Version The Project compiled in Debug Mode? it compiles well for me. I think that the best way to debug will be warp all exehead in a DLL, so that the Installation will only load the dll and pass the data to it. That way it will be easy to debug the actual installation. Has some one done it?, how the hell Justin debug it?


By debug version I mean that the project is compiled in debug mode, yes.

Personally, I just use MessageBoxes... No need for fancy shmensy debuging tools. I have no idea how Justin does it.


You could use the OutputDebugString command and capture the output using the DebugView tool.


MessageBox, OutputDebugString, I'm going to implement the DLL debugging. Not having the ability to proper debug the installation engine will not get it too far...


However remember that OutputDebugString has many advantages in some situations over actually using the debugger. It doesn't screw up timing, threads still run while you see what's going on, and many others. All I'm saying is don't dismiss OutputDebugString so easily :D


OutputDebugString does a context switch, those "Screwing" your thread timing...


Sorry I was meaning large scale (i.e. human terms like seconds) level timing is screwed by halting in a debugger when u can just watch OutputDebugString info, and secondly the only way I can see what is going on with multiple threads of execution running (that aren't highly sensitive to small timing issues like a context switch) is using logged output rather than a debugger.

Anyway nuff said, it was just a suggestion :p