471,349 Members | 1,173 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

Installing Dll in windows\system32

Hi misters,

I continue installing; my production PC is Windows 2003

I need copy dll (C runtime DLL msvcr71.dll) to windows\system32 directory if
not installed yet.

I want create Setup project.

Any suggestions for do it ? Do I need add the DLL to project like embedded
resource ??

Thanks in advance and greetings.
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 17 '08 #1
3 7003
"Alhambra Eidos Desarrollo"
<Al*********************@discussions.microsoft.com wrote in message
news:E4**********************************@microsof t.com...
I need copy dll (C runtime DLL msvcr71.dll) to windows\system32 directory
if
not installed yet.

I want create Setup project.

Any suggestions for do it ? Do I need add the DLL to project like embedded
resource ??
If you are creating a setup and deployment project in Visual Studio, it
is quite simple: just open the File System Editor, select the option to add
a special folder, add the system32 folder, and drag your dll to that folder.
The dll wil be compressed into the .msi; you don't need to do anything to
embed it into your deployment project.

Sep 17 '08 #2
Thanks !! Mister, your help is great !!!

Only question more, how I test if the dll is installed yet ?? Can I add any
condition anyway in Setup Project ??
The test will be like

if !File.Exists("c:\windows\system32\mscrv71.dll")

Thanks again.

Sep 17 '08 #3
"Alhambra Eidos Desarrollo"
<Al*********************@discussions.microsoft.com wrote in message
news:2F**********************************@microsof t.com...
Only question more, how I test if the dll is installed yet ?? Can I add
any
condition anyway in Setup Project ??
The test will be like

if !File.Exists("c:\windows\system32\mscrv71.dll")
There is a "Condition" Property in the properties window for the file
that you added in the File System Editor. The condition needs to be
satisfied for the file to be installed. However, the syntax for the
Condition is specific to the installer, so it does not accept a C#
expression like the one you wrote above. Unfortunately, I am not familiar
enough with the installer to tell you the expression that will check that
the file doesn't exist.

I imagine that you want to preserve the contents of your database when a
newer version of your program is installed. However, it is quite likely that
the new version of your database will contain some schema changes relative
to the previous version, so you will need to execute some code to "update"
the existing database. I would suggest installing the new file to a temp
folder, and then running a Custom Action (programmed in C# inside an
Installer Class) to move and reorganize your data or files as needed.

Sep 17 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jean-Christian Imbeault | last post: by
5 posts views Thread by Gerald Hernandez | last post: by
reply views Thread by Steve | last post: by
3 posts views Thread by jaggi | last post: by
11 posts views Thread by tshad | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.