Jump to content

Recommended Posts

Posted

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.


Posted (edited)

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?

Edited by tomasz86
Posted

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.microsoft.com/en-us/library/windows/desktop/ms679279(v=vs.85).aspx

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

Posted (edited)

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.hiteksoftware.com/knowledge/articles/049.htm).

Edited by tomasz86

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...