Solved

Install a dll when window restarts

Posted on 1999-01-23
6
195 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

18 Experts available now in Live!

Get 1:1 Help Now