franner Posted August 31, 2011 Posted August 31, 2011 I have downloaded the latest WPI but I get some wiered results when running my test app.When I run it from the desktop, %temp%, %systemdrive% it gives the error:command 1 failed.I have tried with running as admin as well as folders without spaces and with spaces, all gives the same result.But if I run the same thing inside %programfiles% it will work and have success on install. I have tried on windows 7 x64, x32 and xp same result. Is there a way to make the WPI work from any folder?
Kelsenellenelvian Posted August 31, 2011 Posted August 31, 2011 (edited) This is a very strange error.You are the first to get it.Attach your config.js file please. Edited August 31, 2011 by Kelsenellenelvian
franner Posted August 31, 2011 Author Posted August 31, 2011 (edited) here it is:config.js Edited August 31, 2011 by franner
Kelsenellenelvian Posted August 31, 2011 Posted August 31, 2011 hmm gimme the bat file too.I think there may be an error in the eroor detection scripts.
franner Posted August 31, 2011 Author Posted August 31, 2011 You probably need some more files (if you want to run the batch file). The bat file runs fine here btw.7-Zip-(32-bit).txt
Kelsenellenelvian Posted August 31, 2011 Posted August 31, 2011 (edited) Der I am really sleep deprived.WPI doesn't handle bat files quite right.Change your commandline to this:{START} "%wpipath%\\Install\\7-Zip-(32-bit).batThen Bobs your uncle...(Worked fine here for me now.) Edited August 31, 2011 by Kelsenellenelvian
franner Posted August 31, 2011 Author Posted August 31, 2011 I just tried your code, it opens a command prompt but dosen't execute the bat file, any idea?
Kelsenellenelvian Posted August 31, 2011 Posted August 31, 2011 (edited) got 'r doneIt is the () in your file name.WPI uses () in some of its commands. it must be confusing it.I renamed and ran wpi your bat ran fine."%wpipath%\\Install\\7-Zip-x32.bat" Edited August 31, 2011 by Kelsenellenelvian
franner Posted August 31, 2011 Author Posted August 31, 2011 (edited) Ahh okay, thanks for helping me out. Now I certainly know not to use brackets in these file names.I found out that your start command would actually also work with some moidification.{START} cmd /c "%wpipath%\..."But its much easier code when skipping brackets. Edited August 31, 2011 by franner
stsaerox Posted March 11, 2012 Posted March 11, 2012 (edited) Der I am really sleep deprived.WPI doesn't handle bat files quite right.Change your commandline to this:{START} "%wpipath%\\Install\\7-Zip-(32-bit).batThen Bobs your uncle...(Worked fine here for me now.)Ahh okay, thanks for helping me out. Now I certainly know not to use brackets in these file names.I found out that your start command would actually also work with some moidification.{START} cmd /c "%wpipath%\..."But its much easier code when skipping brackets.What's the difference?{START} "%wpipath%\..." AND{START} cmd /c "%wpipath%\..."What does the "cmd /c" does?NEVER MIND I FOUND IT: http://ss64.com/nt/cmd.html Edited March 12, 2012 by stsaerox
stsaerox Posted March 12, 2012 Posted March 12, 2012 I'm trying to add this batch file to wpi but it does not run...@echo offecho Installing Windows Live Messanger 2011 onlyfor %%a in (*.exe) do "%%a" /q /NOToolbarCEIP /NOhomepage /Nolaunch /nosearch /AppSelect:MessengerIn the folder there is wlsetup-all.exe that it is meant to run. The cmd window cames up but it closes instantly before the program finishes installation.When running the batch file manually it is working correctly.What's wrong?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now