tomasz86 Posted June 23, 2012 Posted June 23, 2012 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.dllIf 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.
tomasz86 Posted June 24, 2012 Author Posted June 24, 2012 (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.dllI 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 June 24, 2012 by tomasz86
jaclaz Posted June 24, 2012 Posted June 24, 2012 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 , BUT does 0 mean "True" or "False"? http://msdn.microsoft.com/en-us/library/windows/desktop/ms679279(v=vs.85).aspxReturn valueIf 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
tomasz86 Posted June 24, 2012 Author Posted June 24, 2012 (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.dll70.872: Return Code = 0 70.872: Starting process: rundll32.exe imagehlp.dll,BindImageEx C:\WINNT\Microsoft.NET\Framework\v1.1.4322\vbc.exe70.892: Return Code = 0 70.892: Starting process: rundll32.exe imagehlp.dll,BindImageEx C:\WINNT\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll70.902: Return Code = 0 "0" means "The operation completed successfully". (http://www.hiteksoftware.com/knowledge/articles/049.htm). Edited June 24, 2012 by tomasz86
jaclaz Posted June 24, 2012 Posted June 24, 2012 "0" means "The operation completed successfully". (http://www.hiteksoftware.com/knowledge/articles/049.htm).Yep, point being WHICH operation.... http://www.techtalkz.com/microsoft-device-drivers/250757-all-possible-return-values-rundll32-printui-dll-printuient.htmlhttp://support.microsoft.com/kb/164787/en-usMind you, I am clearly out of my field of knowledge here , but :http://blogs.msdn.com/b/oldnewthing/archive/2004/01/15/58973.aspxMaybe http://msdn.microsoft.com/en-us/library/aa768006(v=vs.85).aspxjaclaz
dencorso Posted June 25, 2012 Posted June 25, 2012 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now