Trying to run sysprep - fatal error because MSE was once installed

I have a W7 Prof 64 bit machine I am trying to Sysprep.
I had MSE installed previously and uninstalled it.
I am aware of the REARM issue and I dont believe it to be the cause.

I have followed various guidance to remove all trace of MSE from the Registry and also ran a Fixit for me tool, plus run a batch file to clean out the registry.

I still get the following errors in setuperr.log in Panther
2012-11-01 13:45:15, Error      [0x0f0085] SYSPRP LaunchDll:Could not load DLL c:\Program Files\Microsoft Security Client\MSESysprep.dll[gle=0x0000007e]
2012-11-01 13:45:15, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 126[gle=0x0000007e]
2012-11-01 13:45:15, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x8007007e[gle=0x0000007e]
2012-11-05 11:13:38, Error      [0x0f0089] SYSPRP LaunchDll:Received invalid DLL path[gle=0x00000002]
2012-11-05 11:13:38, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 87[gle=0x00000002]
2012-11-05 11:13:38, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070057[gle=0x00000002]
2012-11-05 12:00:05, Error      [0x0f0089] SYSPRP LaunchDll:Received invalid DLL path[gle=0x00000002]
2012-11-05 12:00:05, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 87[gle=0x00000002]
2012-11-05 12:00:05, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070057[gle=0x00000002]
2012-11-05 12:09:40, Error      [0x0f0089] SYSPRP LaunchDll:Received invalid DLL path[gle=0x00000002]
2012-11-05 12:09:40, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 87[gle=0x00000002]
2012-11-05 12:09:40, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070057[gle=0x00000002]
2012-11-05 13:37:14, Error      [0x0f0089] SYSPRP LaunchDll:Received invalid DLL path[gle=0x00000002]
2012-11-05 13:37:14, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 87[gle=0x00000002]
2012-11-05 13:37:14, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070057[gle=0x00000002]
 can anyone offer advice please?
thanks
 

Question Info


Last updated June 24, 2019 Views 21,978 Applies to:
Answer
Answer

Hi,

 

I have/had the same problem, but I remembered from a different sysprep issue that sysprep executes those DLL's because they are mentioned in a registry location. That location is this:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Cleanup

 

Obviously the usual precautions are necesary when editing the registry.

 

If you really have uninstalled MSE, remove the DLL that is the culprit, in this case the one that is mentioned in the log:

 

c:\Program Files\Microsoft Security Client\MSESysprep.dll

 

Just another uninstaller not properly cleaning up after itself :(

 

How hard can it be?

 

Anyway, probably too late for you, but for the benefit of others at least.

 

I'll report back if this _didn't_ work.

 

Edit: It did work, sysprep runs fine again now :)

14 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.