License agreement: This program was written by Underheaven.
You may use the software but NO warranties are expressly stated or implied, I take no responsibility for the outcomes of using the "SPTD Deleter" program.
And before I forget, the last line of the License agreement: USE AT YOUR OWN RISK!!


Reminder: SPTD Deleter needs SubinACL. You'll need to download it yourself.

You can type "SubinACL" into google and be linked to a download URL at microsoft's website. Install that program somewhere into C:\Program Files and then copy/paste the SubinACL.exe program into the same folder where you've saved SPTD Deleter.exe.

Description and purpose:
SPTD Deleter is designed to uninstall the SPTD driver and its registry keys. After uninstalling you may leave SPTD off your computer forever or you may reboot and install Alcohol or DAEMON Tools again. Support for Windows x64 Editions has just been added, let me know if you experience any troubles.

As you may or may not know, removing DAEMON Tools or Alcohol using their respective uninstall program does not remove the ASPI-like access layer (SCSI Pass Through Direct) that is installed when you first install the program. SPTD is not removed for compatibility reasons with all other programs that may use the features of SPTD. A properly working installation of the SPTD layer is a requirement for DAEMON Tools 4.xx and Alcohol 1.9.5.3823 52%/120%. However there are a few situations in which SPTD will fail to load or you will be presented with messages from the DAEMON Tools installation program such as the following:

"Cannot open config key"
"System file error"
"System file write error"
"System file read error"

Or after rebooting after clicking OK on the 'SPTD is incompatible with kernel debuggers' warning screen you see a message from DAEMON Tools such as the following:

"
Initialization error.
This program requires at least Windows 2000 with SPTD 1.24 or higher.
Kernel debugger must be deactivated.
"
or a message from Alcohol 52%/120% such as the following:

"
Loading Alcohol device drivers failed!
Emulation options and native driver interface of Alcohol 120% will not be available!
"

This is a symptom that the SPTD driver was not installed successfully. If you have a fully working DAEMON Tools or Alcohol installation and you later perform a system 'Repair' from the Windows Installation CD your SPTD configuration will be erased and the normal SPTD install process will not be able to cope with your system.




So what is SPTD Deleter?
It is a program similar to, and possibly a replacement for the "sptdinst_x86.exe remove" / "sptdinst_x64.exe remove" command.
Sometimes the sptdinst program will attempt to remove all the SPTD hard disk driver files and registry information but will not entirely succeed. Sometimes the sptdinst program will report back with a message such as "SPTD is currently not installed".

There are also some users who are not familiar with the command line and have trouble CD-ing into their download folder and then typing "sptdinst_x86.exe remove" without the quotes. In this case SPTD Deleter is an alternative (supposing no trouble is encountered when copying SubInACL into the proper folder).

In the situations described above you can run the SPTD Deleter program. It will uninstall the SPTD driver and its registry keys and report back with success or error messages (as the case may be).




A simple flowchart for using the program would be:

1. Make sure you have the .Net framework 1.0 or greater installed.
2. Download subinacl from 

http://www.microsoft.com/downloads/details.aspx?FamilyId=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en

3. Install subinacl and then copy subinacl.exe from the "Program Files\Microsoft Resource Kit tools\...." folder into the same folder as SPTD_Deleter.exe
4. Turn off your virus scanner, anti-spyware, and software firewalls
5. Reboot in safe mode and stay near the keyboard, hit ESC when prompted (IF you are prompted to disable the SPTD driver)
6. Run SPTD_Deleter.exe
7. Reboot and attempt to install DAEMON Tools, Alcohol, and/or SPTD and you should be able to install without seeing the "Cannot open config key" error message.
7a. Note: Some users have reported success when running "sptdinst_x86.exe add" while still in Safe Mode and after having just run the SPTD Deleter program. You may choose to install SPTD manually or let Alcohol or DAEMON Tools automatically install SPTD when you run their respective installation programs.
8. Reboot and then enable your virus scanner,  anti-spyware, and software firewalls again *AFTER* DAEMON Tools and SPTD have been installed and your system has been rebooted after being prompted by the install program.







FAQ:



#1) Q: What do I do if I get an error message when I double click SPTD_Deleter.exe?

A: The following errors indicate that the Microsoft .NET Framework is either corrupted or not installed.

    Error: "The application failed to initialize properly" 
    Error: "MSCOREE.DLL was not found" 

    The Solution: Install the Microsoft .NET Framework version 1.0 or higher

#2) Q: How do I manually check to see if I have the Microsoft .NET Framework installed?
A:

Option 1)

http://www.asp.net/webmatrix/CheckDotNet.aspx
or
http://weirdsilence.net/tools/checkdotnet/

Option 2)
Check this registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\

Option 3)
Check this folder:

Windows\Microsoft.NET\Framework

#3) Q: I see the message "WARNING :Unable to set SeSecurityPrivilege privilege. This privilege may be required." in the output.txt file.
What does this mean?

A: This basically means you do not have full administrative privileges.

#4) Q: Why can't I install subinacl through the subinacl.msi file in safe mode?

A: Windows installer normally doesn't load in safe mode and you'll have to run the installation program before booting into Windows safe mode.

#5) Q: The output.txt file is large and often includes messages such as "87 The parameter is incorrect" or "2 The system cannot find the file specified". What does this mean?

A: Users will hardly ever need to open the output.txt file. It is just included for curious users and debugging purposes. The mentioned messages are perfectly normal and can be ignored.

#6) Q: SPTD_Deleter.exe appears to hang and doesn't respond after a few minutes.

A: If this happens use Windows Task Manager's Processes tab to End Task on the program. Start it again or reboot your machine into safe mode again and then try again. The cause is being looked into. 

#7) Q: SPTD setup V1.24 says "Failed to oped service key." when I try to install DAEMON Tools, Alcohol or SPTD. Why could this be?

A: This is one of the biggest problems and toughest questions to answer.
   You can't always install the SPTD layer if you just ran SPTD Deleter and did not reboot yet
    or if you ran "sptd_inst(xARCHITECTURE).exe remove" or used some other manner to cause the service to be pending deletion.
   You should try rebooting at least once and run the DAEMON Tools, Alcohol, or SPTD install program again.
   You may not have the ability to install other drivers either. One simple test is to download Filemon from:
   http://www.sysinternals.com/Files/Filemon.zip and then run Filemon.exe. Even if you are in safe mode you still should
   not see the message "Your account does not have the Debug Programs privilege, which is required to run Filemon".
   When in normal windows and not safe mode if you run Filemon.exe and then receive the error
   "Error loading FILEMON701: The system cannot find the file specified." then your system is blocking driver installations
   and the problem is not specific to the SPTD install process.



v1.0.0.23