Jump to content

SOOPAFLY

Member
  • Posts

    60
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Israel

Everything posted by SOOPAFLY

  1. WTF is this maybe you should consider posting something more useful
  2. 1.my attempt to install a theme by default has failed for some reason although i think i did all the necessary stuff [shell] DefaultStartPanelOff = No DefaultThemesOff = No CustomDefaultThemeFile = "%WinDir%\Resources\Themes\Watercolor Ergonomic.theme" and put the theme in $OEM$\$$\Resources\Themes\ 2.I need to execute a script upon system reboot after the installation(but it doesn't executes for some reason) so i added the following reg entery to my regtweaks and coppied the script to systemdrive [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "shortcuts"="%SYSTEMDRIVE%\shortcuts.vbs" ---------------------------script_code------------------------------------ ' Some move,create & delete operations ' This script will delete itself upon complition dim fso,demofile,oShellLink,demofolder Set fso = CreateObject("Scripting.FileSystemObject") set WshShell = WScript.CreateObject("WScript.Shell") WScript.Sleep 60000 Set oShellLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\cmd.lnk")) oShellLink.TargetPath = "cmd.exe" oShellLink.Save Set oShellLink=Nothing Set oShellLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\Text_editor.lnk")) oShellLink.TargetPath = "notepad.exe" oShellLink.Save Set oShellLink=Nothing Set oShellLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\RegEdit.lnk")) oShellLink.TargetPath = "regedit.exe" oShellLink.Save Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%\Start Menu\programs\Ahead Nero\Nero - Burning Rom.lnk")) demofile.Move (WshShell.ExpandEnvironmentStrings("%APPDATA%\Microsoft\Internet Explorer\Quick Launch\")) Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Desktop\RegCleaner.lnk")) demofile.Move (WshShell.ExpandEnvironmentStrings("%APPDATA%\Microsoft\Internet Explorer\Quick Launch\")) Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Desktop\FlashGet.lnk")) demofile.Move (WshShell.ExpandEnvironmentStrings("%APPDATA%\Microsoft\Internet Explorer\Quick Launch\")) Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\Programs\Windows Media Player.lnk")) demofile.Delete Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\Programs\Internet Explorer.lnk")) demofile.Delete Set demofolder = fso.GetFolder(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\My Documents\My Music\")) Set demofolder.Attributes = 0 demofolder.Delete Set demofolder = fso.Getfolder(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\My Documents\My Pictures\")) Set demofolder.Attributes = 0 demofolder.Delete Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%appdata%\IconCache.db")) demofile.Delete Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%systemdrive%\shortcuts.vbs")) demofile.Delete WScript.Quit (ohh and the script is errorless it's just an execution prob)
  3. could you explain me how exactly do you do this?
  4. I've found a way to change different windows icons through registry but unfortunatlly i can't find a way to rebuild icon cache during the unattended installation. so if you know a way to do this please tell me
  5. first of all you need to edit the winnt.sif [GuiUnattended] AdminPassword=* AutoLogon=Yes EncryptedAdminPassword=NO than you need to add the following registry tweak [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "DefaultUserName"="your name" "DefaultPassword"="" "AutoAdminLogon"="1" "ForceAutoLogon"="1" ----===HELL YEH===----
  6. in order for vbs to recognize environment variables you need to use the following method (some object).ExpandEnvironmentStrings("%some_variable%\path")
  7. here's a script for NOD32 Antivirus, change the sleep value according to your machine speed (you know the deal paste in notepad and save with the vbs extension) set WshShell = WScript.CreateObject("WScript.Shell") Wscript.Sleep 9000 WshShell.SendKeys "{DOWN}" Wscript.Sleep 100 WshShell.SendKeys "{DOWN}" Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 2000 WshShell.SendKeys "{LEFT}" Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys " " Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{DOWN}" Wscript.Sleep 100 WshShell.SendKeys " " Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{UP}" Wscript.Sleep 100 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys " " Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys " " Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys "{TAB}" Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 1000 WshShell.SendKeys "{ENTER}" Wscript.Sleep 9000 WshShell.SendKeys "{RIGHT}" Wscript.Sleep 100 WshShell.SendKeys "{ENTER}" Wscript.Sleep 2000 WScript.Quit here's a script for regcleaner (again change the sleep values accordind to your machine speed). Set WshShell = WScript.CreateObject("WScript.Shell") WScript.Sleep 1500 WshShell.SendKeys "{Tab}" WshShell.SendKeys "{Tab}" WshShell.SendKeys "{Tab}" WshShell.SendKeys "{Tab}" WshShell.SendKeys "{ENTER}" WshShell.SendKeys "{ENTER}" WScript.Sleep 1000 WScript.Quit here's a script for winrar 3.2 (context menu without icons and will include only extraxt to,extract here,extract(filename) all file associations are being chosed) Set WshShell = WScript.CreateObject("WScript.Shell") WScript.Sleep 3500 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 500 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 500 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 500 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys " " WScript.Sleep 100 WshShell.SendKeys "{TAB}" WScript.Sleep 100 WshShell.SendKeys "{ENTER}" WScript.Sleep 600 WshShell.SendKeys "{ENTER}" WScript.Sleep 3500 WshShell.SendKeys "%{F4}" WScript.Quit
  8. bootfix.bin is a file that causes youe pc to give higher priority to booting from the HD so that it won't boot from the cd every time the installation restarts your pc. this file basically eliminated the hassle of removing the cd before the installation restarts the first time. so after the first restart your hardisk already has a boot information in it's boot section and your pc boots from the hardisk and not the cdrom
  9. If you use sendkeys functions in vbs script like me or you just want to deny the abillity to cancel a specific installation from the user than u must have thought at some point that it will be extremely useful to block user input both from the keyboard and the mouse, aproximately one month ago i started a thread at experts exchange you might want to consider experts i understand that in order to achive this input block you have to deal with the blockinput api but sadly my knowledge of vb equals to zero. unfortunately the exe that the nice guy made for me causes my batch to terminate and also can be overridden with the ctrl+alt+delete combination. so next step will be blocking that combination too. i found a sub routine to achieve this ctr+alt+delete but as i said before i don't know half a thing about vb so it didn't help me. if someone will succeed in making script that will combine the blockinput and the ctrl+alt+del combination block and than another that will reenable them and than of course will be kind enough to post them here or send them to me it will be great here is my email ------->kc_mccloud@yahoo.com
  10. removing bootdix.bin has indeed removed the message but also caused the system to boot into the cd time after time
  11. i just started the virtual pc installation and it didn't show me the message that's for sure i'm now at the stage when setup copies files to the installation folder so i'll have to just wait and see. i myself didn't think that it will be that easy.i relayed on a site that said that in order to have the message displayed you have to place the bootfix file in the i386 directory so i thought that not placing it will diable the message, it's that simple
  12. just deleted the bootfix.bin file fron the i386 directory and there you have it an automatic installation. straight to the inspecting hardware configuration message without tha "press any key.." crap
  13. that's it just finished checking a new image i made with virtual pc
  14. the pe builder has a plugin directory called bootfix it's used to enable the message and it contains only one INI file -------------------------------------------------------------------------------------------- ; bootfix.inf ; PE Builder v3 plug-in INF file for adding bootfix.bin ; Created by Bart Lagerweij [Version] Signature= "$Windows NT$" [PEBuilder] Name="Boot Fix (Enabling ""Press any key to boot from CD"")" Enable=1 Help="bootfix.htm" [sourceDisksFiles] bootfix.bin=1 ---------------------------------------------------------------------------------------------- maybe if i'll change the Enable=1 to Enable=0 it will disable the message that the pe builder will generate a new bootfix.bin and i'll replace with it the default bootfix.bin found in the i386 directory
  15. thanks for your replay green machine if i find something i will certainly tell yo bout it
  16. i'm looking for a way to surpress the "press any key to boot from cdrom" message when i'm booting from the winxp cd so that the installation will start automatically. I think that it will require editting the boot sector. the best site that deals with such things is bart unfortunatly i didn't find there a way to do it but maybe i missed something so check it out.
  17. i have made a custom installation file using wise installer i even made it come directly with a skin if you want i can email it to you but it's a lite version though
  18. great idea it would be great if you'll post a rerply from them if you'll get it ofcourse
  19. ohh and here is my batch once again ignore the "eNTER press" effect this isn't how it's in my batch CLS @echo off COLOR 0a TITLE Unattended Applications setup ECHO. ECHO Starting Unattended Applications setup ECHO. ECHO Installing Diskeeper 8.0.459 and setting scheduled task... start /wait %systemdrive%\install\Applications\Diskeeper8\DKPE.msi /qb MD "%programfiles%\Executive Software\Diskeeper\Scheduler" XCOPY "%systemdrive%\install\Applications\Diskeeper8\DfrgUINetCtrlFile" "%programfiles%\Executive Software\Diskeeper\Scheduler\" /C /H /R /Y ECHO. ECHO Installing Nero Burning ROM v5.5.10.50 and plugins... start /wait %systemdrive%\install\Applications\Nero5.5.10.50\nero551050.exe /silent /noreboot REGEDIT /S %systemdrive%\install\Applications\Nero5.5.10.50\register.reg ECHO. ECHO Installing Adobe Acrobat 4.05... start /wait %systemdrive%\install\Applications\Adobe_Acrobat4.05\ar405eng.exe -s -f1"%systemdrive%\install\Applications\Adobe_Acrobat4.05\setup.iss" RD /S /Q "%allusersprofile%\Start Menu\Programs\Adobe Acrobat 4.0" DEL "%allusersprofile%\Desktop\Acrobat Reader 4.0.lnk" ECHO. ECHO Installing AcdSee 3.1... start /wait %systemdrive%\install\Applications\AcdSee3.1\AcdSee3.1.EXE /s ECHO. ECHO Installing RegCleaner 4.3 and setting scheduled task... start /wait %systemdrive%\install\Applications\RegCleaner4.3\RegCleaner.exe call cscript %systemdrive%\install\Applications\RegCleaner4.3\regcleaner.vbs XCOPY "%systemdrive%\install\Applications\RegCleaner4.3\RegCleanr.job" "%systemroot%\Tasks\" /C /H /R /Y ECHO. ECHO Installing Winrar 3.20... start /wait %systemdrive%\install\Applications\WinRAR3.2\wrar320.exe /silent call cscript %systemdrive%\install\Applications\WinRAR3.2\winrar.vbs ECHO. ECHO Installing Winamp Lite 2.91... start /wait %systemdrive%\install\Applications\Winamp2.91\winamp291.exe /S ECHO. ECHO Installing Video and Audio Codecs... start /wait %systemdrive%\install\Codecs\DivX505proCorp.exe start /wait %systemdrive%\install\Codecs\ac3filter_0_68b.exe /S start %systemdrive%\install\Codecs\xvid\XviD_Install.exe /S call cscript %systemdrive%\install\Codecs\xvid\enter.vbs start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\Lame3.92\LameACM.inf start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\mpeg4x\mpeg4fix.inf ECHO. ECHO Installing Flashget v1.4... start /wait "%systemdrive%\Install\Applications\Flashget1.4\fgf140.exe" /s REGEDIT /S "%systemdrive%\Install\Applications\Flashget1.4\regkey.reg" ECHO. ECHO Installing Sygate Personal Firewall Pro 5.1.... start /wait %systemdrive%\install\Applications\SPFP\setup.exe -s -f1 %systemdrive%\install\Applications\SPFP\setup.iss REGEDIT /S %systemdrive%\install\Applications\SPFP\register.reg ECHO. ECHO Installing NOD32 NOD32 Antivirus System... Start "%systemdrive%\install\Aplications\Nod32\setup.exe call cscript "%systemdrive%\install\Aplications\Nod32\silent.vbs" XCOPY "%systemdrive%\install\Aplications\Nod32\nod32kui.exe" "%programfiles%\eset\" /C /H /R /Y XCOPY "%systemdrive%\install\Aplications\Nod32\nod32.exe" "%programfiles%\eset\" /C /H /R /Y XCOPY "%systemdrive%\install\Aplications\Nod32\ps_upd.dll" ""%programfiles%\eset\" /C /H /R /Y ECHO. EXIT
  20. just finished checking bO3d solution with virtualpc (removing wordwrap so that all switches will be in one line) and it didn't help so i think that AARON XP was right after all,strange i can't think of why this is happening so if someone knows the reason for this sudden termination please share it with me,because although merging my two batch together won't create any physical problems it sure does messes the cosmetics and order and fplaces an obstacle in future debugging proccedures
  21. well maybe i'm wrong but from looking on the winnt.sif the only possible problem could be wrong or unappropriate cd key
  22. dammmm i think bOr3d was right i had the wordwrap enabled in notepad that's why i had the switches moved to next line
  23. first of all i want to thank everyone that bothered to help me , i actually was thinking in aaron xp's solution way not to mention that he experienced the exactly same problem as me and about the spaces i have placed the switches in the same line as the command as bOr3d suggested in the first place but for some reason when i pasted it from my batch file the commands got massed up
  24. but than the installation wouldn't be unattended what's tha point in this?
×
×
  • Create New...