MSFN Forum: How to bind and unbind files? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to bind and unbind files? BindImageEx function Rate Topic: -----

#1 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 23 June 2012 - 10:16 AM

Does anyone know how to bind and unbind files?

What I managed to find out is that BindImageEx can be used to bind...

Would this work?

rundll32.exe imagehlp.dll,BindImageEx file.dll

If yes then how to unbind a bound file?

I've also found some info about using a "bind.exe" from Visual Studio but I can't find neither details about the tool nor a link to a place where it can be downloaded.


#2 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 23 June 2012 - 11:08 PM

The above command seems to work... but I've got no idea how to unbind the files :/

The problem is about this:

There's an INF file.

[DefaultInstall]

BindImage = BindImage_netfx


[BindImage_netfx]

%10%\Microsoft.NET\Framework\v1.1.4322\cscomp.dll
%10%\Microsoft.NET\Framework\v1.1.4322\vbc.exe
%10%\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll


I want to use the command from commandline so I use this:

"rundll32.exe imagehlp.dll,BindImageEx %10%\Microsoft.NET\Framework\v1.1.4322\cscomp.dll"
"rundll32.exe imagehlp.dll,BindImageEx %10%\Microsoft.NET\Framework\v1.1.4322\vbc.exe"
"rundll32.exe imagehlp.dll,BindImageEx %10%\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll"


It retrieves error code 0 so I think it does work. Now I'd like to unbind the files when the whole thing is uninstalled. How to do it? Is it even possible?

This post has been edited by tomasz86: 23 June 2012 - 11:09 PM


#3 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,433
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 24 June 2012 - 09:25 AM

View Posttomasz86, on 23 June 2012 - 11:08 PM, said:

It retrieves error code 0 so I think it does work. Now I'd like to unbind the files when the whole thing is uninstalled. How to do it? Is it even possible?

I have NO idea of what you are talking about :unsure:, BUT :ph34r: does 0 mean "True" or "False"? :rolleyes:
http://msdn.microsof...9(v=vs.85).aspx

Quote

Return value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.


jaclaz

#4 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 24 June 2012 - 09:50 AM

I'm sorry, I should be clear. I meant the value in the logfile (from M$ hotfix installer):

70.862: Starting process:  rundll32.exe imagehlp.dll,BindImageEx C:\WINNT\Microsoft.NET\Framework\v1.1.4322\cscomp.dll
70.872:  Return Code = 0 
70.872: Starting process:  rundll32.exe imagehlp.dll,BindImageEx C:\WINNT\Microsoft.NET\Framework\v1.1.4322\vbc.exe
70.892:  Return Code = 0 
70.892: Starting process:  rundll32.exe imagehlp.dll,BindImageEx C:\WINNT\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll
70.902:  Return Code = 0 

"0" means "The operation completed successfully". (http://www.hiteksoft...rticles/049.htm).

This post has been edited by tomasz86: 24 June 2012 - 09:51 AM


#5 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,433
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 24 June 2012 - 11:03 AM

View Posttomasz86, on 24 June 2012 - 09:50 AM, said:

"0" means "The operation completed successfully". (http://www.hiteksoft...rticles/049.htm).

Yep, point being WHICH operation.... :wacko:
http://www.techtalkz...printuient.html
http://support.micro...kb/164787/en-us

Mind you, I am clearly out of my field of knowledge here :ph34r: , but :
http://blogs.msdn.co...1/15/58973.aspx

Maybe :unsure:
http://msdn.microsof...6(v=vs.85).aspx

jaclaz

#6 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,866
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 25 June 2012 - 05:07 AM

The ultimate uninstaller for .NET Framework is Aaron Stebner's .NET Framework Cleanup Tool.
I suggest you use it as the standard uninstaller, or if you wish to learn more, then study it to incorporate its functions into your own uninstaller.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy