winsxs

TortoiseSVN side-by-side configuration is incorrect

After upgrading to the latest version of TortoiseSVN (1.5.2.13595), it's context menu is no longer available. When attempting to run it manually, I get this error: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail The application log shows thi...

Visual C++ Redistributables without using VCRedist_x86.exe

I'm developing in an environment that is severely constrained, but the developers also have tight control over. VCRedist_x86.exe - A 4Mb redistributable - is no fun (four hours to transfer). I'd really prefer to just redistribute MFC90.dll, msvcm90.dll, msvcp90.dll and msvcr90.dll - that's more like 2Mb. However, Redistributing Visu...

MSVCR90D.dll not found in debug mode with Visual C++ 2008

Hello, I have a problem with Visual C++ 2008. I have installed opencv and I've created a new program and I build it with no errors. However, it complains about not finding MSVCR90D.dll when debugging. In release mode there is no problem at all. I do have MSVCR90D.dll in one of Winsxs folders. Does anyone know a get-around to this prob...

SxS installations and WiX

I'm trying to figure out how to deal with installation and deployment of our project which is a framework. Typically developers would install the framework and then have their .Net applications reference our dlls. The framework has 2 levels: A number of native C++ dlls Some C++\CLI and C# assemblies (all are dlls) that reference the ...

How can I uninstall Win32 assemblies and cleanup WinSxS?

After a lot of trial and error (mostly due to lack of documentation and examples) I have managed to create MSI installers that install custom DLLs to WinSxS as side-by-side assembly. There is only one problem: Uninstalling leaves all files (DLLs, manifests and catalogs) in the WinSxS directory. How can or should I best clean that up? I k...

Is anyone successfully using registration-free COM with .NET components?

Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing randomly on windows XP SP3 (but not on vista) after we only changed the version number of a .NET assembly to move from release candidate to release. (Don't you just ...

Setup asks to reinstall missing dll

I am distributing an application that includes Microsoft XML Parser version 4. I have included the latest Windows XML Parser .msm files that I could find at Microsoft. On some systems my software starts, but shows the 'installer dialogs' as if a setup is running. The Microsoft event log reports: Detection of product '{6C0651D8-DF72-497...

WinSxS: How to take dependency on specific version of gdiplus.dll?

I need to add a dependency on a specific version of GDIPlus. This is the version of GDI+ that i want: I want to be sure that I'm using this version for a specific compatibility reason. I've added an assembly manifest to my executable, defining my dependancy on the version of GdiPlus: <dependency> <dependentAssembly> <assemb...

Uninstalling an in-use shared assembly leaving WinSxs in a bad state.

I am having troubles uninstalling a shared win32 SxS assembly using Wix3 on WinXP. My wix file looks pretty much like the one described in http://n2.nabble.com/Tutorial-How-to-install-files-into-WinSxS-td841475.html. The problem is, if a module from the assembly is in use, the uninstaller completes with a success errorcode but leave...

side-by-side in Windows 7 - also Vista

I am using a tool from Xenocode that can build a virtual application environment. Our application is complex, with several tools and executables that work together. Initially I used a xenocode tool to take a before and after snapshot to generate the original app. Since then I have modified the build script manually. Now I have to add a n...

MSXML: How do ask an IXMLDOMNode what version MSXML it comes from?

How can i ask what version of MSXML an IXMLDOMDocument2 is? Given an IXMLDOMDocument2 i need to create another document of the same version. If you give an IXMLDOMDocument from different versions of MSXML, you will get an exception from msxml: It is an error to mix objects from different versions of MSXML. Microsoft internally can...

Compiling Qt using MSVC 2005 and dealing with SxS Windows

A group I am working with is tasked with developing a new project using Qt. However, we need to be able to link with C++ libraries from the MSVC 2005 world. We will also need to integrate eventually with the MSVC-based build system, so it seems important to build Qt using MSVC. I've recompiled Qt using MSVC 2005, and that works. (if ...

Producing small Windows binaries

When developing and deploying native Windows applications, I often need to install a runtime before being able to run my binary, or statically link the library with my binary. For instance, after building a "Win32 Console" project with Visual Studio 2008, attempting to run the program on a fresh Windows 7 image results in: The applic...

How does WinSxS resolve DLL names to DLL locations?

If I link a module against mydll.dll, which is deployed using WinSxS, the PE header in my module will simply reference "mydll.dll". How does Windows determine at runtime, firstly that this dependency should be loaded via WinSxS, and secondly what assembly it's in? ...

XP Deploying issues due to msvcr90.dll trying to load FlsAlloc

I have an application build with VS2008 SP1a (9.0.30729.4148) on Windows 7 x64 that does not want to start under XP. The message is The application failed to initialize properly (0x80000003). Click on OK to terminate the application.. I checked with depends.exe and found that msvcr90.dll does try to load FlsAlloc from KERNEL32.dll - and...

Is possible to make mt.exe embed manifest files correctly in Visual Studio 2008?

I found that mt.exe fails to correctly create and embed manifest files into executables when run inside a VCPROJ. For example the same executable load well on Windows 7 but failed to load on Windows XP. The manifest was embedded and correct. The place where it fails is inside crtlib.c: if (!(*pfnFindActCtxSectionStringW)(0, NULL, ACT...

Ideas on how to save space with Windows 2008 R2 server on Hyper-V?

I've got this question awhile ago, but it still bothers me. I work with a few virtual machines running Windows 2008 server, mostly demo VMs and test machines. Since most devs use them, I prefer to not have individual setups here and there and maintain a catalog of exported VMs and hard drive images instead. Thanks to side-by-side asse...

Is it possible that an C++ application use CRT 4053 when the manifest uses 762?

My application is compiled on a development PC with a manifest 762: However at runtime, on another release PC, the application uses the 4053 version of the file. c:\windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCR80.DLL Somewhere along the execution of my application I get a runtime error...

Windows update breaks dlls?

I'm compiling a project which uses multiple DLL and compiles with VS2008. After a recent windows update DLLs compiled on my computer stopped working on other computers. After some investigation it turned out that it updated the CRT redistributable library which I'm compiling with from version "9.0.21022.8" to version "9.0.30729.4148" T...

How to install VC80CRT debug runtimes without full visual studio 2005?

I can't run a debug sdk application because it requires both VC 8 and VC 9 versions of the CRT. But it only requires visual studio 2008 for plugin dev, which is what I need. How do I install the debug runtimes from 2005 on to a Windows7 machine? I can't figure out how to make them run app local nor can I copy anything into the winSxS fo...