Jump to content

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?

Link to comment
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
Link to comment
Share on other sites

  • 6 months later...

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
Link to comment
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?

Link to comment
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...