Jump to content

Cannot use batch with "for" command included


Recommended Posts

Hello

I'm trying to run this batch file using wpi but it seems that wpi don't wait to end installation(it closes cmd window after a few seconds):


@echo off
echo Installing Windows Live Messanger 2011 only
for %%a in (*.exe) do "%%a" /q /NOToolbarCEIP /NOhomepage /Nolaunch /nosearch /AppSelect:Messenger

What I tried so far is:

{START} cmd /c "%wpipath%\Install\WLE\Runexe.bat"

{START} "%wpipath%\Install\WLE\Runexe.bat"

with or withought quotes

I'm trying to make simple the windows installation and updating application process for everyone. Using "for" command unexperienced users does not have to edit the silent swiches and parameters. All they have to do is to download newer installer then delete the older.

Please help me...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...