Solved

Install a dll when window restarts

Posted on 1999-01-23
6
200 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run Program using VBScript 3 83
Table Size and Indexes in SQL Server 6 34
Winform not working on 64 bit machine 31 105
T-SQL Debugging - Temp Object Content 2 56
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…

732 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