mjmsmith
Posts: 1
Joined: Thu Nov 04, 2004 6:26 pm

install only newer version of system dll?

I'm sure this is really obvious, but I'm just not seeing it... I need to install a VC++ runtime DLL in \Windows\system32, but I don't want to overwrite an existing one unless it's older. How do I specify this condition?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I need to install a VC++ runtime DLL in \Windows\system32, but I don't want to overwrite an existing one unless it's older
This is automatically done by windows installer so all you need to do is to put that dll in system folder from "Files And Folder" page. To learn more about file versioning rules see:
http://msdn.microsoft.com/library/defau ... ioning.asp

However it is not recommended to install your dll in \Windows\System32 directory. I would recommend installing it next to your application executable. If this dll is used by multiple applications then create a merge module project and put the dll in a common folder like "Program Files->Common Files". Then use this merge module in all your applications that use this dll.

Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”