Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

franner

WPI will not run from certain folders

Recommended Posts

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?

Share this post


Link to post
Share on other sites

This is a very strange error.

You are the first to get it.

Attach your config.js file please.

Edited by Kelsenellenelvian

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I just tried your code, it opens a command prompt but dosen't execute the bat file, any idea?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...