Replacing advapi32.dll in XP SP2 and XP SP3

I

Izyani

Hi,
I am currently develop a CSP program for Windows XP. Currently I'm using XP
SP3. In order for me to develop the CSP program, I need to replace the new
advapi32.dll in c:\windows\system32 folder.

What I need previously was just rename the current advapi32.dll to
advapi32.bak. Then I replace the new advapi32.dll (I change the offset value
for certain data). When I did the same thing for Win XP SP3, it didn't work
at all. Each time after I replace the advapi32.dll, I refresh the folder and
I find out that the system will replace the advapi32.dll file with the
previous file version, not the one that I replace.

Is there any procedures/step that I need to take whenever I want to replace
the advapi32 file?

Thank You
 
R

Randem

Yes, that is the function of Windows Protection to not allow anything or
anyone to replace current versions of OS files. If you really want to
rollback that version of the file you need to boot from a CD such as Bart PE
or you can use safe mode to replace the file. You also have to replace the
file in the Windows\System32\dllcache folder. This is where Windows gets
it's second copy to replace the on you put there. You may need to run
scannow http://www.microsoft.com/whdc/archive/wfp.mspx to complete the
replacement.

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
http://www.rndem.com/installerproblems.html
http://www.randem.com/vistainstalls.html
http://www.financialtrainingservices.org
 
I

Izyani

Hi Randem,

Thank You for your answer.

I already try to restart in safe mode and try to replace the advapi32.dll
file and it works.

Thanks.

regards,
Yani
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top