Solved

Install a dll when window restarts

Posted on 1999-01-23
6
201 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

688 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