Solved

Install a dll when window restarts

Posted on 1999-01-23
6
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Duplicates in Aggregate Query 3 50
How Does Quick Books store date / time? 3 109
Changing the installation path of this MSI 5 113
Is IHttpActionResult a promise pattern? 2 74
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 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