Jump to content

Recommended Posts

Posted

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?


Posted (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).bat

Then Bobs your uncle...

(Worked fine here for me now.)

Edited by Kelsenellenelvian
Posted (edited)

got 'r done

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"

Edited by Kelsenellenelvian
Posted (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 by franner
  • 6 months later...
Posted (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).bat

Then 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 by stsaerox
Posted

I'm trying to add this batch file to wpi but it does not run...

@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?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...