Re: VS2005, Debugging my CustomInstaller.dll



HI all,

After many days, I finally found a solution to my problem of not being able
to "Attach a Process", MSIEXEC.EXE, for debugging.

It turns out that the MSIEXEC.EXE had a Type "x64" and it was that setting
that could not be attached for debugging. I finally found out from a clue on
another matter, after much digging around on the Microsoft site, that you
need to start Visual Studio 2005 using "Run as administrator", after
right-clicking on the VS2005 desktop icon.

Starting up VS2005 in this mode changes the MSIEXEC.EXE process to Type
"Managed, x86" and now you can attach this process for debugging.

I hope this solution might help others to avoid the frustration I went
through on this issue.

Regards,
Neville Lang




"Neville Lang" <neville@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23xHxQr1cHHA.2332@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,

First my setup: VS2005 on Windows Vista 64-bit, Windows Mobile 2003 on
connected device, CustomInstaller.dll is written in C# in VS2005. Compact
Framework (CF) app that has some x86 EXEs on the desktop side and some CF
EXEs on the device side installed using CAB's and controlled by MSI /
Setup.exe.

I am having trouble attaching the VS2005 debugger to my
CustomInstaller.dll during the app's Uninstall process. In my C# Uninstall
code in my CustomInstaller, I added a MessageBox.Show("xxxx") to stop the
uninstall process so that I could attach the VS debugger and step through
my CustomInstaller code.

Prior to migrating my Solution from VS .NET 2003 to VS2005, something I
have done just recently, I could easily debug the CustomInstaller.dll by
attaching the MSIEXEC.EXE process to the VS .NET 2003 Debugger via VS's
Debug > Attach to Process... I find I cannot do this in VS2005 on Vista
64. I keep getting the error message "Unable to attach to the process. The
system cannot find the file specified."

Has anyone else encountered this problem in VS2005? Could this be a VS2005
problem only on Vista 64?

Regards,
Neville Lang




.



Relevant Pages

  • Re: vkernel & GSoC, some questions
    ... Can't you say qemu -s and attach gdb to that port as well? ... printf debugging was sufficient for me so far. ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. ...
    (freebsd-hackers)
  • RE: Anyone else seeing this kind of debugger hang?
    ... Open a second Visual studio and attach the debugger to ... Now start debugging your project. ... >>Regards, Walter ... > other times depending on ...
    (microsoft.public.vsnet.debugging)
  • RE: "The object exporter specified was not found"
    ... When you debug a ASP.NET app on a remote machine, ... "attatches" to the debugging components on the web server. ... you want to attach to. ... debugging a remote web app, service, process or gui application. ...
    (microsoft.public.vsnet.debugging)
  • Re: Microsoft CLR Debugger in Compact dot net framework
    ... I use Visual Studio 2005 for development and it allows to run a PPC ... application in debug mode and do everything as if you ... attach the debugger to the process. ... debugging features are now probably exceeding those in WinDbg. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Data::Dumper for java
    ... network rules about which machines attach to which, ... connections as well.. ... debugging a problem without an adequate debugging harness. ... that you can attach a debugger. ...
    (comp.lang.java.programmer)