Jump to content

JayDogg

Member
  • Posts

    62
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by JayDogg

  1. ok I have tested it and it looks like I can call it from a batch script. =) Can you make sure this code is right for me @Reg "HKEY_CLASSES_ROOT\Directory\shell\Command Prompt\command" /ve /d "\"cmd.exe\" /k cd \"%%1\"" /f>Nul Here is what the .reg key I exported says Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Command Prompt\command] @="cmd.exe /k cd %1"
  2. Cool thanks you very much, I totaly get it now Im a bit of a newbie with batch and cmd file. Hey do you know if you can call a cmd file from bat file. I ask cause on my windows disk after it installs and boots up for the first time it runs a setup.bat which install some programs and cleans up the start menu and so on and this is when I want the cmd to run. So can I call it for the batch file or start or run it? now sure with way would be the right way. Thanks for all your help
  3. ok like I said I was going to do I just tested your cmd file on my work laptop and it worked just fine and so did my batch file so I guess it just my pc. Now here is what was happend on my pc when I ran it, I would double click it and it appears to run. A cmd.exe box would flash open really fast and close. Then I check the reg before and after reboot and nothing at all gets writen to the reg so Im really not sure what is going on. But it shouldnt really matter cause im going to at it to my xp disk so it should work just fine. I just thought I wasnt writing the code right but like I said my batch file with the .reg file worked just fine. and Yzöwl's cmd worked too. So I guess I will just add it to my disk and do a test install and see if they get writen into the reg. Hey Yzöwl thanks for all the help. And if you wouldnt mind doing a break down of your cmd file for me cause when I made my cmd file it looked like this reg add HKEY_CLASSES_ROOT\*\shell\ResHacker /v command /t REG_SZ /d C:\\Program Files\\ResHacker\\ResHacker.exe \"%1\" and your's looked like this @Reg add "HKLM\SOFTWARE\Classes\*\shell\Open with ResHacker\command" /ve /d "\"C:\Program Files\ResHackerW\ResHacker.exe\" \"%%1\"" /f>Nul What is the @ do and what is /ve and does it have to be in "" and what is the "\" before C:\Program Files and you have 2 % before the number 1 and so on. Dont trip if you dont have time to explain everything but hey if you do have the time Im always down to learn something new Thanks Jay
  4. well thank you for the up loaded cmd file, but it still didnt work =( Im going to try it on my other pc. But this make me wonder why it will not work on my pc. What info do you need to help me get this thing working? In the end this is going into windows xp disk I made using nlite but if I cant get it working I will just drop the reg files on the desktop or C drive and run them myself and by the way thanks for all the help. P.S. I guess I will test the batch and cmd files I made on my other pc to see if they work
  5. Just to do a little test would you mind uploading your cmd file, so I can download it and run it to see if it works for me. If it doesnt I guess I will be giving up a lot of info for you guys Thanks Jay Dogg
  6. Im sorry but that does not work anyone else have an idea? I upload the reg key so take a look reshacker.reg
  7. Im sorry but that does not work anyone else an idea? I upload the reg key so take a look
  8. Well I need a little more help So I wanted to add ResHacker to the rightclick on all files I have it working but I would like to use reg add in a batch script to add it to the reg here is what I did I went to HKEY_CLASSES_ROOT\*\shell and added a key call ResHacker which left me with HKEY_CLASSES_ROOT\*\shell\ResHacker I then added a key call command with a data value of C:\\Program Files\\ResHacker\\ResHacker.exe \"%1\" And that worked just great so I exported the key and named it ResHacker.reg which looks like this in notepad Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\ResHacker\command] @="C:\\Program Files\\ResHacker\\ResHacker.exe \"%1\"" So I made a batch script which looks like this REGEDIT /s Reshacker.reg but it does nothing I know the Reshacker.reg works cause when I double click it it ask's if I want to add it to the reg and when I click yes it does So can any one show me how to make this work and even better if someone could show me how to do it with reg add (which I tried but couldnt get to work) Here is what I had reg add HKEY_CLASSES_ROOT\*\shell\ResHacker /v command /t REG_SZ /d C:\\Program Files\\ResHacker\\ResHacker.exe \"%1\" So please help me make a .cmd or .bat file that add this to the reg without promt Thanks Jay Dogg
  9. I was looking around to see if there was a way to turn off WFP on windows sp3. I look all over the net but didnt really find anything so I took a crack at it. I found a way that works for me but would like some other people to try it out. Step 1 Open run and type regedit and click ok Step 2 Click edit and go down to Find and click it Step 3 add this to the Find What box {F750E6C3-38EE-11D1-85E5-00C04FC295EE} Step 4 Right click on $dll and click modify and replace WINTRUST.DLL with WINTRUST.DLL.old Step 5 Click edit and go down to find next and click it Step 6 Repeat Step 4 for each {F750E6C3-38EE-11D1-85E5-00C04FC295EE} "theres about 7 or 8 of them I think" Step 7 log off or restart pc Step 8 search for the file you want to replace and make sure you have expanded - includes all files and folders click in the search options Lets say you searched for sysdm.cpl and wanted to replace it Step 9 Your search show you that the file is in 2 places C:\WINDOWS\system32\dllcache\sysdm.cpl and C:\WINDOWS\system32\sysdm.cpl go to C:\WINDOWS\system32\dllcache and delete sysdm.cpl Step 10 go to C:\WINDOWS\system32\sysdm.cpl and rename it C:\WINDOWS\system32\sysdm.cpl.old and drop or copy your sysdm.cpl Step 11 go to C:\WINDOWS\system32\dllcache and drop or copy your sysdm.cpl there Step 12 log off or restart your pc So that worked for me with a few WFP files but I would like some other people to test this out and I would really like to see if some one could try this on computer that is not patched for themes It would cool if someone took a patched uxtheme.dll and copied it to a not patched xp sp3 and see if it works =) Well let me know if it works for any of you guys Thanks
  10. Ok well that first part was easy all I needed was REGEDIT /S no_background_tab.reg but I would still like to know if there is away to write to the registry using a batch script with out having .reg files made or using any other file then the batch script itsself here are the 3 I would like add to the reg with just a batch script Reg key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System string value Value name SetVisualStyle Value data C:\WINDOWS\Resources\Themes\whatever theme.msstyles Here is the second one Reg Key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System DWORD value Value name NoDispBackgroundPage Value data 1 and the last one Reg Key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer DWORD value Value name NoThemesTab Value data 1
  11. Ok here is the deal my boss asked me if I could make it so people can not change the theme's on our work computer cause we have a custom made theme for our company with is on every pc. I know how to edit the reg to set a defult theme and how to take away the display properties theme and desktop tabs. But want I wanted to do to make this easy to put on the many computers we have is have a batch script run or add the keys silent. so here are my 3 keys and their file names which I made defult_theme.reg no_theme_tab.reg no_background.reg let say they live at C:\ (so when you help me you know the path to where they are) So can anyone help me write the code to the batch script? It should add each one of those reg files to the registry silently Once I have got help with that I would also like to know(cause I made those reg files in regedit.exe and exported them) if there is away to write to the registry useing a batch script with out having .reg files made or using any other file then the batch script itsself The first reg file lives here HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System the Value name is SetVisualStyle the Value data is C:\WINDOWS\Resources\Themes\whatever theme.msstyles Well thats what I want to do so any help would be great Thanks Jay Dogg
  12. come on is there someone that could help me or at least explain what this guy was trying to tell me? Please it would help so much =)
  13. Im not following what that does for me sorry but Im a little new at all this. If you dont mind how could I use that to make a short cut on my desktop that opens the folder "cdrom\I386\Extras" or set the CDROM to the same letter ever install really all I want is a short cut that drops on to my desktop while xp installs that opens "cdrom\I386\Extras"
  14. I did see that already but I dont understand it really, from what I have read in that thread if you put SET CDROM=%CD:~0,2% in CMDLINES.TXT which is in my $OEM$ it will make the CDROM letter be F:\ Is that right? And if it is how would I name the CDROM Z? and my CMDLINES.TXT looks like this [Commands] "rundll32 advpack.dll,LaunchINFSection nLite.inf,U" now how would I add the SET CDROM=%CD:~0,2% into that would it be [Commands] "rundll32 advpack.dll,LaunchINFSection nLite.inf,U" "SET CDROM=%CD:~0,2%" or would it be [Commands] "rundll32 advpack.dll,LaunchINFSection nLite.inf,U SET CDROM=%CD:~0,2%"
  15. Ok I have made a Windows XP self install disk, I would like to put a short cut or way to access a folder (Extras) on my install disk on the desktop. The source of the folder is "cdrom\I386\Extras", Now the first thing I tried was I put a short cut to "D:\I386\Extras" in the $OEM$ which worked just fine till I installed my disk on a computer that that a few hard drives in it. The D:\ was given to the slave drive then making the short cut on the desktop not work. Is there a system variable for the cdrom ? if so I could make a batch script name Extras on the desktop that would open the folder on the disk The batch script would look something like this start "cdrom variable\I386\Extras" now if there is not a cdrom variable anyone elsse got a good idea on how to do this?
  16. Hi Im making a batch script that runs an installer then calls a clean up batch script, here it is cd "C:\Program Files\Nero" start Nero.exe pause call cleanup.bat del %0 the batch script it calls is del /f /q "C:\Documents and Settings\Default User\Desktop\Nero SrartSmart.lnk" rd /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\Nero 8" rd /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\VSO" del /f /q "C:\C:\Program Files\VSO\ConvertX.exe" del /f /q "C:\C:\Program Files\VSO\ConvertXToDVD.exe" del /f /q "C:\C:\Program Files\Nero\Nero.exe" del /f /q "C:\C:\Program Files\Nero\Nero-8.1.1.0_eng.exe" del %0 but what I need to know is how to make the pause wait till nero.exe is fully installed then call the cleanup.bat, is there a way I could set a time on for the pause to wait? Any help would be great cause Im kinda new to batch scripts
  17. My batch script looks like this right now xcopy "C:\WINDOWS\system32\CatRoot2\*.*" "C:\CatRoot2" /f /I xcopy "C:\WINDOWS\system32\dllcache\*.*" "C:\dllcache" /f /I rd /s /q "C:\WINDOWS\system32\CatRoot2" rd /s /q "C:\WINDOWS\system32\dllcache" xcopy "C:\logonui.exe" "C:\WINDOWS\system32\logonui.exe" /f /y xcopy "C:\CatRoot2\*.*" "C:\WINDOWS\system32\CatRoot2" /f /I xcopy "C:\dllcache\*.*" "C:\WINDOWS\system32\dllcache" /f /I rd /s /q "C:\CatRoot2" rd /s /q "C:\dllcache" which Im not even sure if that is the right way to do it cause Im not the best at batch scripts just have some basic knowledge
  18. Ok Im writing a batch file to replace the logonui.exe in (C:\WINDOWS\system32), if you just copy and paste your logonui.exe over windows logonui.exe, windows will check (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache)which is hiden) and convert/replace your logoui.exe with the original windows logonui.exe. So if you move all of (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache) (Directory+SubDirectorys+files) to (C:\CatRoot2) and (C:\dllcache) then copy over your logonui.exe to (C:\WINDOWS\system32) windows doesnt convert/replace your logonui.exe. Then you can move (C:\CatRoot2) and (C:\dllcache) to there original directory (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache) and there you go you have replaced your logonui.exe with out restarting your pc in safe mode with command promt (most common way to do it). So my problem is I dont think my batch script can copy those directorys cause somthing has a handle on them (a program or the system is using them). Anyone know a way in a batch script you could kill/unlock the handles then copy the directory over. I think winlogon.exe has a handle on (C:\WINDOWS\system32\dllcache) and svchost.exe has a handle on (C:\WINDOWS\system32\CatRoot2). I used unlocker to unlock them then move the directorys manually, then moved my logonui.exe manually and then moved the directorys back manually to test my work and everything worked like a charm my logonui.exe was replaced and working. So now I want a batch file to do it all for me but like I said I think the fact that (C:\WINDOWS\system32\CatRoot2) and (C:\WINDOWS\system32\dllcache) are being used is stopping my batch script from working. So if you have any ideas or know how to unlock a file or directory with a batch file please help me out =)
  19. Hey thanks man that was what I was trying to get a hold of, Im also looking for auto scripts for these programs(lates version) , dvddecrypter dvdshrink java6 klite code mylockbox putty vlc truecrypt winrar unlocker notepad ++ recuva (I need auto scripts cause everything is being installed after windows, not as addons) or a fix exe file that silent installs which is what febooti fileTweak v2.2.exe has been tweaked to do
  20. Im trying to make a silent installer for Febooti File Tweak V2.2, well I have not gotten very far so if any on that really knows what they are doing would take a look at if for me and maybe tell what the switches are It would help very much =) Thanks
  21. Jaclaz the program Wizard's Apprentice looks really cool and if you would like to help walk me through how to make it to make what I need that would be great but if not I think that program is a bit much for me being a newbie and all
  22. Im making these batch files for Windows XP sorry about that
  23. Ok so I want to write a batch file we can call it setup.bat that when ran asks you to chose by typing from 8 listed options lets say Option 1 is install and option 2 is move option 3 is copy and so on so if you want to run option 1 you would type install, now each of these options is going to be its own batch file that the setup.bat will start (I think call is the right term) so when you type install it starts or calls the install.bat I have made, then I need the setup.bat to pause or wait well the install.bat runs. When the install.bat is done running I then need the setup.bat to ask you if you would like to pick any other option or finish, by typing finish it will then run a cleanup.bat. I have made all the option batch files and cleanup batch file which are mostly just a few lines of code like xcopy "C:\install.bat" "C:\Program Files\Pirates" /y del /q/f "C:\install.bat" which is all very simpale so I need help with the setup batch file cause Im very new to this so if any one knows how to do all that please explain in detail how thanks
  24. Hello everyone I have followed step by step what this guy says to do http://www.msfn.org/board/Adobe-CS3-Silent...ll-t101954.html here is what he said I found countless useful tips here on how to silently install my apps, so I thought I finally give something in return. This is based on Adobe instructions which are do not actually work, and information gleaned from other forums. Here is how to silently install Adobe CS3 Applications, i.e., Photoshop, Illustrator, InDesign, Flash and Dreamwever. It is tested on these apps, but should work for all CS3 apps since they all follow the same method of installation. 1. The directory structure and name of the original CD or DVD is important. If you copy the installation files into a different folder name, then you MUST amend the setup.xml file that reside in the payloads folder. Open setup.xml using notepad, and inside between <Payloads> and </Payload> limiters, you find entries like <Payload folder="AdobeALMAnchorServiceAll">Adobe CS3</Payload> Here, Adobe CS3 is the folder name where setup.exe resides. Change Adobe CS3 to whatever is your current folder name. Not doing this will give you error code 4, since setup will not be able to find the installation files. 2. Next, in the payloads folders, select the main application folder. If it is Photoshop, it should be AdobePhotoshop10en_US_volume. If it is Dreamweaver, it will be AdobeDreamweaver9en_US. Inside, select file that end with ....proxy.xml. If is is Photoshop, it should be AdobePhotoshop10en_US_volume.proxy.xml. Edit this file with notepad. Use the find function to find <Requires> entry in the xml file, and delete all the entries between <Requires> and </Requires>, including <Requires> and </Requires> limiters. Doing this will show the options to allow you to select which components you want to install. 3. Now, from the setup root folder where setup.exe resides, from command prompt type: setup.exe --record=1 4. This will perform a record of the installation without actually installing the apps. From here, you can also select which of the options you want installed. Some options are critical, so if the apps do not run after installation, you have to come back to this step and re-enable the option. 5. After the recording of the installation is completed, go to the Program Files/Common Files/Adobe/Installations folder. Inside will reside 2 xml files, one for installation and another for removal. Rename them install.xml and uninstall.xml respectively. Copy them to your setup folder. 6. Now, create application.xml.override file inside the application payload folder. The entry should be CODE <?xml version="1.0" encoding="utf-8"?> <Configuration> <Payload> <Data key="Serial" protected="0">1XXXXXXXXXXXXXXXXXXXXXX</Data> <Data key="Registration">Suppress</Data> <Data key="EULA">Suppress</Data> <Data key="Updates">Suppress</Data> </Payload> </Configuration> 7. Finally, you can now silently install the apps with the command setup.exe --mode=silent --deploymentFile=D:\Photoshop\install.xml. 8. Note that you must have the absolute directory path for the install.xml. It will give error code 4 or 5 is you do not. 9. If you still encounter errors, you should first have a look at the installation log that resides in Program Files/Common Files/Adobe/Installations folder. Search for "ERROR" and it will usually give an indication of the error that has occurred. I have done all that and added a runonce command of %SOURCE%I386\SVCPACK\CS3\adobesetup.exe --mode=silent --deploymentFile=D:\I386\SVCPACK\CS3\deployment\install.XML but when it runs that command I get and error "uncaught javascript exception could not install the bootstrapper end adobe setup. exit code 4" He says a code 4 is becasue "8. Note that you must have the absolute directory path for the install.xml. It will give error code 4 or 5 is you do not." but Im think it is pointed at the directory patp, so I tried putting the CS3 folder in $OEM$\$1 folder so it gets dropped on C:\ and had the runonce command be: C:\CS3\adobesetup.exe --mode=silent --deploymentFile=C:CS3\Deployment\install.XML witch Im sure is the right directory path but I still get the same error and one more thing the application.xml.override file I created inside the application payload folder, does it just have to be in that payload folder to work or does something have to trigger it or set it off? Any Help with this would be great
  25. O and thanks those links helped me a lot
×
×
  • Create New...