Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Why can't you install SPTD.sys without rebooting?

- - - - -

  • Please log in to reply
9 replies to this topic

#1
LeveL

LeveL

    Senior Member

  • Member
  • PipPipPipPip
  • 551 posts
  • Joined 30-September 05
So the latest Deamon Tools v4.08 now supports a silent install,
its really easy too... it only needs the /S switch, but if you ain't
got SPTD on your system before installing Daemon Tools, forget
it - Deamon Tools won't install.

So the answer would be to get STPD installed, registered, up and
running and whatever else it takes then once thats done, install
Daemon Tools v4.08.

The problem is - sucky Windows and the annoying necessity to
always need to reboot! Why though?

What would you need to do to get this sptd.sys driver installed
(copy it to system32/drivers) and set it up so you do not need
to reboot?

I posed this question to someone and they are very experienced
with PC's and programming, they said forget the idea, it cannot be
done, because the "ID has to bind" or something for a SYS file to
install... pah... but it is the fact that it is SO hard to do or maybe
impossible that I want to do it!

I want to install Daemon Tools v4.08 in ONE feld swoop!

How can it be done without a reboot?


How to remove advertisement from MSFN

#2
kof94

kof94

    Advanced Member

  • Member
  • PipPipPip
  • 433 posts
  • Joined 28-November 05
I have to agree in part to this one.

You cannot get around the fact that Windows requires a reboot, it's just the way it is.

However, I can't see why the guys a Daemon Tools couldn't have written a better installer that just installs everything in one hit (SPTD and Program) then reboot.

The fact that they have added a silent switch really makes no difference because of this, everyone is still forced to use Autoit. What was the point?!!!

-kof94

Edited by kof94, 23 December 2006 - 01:58 PM.


#3
LeveL

LeveL

    Senior Member

  • Member
  • PipPipPipPip
  • 551 posts
  • Joined 30-September 05

I have to agree in part to this one.

You cannot get around the fact that Windows requires a reboot, it's just the way it is.

However, I can't see why the guys a Daemon Tools couldn't have written a better installer that just installs everything in one hit (SPTD and Program) then reboot.

The fact that they have added a silent switch really makes no difference because of this, everyone is still forced to use Autoit. What was the point?!!!

-kof94


They probably got so hacked off with 100 people a day asking for
silent support they just did it.

The main thing that annoys me though is, you can install something like nLite
that requires the Microsoft .NET Framework v2.0 and yet nLite still installs no
problem, yeah you do get one single message saying you don't have it installed
and would you like to download it but thats easy to deal with (AutoIt, our saviour)

But with Daemon Tools it refuses to install unless that SPTD is installed and running,
thats just silly... I will just have to go back to v3.46 of Daemon Tools (you know, the
one that didn't have the spyware in it) so I guess I can kill 2 birds with one stone.

#4
scankurban

scankurban

    F_s_M

  • Member
  • PipPip
  • 240 posts
  • Joined 29-August 03
www.duplexsecure.com

"SPTDinst-v138-x86.exe /add /q"

Silent but system must be reboot for ready to use
Posted Image

#5
kof94

kof94

    Advanced Member

  • Member
  • PipPipPip
  • 433 posts
  • Joined 28-November 05

... I will just have to go back to v3.46 of Daemon Tools (you know, the
one that didn't have the spyware in it) so I guess I can kill 2 birds with one stone.


I agree :yes: .

If all you need is a good virtual drive and you don't need the latest copy protection emulation, this is the way to go.

-kof94

Edited by kof94, 23 December 2006 - 05:33 PM.


#6
dakota19

dakota19

    Newbie

  • Member
  • 34 posts
  • Joined 08-February 05
I instal sptd.exe at t12 with cmdlines.txt and then deamon with the first installcmd file it works perfectley that way.

#7
ajua

ajua

    Custom Installer Maker

  • Member
  • PipPipPipPipPipPip
  • 1,261 posts
  • Joined 16-April 05
you can install SPTD driver from SVCPACK.inf and then you can install Daemon Tools or Alcohol without any problems. dowload SPTD drivers from shark007 repository and copy it to i386\SVCPACK in your cd. then open i386\svcpack.inf and add in the section [Hotfixes to run]. if you dont get this, read the unattended guide.

this way works great, i installed alcohol and havent had any issues.

Custom Installers for your unattended needs.


#8
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

www.duplexsecure.com

"SPTDinst-v138-x86.exe /add /q"

Silent but system must be reboot for ready to use


The current version of SPTD is SPTDinst-v150-x86.exe

For silent installing of Daemon-Tools i use the following:

1. look to system32\drivers for sptd.sys
2. if found, you can install daemon-tools
3. if not found install the sptd-driver silent with "SPTDinst-v150-x86.exe add /q"
(NOTE: In the post of 'scancurban' is a / before the add-command, in this version this want not work)
4. copy the installer for daemon-tools and a script to the HDD (better if you want silent install from CD/DVD)
5. run the script from the HDD

OK - now here my complete way

INSTALL.CMD - this scipt starts the install-procedure
@echo off
if not exist %systemdrive%\install\nul md %systemdrive%\install
if not exist %systemdrive%\install\daemon\nul md %systemdrive%\install\daemon
copy daemon* %systemdrive%\install\daemon /v

if exist %systemroot%\system32\drivers\sptd.sys goto isda
start /wait SPTDinst-v150-x86.exe add /q
goto isda

:isda
start /wait %systemdrive%\install\daemon\Daemon_Tools_silent.exe

EXIT

DAEMON_TOOLS_SILENT.AU3 (the script for silent installing Daemon-Tools) THX to unknown MSFN-User
#region - Daemon Tools install script - (Nullsoft)

Opt('TrayIconDebug', 1)

; Installer.
$executable = 'daemon4091-x86.exe'
; Show progess.
$splash = False
; Default catagory folder in startmenu.
$group = 'DAEMON Tools'
; New catagory to move the default folder into.
$catagory = ''
; Installation folder in Program Files.
$directory = 'DAEMON Tools'
; Add Mount to CDRom association
$association = True


; Run the installer.
$exitcode = _Install()
If Not $CMDLINE[0] And $exitcode = 2 Then
	$key_runonce = 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce'
	RegWrite($key_runonce, 'InstallDT4', 'Reg_sz', '"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & @ScriptFullPath & '" /runonce')
	Exit 2
EndIf

; Mount to CDRom association
If $association Then
	$key_iso = 'HKLM\SOFTWARE\Classes\.iso'
	$key_isofile = 'HKLM\SOFTWARE\Classes\isofile'
	RegWrite($key_iso, '', 'Reg_sz', 'isofile')
	RegWrite($key_isofile, '', 'Reg_sz', 'ISO Image')
	RegWrite($key_isofile & '\DefaultIcon', '', 'Reg_sz', @SystemDir & '\shell32.dll,188')
	RegWrite($key_isofile & '\Shell\open', '', 'Reg_sz', 'Mount image to CDRom')
	RegWrite($key_isofile & '\Shell\open\command', '', 'Reg_sz', '"' & @ProgramFilesDir & '\' & $directory & '\daemon.exe" -mount 0, "%1"')
EndIf

; Remove shortcuts.
If _MainShortcut('DAEMON Tools.lnk') Then
;~ 	FileDelete('Uninstall.lnk')
	_Desktop('DAEMON Tools.lnk')
EndIf

; Delete spyware installer.
If FileExists(@ProgramFilesDir & '\' & $directory & '\SetupDTSB.exe') Then
	FileDelete(@ProgramFilesDir & '\' & $directory & '\SetupDTSB.exe')
EndIf

; Remove Autorun entry.
RegDelete('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'DAEMON Tools')
RegDelete('HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'DAEMON Tools')

#endregion

Exit $exitcode

#cs - Exitcodes
	 1 = _Install(): Installer not found
	 2 = Installed SPTD only
#ce

Func _Install($parameters = Default)
; Run a Nullsoft Installer  with Default: /S.
	Dim $splash, $directory
	If $parameters = Default Then
		$parameters = '/S'
		If $directory <> '' Then $parameters &= ' /D=' & @ProgramFilesDir & '\' & $directory
	EndIf
	If Not FileExists(@ScriptDir & '\' & $executable) Then Exit 1
	If $splash Then _Splash('Installing:' & StringTrimRight(StringReplace(@ScriptName, '_', ' '), 4))
	Return RunWait('"' & @ScriptDir & '\' & $executable & '" ' & $parameters)
EndFunc

Func _Desktop($shortcut)
; Delete a Desktop shortcut.
	If FileExists(@DesktopDir & '\' & $shortcut) Then
		Return FileDelete(@DesktopDir & '\' & $shortcut)
	ElseIf FileExists(@DesktopCommonDir & '\' & $shortcut) Then
		Return FileDelete(@DesktopCommonDir & '\' & $shortcut)
	EndIf
EndFunc

Func _MainShortcut($shortcut, $rename = '')
; Change working directory to correct StartMenu\Group directory.
	Dim $group, $catagory, $splash
	If $group = '' Then Return 0
	If FileExists(@ProgramsDir & '\' & $group) Then
		FileChangeDir(@ProgramsDir & '\' & $group)
	ElseIf FileExists(@ProgramsCommonDir & '\' & $group) Then
		FileChangeDir(@ProgramsCommonDir & '\' & $group)
	Else
		Return 0
	EndIf
; Wait for main shortcut.
	If $splash Then _Splash('Waiting for shortcuts')
	For $i = 1 To 20
		If FileExists($shortcut) Then ExitLoop
		Sleep(500)
	Next
	If $splash Then _Splash('Cleaning up:' & StringTrimRight(StringReplace(@ScriptName, '_', ' '), 4))
; If catagory not assigned anything, then return.
	If $catagory = '' Then Return 1
; Move the group folder into the catagory folder.
	If FileChangeDir('..') And DirCopy($group, $catagory & '\' & $group, 1) Then
		If DirRemove($group, 1) Then
		; If optional rename parameter is used, then rename the group folder.
			If $rename <> '' And FileChangeDir($catagory) Then
				If DirCopy($group, $rename, 1) And DirRemove($group, 1) Then
					Return FileChangeDir($rename)
				EndIf
			Else
				Return FileChangeDir($catagory & '\' & $group)
			EndIf
		EndIf
	EndIf
EndFunc

Func _Splash($text = '')
; Shows a small borderless splash message.
	Dim $splash
	If $splash Then
		If $text Then
			SplashTextOn('', $text, 500, 25, -1, 5, 1, '', 14)
		Else
			SplashOff()
		EndIf
	EndIf
EndFunc

Func OnAutoItStart()
; A 2nd script instance will exit.
	If WinExists(@ScriptName & '_Interpreter') Then Exit
	AutoItWinSetTitle(@ScriptName & '_Interpreter')
EndFunc

you must have the following files:

INSTALL.CMD
DAEMON_TOOLS_SILENT.EXE (the converted AU3-script)
daemon4091-x86.exe
SPTDinst-v150-x86.exe

Try out for testing and give little feedback, how it works

SkAvEnGeR

Attached Files



#9
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag
If you try my method, the SPTD-driver will install first.
After reboot the daemon-tools will automatically install. (via RunOnce fron Registry)

Any questions?

SkAvEnGeR

#10
MHz

MHz

    Just simple

  • Member
  • PipPipPipPipPipPipPip
  • 1,656 posts
  • Joined 02-August 04
  • OS:Windows 7 x64
  • Country: Country Flag

DAEMON_TOOLS_SILENT.AU3 (the script for silent installing Daemon-Tools) THX to unknown MSFN-User

The author is here. :)

you must have the following files:

INSTALL.CMD
DAEMON_TOOLS_SILENT.EXE (the converted AU3-script)
daemon4091-x86.exe
SPTDinst-v150-x86.exe

Try out for testing and give little feedback, how it works

SkAvEnGeR

The AutoIt script I created is made to be executed at cmdlines.txt or at a similar time period and will add a runonce entry in to execute from registry if a exitcode of 2 is returned from the DT install. The script is self contained to only require the DT installer alone without any other files. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users