atolica Posted March 13, 2010 Author Share Posted March 13, 2010 The batch file is suppose to run with "cmd /c" command? If I understand corectly the xml logic, I have to put the *.cmd iside the 'sources' folder and add : cmd /c \loop.cmd or can I just add \loop.cmd? It will recognize the '\' as the full path to the 'sources' folder. Am I correct? Link to comment Share on other sites More sharing options...
maxXPsoft Posted March 13, 2010 Share Posted March 13, 2010 tell me where on the dvd the file will be exactly then i can tell you, no your examples will not work Link to comment Share on other sites More sharing options...
atolica Posted March 13, 2010 Author Share Posted March 13, 2010 tell me where on the dvd the file will be exactly then i can tell you, no your examples will not workDoesn't matter. On the root of the dvd or in the 'sources' folder. Either way.I added \loop.cmd as a synchronous command as '\' stands for the sources folder. Link to comment Share on other sites More sharing options...
maxXPsoft Posted March 13, 2010 Share Posted March 13, 2010 Doesn't matter. On the root of the dvd or in the 'sources' folder. Either way.I added \loop.cmd as a synchronous command as '\' stands for the sources folder.No \ cannot stand for that you would need full path. above cmd only returns drive root F:%MEDIA%\sources\loop.cmd which meansF:\sources\loop.cmd Link to comment Share on other sites More sharing options...
atolica Posted March 13, 2010 Author Share Posted March 13, 2010 (edited) Doesn't matter. On the root of the dvd or in the 'sources' folder. Either way.I added \loop.cmd as a synchronous command as '\' stands for the sources folder.No \ cannot stand for that you would need full path. above cmd only returns drive root F:%MEDIA%\sources\loop.cmd which meansF:\sources\loop.cmdYou don't understand. That's what I want to achieve.You said I have to put the loop command that Mr Jinje posted (updated for Win 7) for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\sources\install.wim set MEDIA=%%iECHO %MEDIA% inside a batch file (loop.cmd). Thw whole purpose of the loop.cmd is to search for a drive that you want because you can determine that by adding AppsRoot.txt or as Mr Jinje's command, the drive that has a sources folder that contains install.wim.It can be anything.How could I add then : F:\sources\loop.cmd ?!?!? I've noticed the loop command has two lines and an Echo line-I know all about ECHO.My goal is to be able for the xml to detect the media,( flash drive, etc) so it could call the synchronous command.So what is the right syntax for running the loop.cmd batch file from within the xml? F:\ is not a constant drive so that's why I need the loop command, to search for \sources\install.wim or AppsRoot.txt and then run the apps batch installers from the Install folder on the dvd root.My issue is with the 2nd line of the loop command (if that really is a 2nd line or a formatting error?!?!) "ECHO %MEDIA%". Is the command:for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\sources\install.wim set MEDIA=%%i ECHO %MEDIA% that can be added as it is in the Autounattend.xml !??!ORfor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\sources\install.wim set MEDIA=%%iECHO %MEDIA% as two lines inside loop.cmd?I hope I was pretty clear.Thanks. Edited March 13, 2010 by atolica Link to comment Share on other sites More sharing options...
maxXPsoft Posted March 14, 2010 Share Posted March 14, 2010 look here same as what you want just use commands in your thing Link to comment Share on other sites More sharing options...
atolica Posted March 17, 2010 Author Share Posted March 17, 2010 Didn't workIsn't there a way to just enter the Audit mode via Autounattend.xml simmilar to running SHIFt+F10 , install all the apps FROM the DVD, and enter the oobe welcome page?Nothing that I had tried works. I know there's a way, there is always a way. Link to comment Share on other sites More sharing options...
maxXPsoft Posted March 17, 2010 Share Posted March 17, 2010 (edited) Isn't there a way to just enter the Audit mode via Autounattend.xml simmilar to running SHIFt+F10 , install all the apps FROM the DVD, and enter the oobe welcome page?Nothing that I had tried works. I know there's a way, there is always a way.No 1 noSHIFt+F10 Btw will bring up cmd prompt during an installation for those don't knowNo 2 YesSimple, try my application Se7en_UA in the stickies up top. If you have the old WAIK on it will ask you to uninstall and then everything works better.It will show you the way then you can modify that whatever way you want. I guaranteetrouble with it, ask ? thereoops, wait till i post Final release 621 later today Edited March 17, 2010 by maxXPsoft Link to comment Share on other sites More sharing options...
atolica Posted March 19, 2010 Author Share Posted March 19, 2010 (edited) Ok, just downloaded your se7en_ua. Is there a way to replace %SystemDrive%\APPS from Appswitch.dat with the dvd path? I don't want the apps copied to the disk.edit:errorERROR : Invalid Parameter #9 : "C:\Se7en_UA\uaDVD" Simple Usage :: ROBOCOPY source destination /MIR source :: Source Directory (drive:\path or \\server\share\path). destination :: Destination Dir (drive:\path or \\server\share\path). /MIR :: Mirror a complete directory tree. For more usage information run ROBOCOPY /?**** /MIR can DELETE files as well as copy them !Finished Copying VISTA CD... Please WaitAttribing uaDVD Folder with attrib -R -H \uaDVD /S /D... Please WaitFile not found - C:\Se7en_UA\uaDVD\*.*Finished Attrib \uaDVD... Please Wait Pause to see if ERROR. Copy Error and let me know Ready to RESTART C:\Se7en_UA\Se7en_UA.exePress any key to continue . . .plusRuntime Error 5 Edited March 19, 2010 by atolica Link to comment Share on other sites More sharing options...
myselfidem Posted March 19, 2010 Share Posted March 19, 2010 (edited) @atolicaSe7en_UA use a RunOnceEx method. That means that the folder APPS is copied in your DVD and not on your computer HDD! You can see that when you make your installation (left pane of the image. In this case the script "%SystemDrive%\APPS" means DVD [or HDD if you have made a multiple copies of the folder APPS in your multiples partitions (C:\, F:\, H:\, etc...) to go faster.]I hope that will help you. Edited March 20, 2010 by myselfidem Link to comment Share on other sites More sharing options...
myselfidem Posted March 19, 2010 Share Posted March 19, 2010 (edited) Just an other example with a personal customized image with Se7en_UA installer.Regards. Edited March 19, 2010 by myselfidem Link to comment Share on other sites More sharing options...
maxXPsoft Posted March 19, 2010 Share Posted March 19, 2010 (edited) Ok, just downloaded your se7en_ua. Is there a way to replace %SystemDrive%\APPS from Appswitch.dat with the dvd path? I don't want the apps copied to the disk.as myseldiem said %SystemDrive%\APPS is replaced completely in the Appswitch.dat by Se7en_UA program anywhere it finds the APPS folder, if it is on dvd then thats where it will use. Starting out that may be on any drive but it then copies to your dvd.Look at my Link in my signature App Installer View, thats 1 harddrive location I have and my dvd. Runs much faster from HD.On the error, delete the Se7en_UA.ini restart the Se7en_UA and it will create new. attach to my sticky so more can help in case i'm offlineEDIT: You must either copy your Win 7 dvd or the complete dvd from folder on your drive. I keep copies of all my dvd's like in D:\CD_DVD and copies much faster from thereCannot copy an iso Edited March 19, 2010 by maxXPsoft Link to comment Share on other sites More sharing options...
atolica Posted March 19, 2010 Author Share Posted March 19, 2010 @myselfidemI tested the previous version I had on my drive, that actually WORKS and saw that now.@maxxpsoftYour latest version throws me these errors.ERROR : Invalid Parameter #9 : "C:\Se7en_UA\uaDVD"Simple Usage :: ROBOCOPY source destination /MIRsource :: Source Directory (drive:\path or \\server\share\path).destination :: Destination Dir (drive:\path or \\server\share\path)./MIR :: Mirror a complete directory tree.For more usage information run ROBOCOPY /?**** /MIR can DELETE files as well as copy them !Finished Copying VISTA CD... Please WaitAttribing uaDVD Folder with attrib -R -H \uaDVD /S /D... Please WaitFile not found - C:\Se7en_UA\uaDVD\*.*Finished Attrib \uaDVD... Please WaitPause to see if ERROR. Copy Error and let me knowReady to RESTART C:\Se7en_UA\Se7en_UA.exePress any key to continue . . .Runtime Error 5 Link to comment Share on other sites More sharing options...
myselfidem Posted March 19, 2010 Share Posted March 19, 2010 (edited) ERROR : Invalid Parameter #9 : "C:\Se7en_UA\uaDVD"-----------------------------------------------------------------------------It's seems that you don't select the good source folder!Have you select the source of your DVD folder location? Like C:\Vista\boot.mgr?Take care to choose the good folder.Regards. Edited March 19, 2010 by myselfidem Link to comment Share on other sites More sharing options...
atolica Posted March 20, 2010 Author Share Posted March 20, 2010 How can you tell I didn't select the right sources folder?!?! Of course I did. The Windows 7 source files don't have to be in the se7en_ua folder, that's why I'm asked to select the bootmgr so the files can get copied. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now