THXMAN Posted August 19, 2012 Share Posted August 19, 2012 I have one question regarding batch files with WPI.Here is my scenario1. I have the WPI folder on a USB stick2. I have an batch file i want to run called oem.batoem.bat contains these commands. but they do not get excecuted. by the WPI menu. but if i run the batch file my self i works fine.What me batch file does@echo offcopy OEMLogo.bmp %windir%\system32regedit /s OEMinfo.reg------------------------------------------------------------------------------command from JSprog[pn]=['OEM Logo Labtech - support oplysninger'];uid[pn]=['OEMLOGOLABTECH'];dflt[pn]=['yes'];forc[pn]=['no'];bit64[pn]=['no'];cat[pn]=['Applications'];pfro[pn]=['no'];cmds[pn]=['{BATCH} "%wpipath%\\install\\oemlogo\\oem.bat"',''];desc[pn]=['OEM Logo Labtech'];pn++;.Kind Regards THXMAN Link to comment Share on other sites More sharing options...
myselfidem Posted August 19, 2012 Share Posted August 19, 2012 (edited) Try to give the full path inside your oem.bat file (where are located OEMLogo.bmp and OEMinfo.reg)for OEMLogo.bmp and using regedit /s*Edit: Check also the quotes: (double quotes at last)Your example corrected:cmds[pn]=['{BATCH} "%wpipath%\\install\\oemlogo\\oem.bat"']; Edited August 19, 2012 by myselfidem Link to comment Share on other sites More sharing options...
THXMAN Posted August 19, 2012 Author Share Posted August 19, 2012 my files OEMLogo.bmp and OEMinfo.reg are located in "WPI\install\oemlogo" folder same place as the oem.batand i have my WIndows and WPI running from a USB stick WPI folder is in the root of the usb sticki did fix (double quotes at last) thank you can you tell me the full path command line i should use inside the oem.bat file@echo offcopy OEMLogo.bmp %windir%\system32regedit /s OEMinfo.regKind regards THXMAN Link to comment Share on other sites More sharing options...
myselfidem Posted August 19, 2012 Share Posted August 19, 2012 Maybe you can try to use the oem.bat like this using {BATCH} with WPI:oem.bat@ECHO OFFCOPY /Y "%wpipath%\Install\oemlogo\OEMLogo.bmp" "%windir%\System32\" REGEDIT /S "%wpipath%\Install\oemlogo\OEMinfo.reg"EXIT Link to comment Share on other sites More sharing options...
THXMAN Posted August 19, 2012 Author Share Posted August 19, 2012 Thanks you so much, work great. i got i learn more about command Link to comment Share on other sites More sharing options...
myselfidem Posted August 19, 2012 Share Posted August 19, 2012 Enjoy! Link to comment Share on other sites More sharing options...
THXMAN Posted August 19, 2012 Author Share Posted August 19, 2012 One last thing, what command should i use to start wpi\wpi.exe from the usb stick.because this here does not work, i run it from $oem$\$$\setup\scripts\setupcomplete.cmd@echo offfor %%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 root=%%i:Start %root%\WPI\wpi.exerem del %0Kind regards THXMAN Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 20, 2012 Share Posted August 20, 2012 Have you checked the manual and website? There is a provided solution Link to comment Share on other sites More sharing options...
myselfidem Posted August 21, 2012 Share Posted August 21, 2012 (edited) http://www.msfn.org/board/topic/157072-help-importing-reg-file-please/page__view__findpost__p__1001605http://www.msfn.org/...ost__p__1007463 Edited September 9, 2012 by myselfidem Link to comment Share on other sites More sharing options...
stsaerox Posted October 3, 2012 Share Posted October 3, 2012 I'm trying for a long time now to run a batch file:@echo offecho Installing Javafor %%a in (*.exe) do "%%a" /swith this command typed in wpi:{BATCH} "%wpipath%\Install\WinExt\Java\Run.bat"It fails instantly. Well if this command work somehow it will be a great progress in updating the unattended installation executable because I have to replace only with the newer executable and not change the commands for each file. This method if work saves time updating. Link to comment Share on other sites More sharing options...
myselfidem Posted October 3, 2012 Share Posted October 3, 2012 The trouble is with your batch file!Check the paths. Link to comment Share on other sites More sharing options...
stsaerox Posted October 3, 2012 Share Posted October 3, 2012 (edited) Is it really? I cannot figure out my mistake. This is how I select the path so I won't make a mistake with paths:http://www.youtube.com/watch?v=FfT6h7G0jyc&feature=youtu.beif you mean the path IN the batch file I have no idea how to fix this but if double click it runs and installs ok. My full path there is "E:\Programs\Install\Projects\WPI ALL\WPI\Install\WinExt\Java" In java is bat and exe file.I'm just building this in there if use it I will move it to a flash memory stick.Edit: Can you see my video in this post? I cannot see that. If no please try this.Windows post install - cannot run batch with "for" and ''do" commands.oh what is happening? third edit and no video at all.... Edited October 3, 2012 by stsaerox Link to comment Share on other sites More sharing options...
myselfidem Posted October 4, 2012 Share Posted October 4, 2012 (edited) I can see your video on this link:http://www.youtube.com/watch?v=FfT6h7G0jyc&feature=youtu.be*Edit: could you attach your config.js file, please? Edited October 4, 2012 by myselfidem Link to comment Share on other sites More sharing options...
stsaerox Posted October 4, 2012 Share Posted October 4, 2012 (edited) Yes this is it. Can you help me with this? I've tried in many different ways but it keeps failing instantly...Edit: Here it is: config.js Edited October 4, 2012 by stsaerox Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 4, 2012 Share Posted October 4, 2012 {BATCH} "%wpipath%\Install\WinExt\Java\Run.bat"Is this ^ EXACTLY copied from your WPI???When I watch the video I see this:{BATCH}"%wpipath%\Install\WinExt\Java\Run.bat" < --- No space... 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