MSFN Forum: WPI will not run from certain folders - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WPI will not run from certain folders Rate Topic: -----

#1 User is offline   franner 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 18-December 07

Posted 31 August 2011 - 02:17 PM

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?


#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,325
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 August 2011 - 02:19 PM

This is a very strange error.

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


#3 User is offline   franner 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 18-December 07

Posted 31 August 2011 - 02:25 PM

here it is:

Attached File(s)

  • Attached File  config.js (953bytes)
    Number of downloads: 18

This post has been edited by franner: 31 August 2011 - 02:25 PM


#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,325
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 August 2011 - 02:27 PM

hmm gimme the bat file too.

I think there may be an error in the eroor detection scripts.

#5 User is offline   franner 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 18-December 07

Posted 31 August 2011 - 02:31 PM

You probably need some more files (if you want to run the batch file). The bat file runs fine here btw.

Attached File(s)



#6 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,325
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 August 2011 - 02:36 PM

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.)

This post has been edited by Kelsenellenelvian: 31 August 2011 - 02:36 PM


#7 User is offline   franner 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 18-December 07

Posted 31 August 2011 - 02:44 PM

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

#8 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,325
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 August 2011 - 02:45 PM

lemme pluck away at it for abit

#9 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,325
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 August 2011 - 02:55 PM

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"

This post has been edited by Kelsenellenelvian: 31 August 2011 - 02:56 PM


#10 User is offline   franner 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 18-December 07

Posted 31 August 2011 - 03:04 PM

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.

This post has been edited by franner: 31 August 2011 - 03:05 PM


#11 User is offline   stsaerox 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 09-January 09

Posted 11 March 2012 - 05:44 PM

View PostKelsenellenelvian, on 31 August 2011 - 02:36 PM, said:

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.)



View Postfranner, on 31 August 2011 - 03:04 PM, said:

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

This post has been edited by stsaerox: 11 March 2012 - 06:47 PM


#12 User is offline   stsaerox 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 09-January 09

Posted 11 March 2012 - 06:57 PM

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

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?

#13 User is offline   stsaerox 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 09-January 09

Posted 13 March 2012 - 08:36 AM

It seems that no one have any solution....

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy