Solved

Install a dll when window restarts

Posted on 1999-01-23
6
196 Views
Last Modified: 2013-12-03
I have a updated version of a dll that windows95 uses when windows95 is running. This dll has to be copied to windows\system when windows is NOT running.  Which installation wizard allows me to include this dll and can restart windows and copy that dll to windows\system automatically..?

WISE?
Installshield?
0
Comment
Question by:fury
6 Comments
 

Author Comment

by:fury
ID: 1419159
Name of the dll is
Shlwapi.dll

This cannot be copied to windows when windows is running
0
 
LVL 22

Expert Comment

by:nietod
ID: 1419160
I don't know about the install programs, but you can do this using the MoveFileEx() windows API command.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1419161
MoveFileEx() is supported on Windows NT only. On Windows 9x, the alternative way to do it is to use the wininit.ini file. There is a KB article telling you how to do it. Go to http://support.microsoft.com/support and search for wininit. But the way varies with different install programs.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Accepted Solution

by:
calixto earned 50 total points
ID: 1419162
In windows NT you must use the following code:
{
MoveFileEx(szOldDll, NULL, MOVEFILE_DELAY_UNTIL_REBOOT);
MoveFileEx(szNewDll, szOldDll, MOVEFILE_DELAY_UNTIL_REBOOT);
}

In Windows 95 use WritePrivatePRofileString to write in the WININIT.INI file. You must write in the [rename] section something like this:
{
szOldDll=NUL
szOldDll=szNewDll
}

0
 
LVL 22

Expert Comment

by:nietod
ID: 1419163
calixto, both those ideas were already suggested.  Besides, fury seems to want to do this using an installation wizard.
0
 

Author Comment

by:fury
ID: 1419164
I got the answer myself..thanks anyway
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now