Jump to content

skavenger

Member
  • Posts

    55
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Everything posted by skavenger

  1. Hello Tomcat76, this is a really great script. I´m long time waiting for. it works like a charm. THX Now i wrote an Add-On for your script. With my Add-On it is more simple for the users to create silent installer. My Add-On get all needed files directly from MS via wget and more What my AddOn makes. - contains own folder for every version of .NET - contains text-files with download-locations within (english and german) - contains wget.exe (a freeware commandline tool for downloads) - contains two installer scripts (english and german) Whats to do for the users: - download my script attached and unpack to your own folder - download the original SNM-script from Tomcat76 and extract the content in the existing folder SNM - rename the script " SNM.cmd" in the SNM-folder to "1SNM.cmd" - edit the _SNM.ini with your settings - run the installer for your language (install_en.cmd or install_de.cmd) I hope, that´s OK for you. Please try it out and give me a short feedback. Long story short...here is my AddOn: Download SNM-AddOn.rar SkAvEnGeR PS: Sorry for my english. I´m from germany and teach english by myself.
  2. 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
  3. 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 DAEMON_TOOLS_SILENT.rar
  4. Hello, i use the great WIHU for a big unattended install. Sometimes, if something wrong in the INI-file or the silent-script, WIHU gives me some different error-codes. Now i´m searching for a place, where they are explained. my errors are: 00000000 <- file not found? 00000002 00000653 0000042b 00000103 I hope, that anyone can me explaine these error-codes. If there are more error-codes, please explain me these too. Thanks in advance SkAvEnGeR
  5. Hello hp38guser, Thank your for your great work i've tried to compile my own lite-pack from Nero with the source-pack from your homepage with my own setting. It doesn't work. because in the script i found the following line: #include ISSI_IncludePath+"\_issi.isi" But in the source from you homepage i can't find it. My error or have you forget to include this file "_issi.isi" in the source-pack? SkAvEnGeR
×
×
  • Create New...