WPI will not run from certain folders
#1
Posted 31 August 2011 - 02:17 PM
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?
#2
Posted 31 August 2011 - 02:19 PM
You are the first to get it.
Attach your config.js file please.
This post has been edited by Kelsenellenelvian: 31 August 2011 - 02:20 PM
#4
Posted 31 August 2011 - 02:27 PM
I think there may be an error in the eroor detection scripts.
#5
Posted 31 August 2011 - 02:31 PM
Attached File(s)
-
7-Zip-(32-bit).txt (15.87K)
Number of downloads: 15
#6
Posted 31 August 2011 - 02:36 PM
WPI doesn't handle bat files quite right.
Change your commandline to this:
{START} "%wpipath%\\Install\\7-Zip-(32-bit).bat
Then Bobs your uncle...
(Worked fine here for me now.)
This post has been edited by Kelsenellenelvian: 31 August 2011 - 02:36 PM
#7
Posted 31 August 2011 - 02:44 PM
#9
Posted 31 August 2011 - 02:55 PM
It 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"
This post has been edited by Kelsenellenelvian: 31 August 2011 - 02:56 PM
#10
Posted 31 August 2011 - 03:04 PM
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.
This post has been edited by franner: 31 August 2011 - 03:05 PM
#11
Posted 11 March 2012 - 05:44 PM
Kelsenellenelvian, on 31 August 2011 - 02:36 PM, said:
WPI doesn't handle bat files quite right.
Change your commandline to this:
{START} "%wpipath%\\Install\\7-Zip-(32-bit).bat
Then Bobs your uncle...
(Worked fine here for me now.)
franner, on 31 August 2011 - 03:04 PM, said:
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
This post has been edited by stsaerox: 11 March 2012 - 06:47 PM
#12
Posted 11 March 2012 - 06:57 PM
Quote
@echo off
echo Installing Windows Live Messanger 2011 only
for %%a in (*.exe) do "%%a" /q /NOToolbarCEIP /NOhomepage /Nolaunch /nosearch /AppSelect:Messenger
In 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?



Help
Back to top









