Installing Dll in windows\system32

  • Thread starter Alhambra Eidos Desarrollo
  • Start date
A

Alhambra Eidos Desarrollo

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.
 
A

Alberto Poblacion

"Alhambra Eidos Desarrollo"
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.
 
A

Alhambra Eidos Desarrollo

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.
 
A

Alberto Poblacion

"Alhambra Eidos Desarrollo"
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top