Jump to content

Recommended Posts


Posted

Maybe it's the "+" sign. put "and" or something. I try not to use variables like that because they're usually assigned for something else.

Posted

  Freitag, 23. Oktober 2009 12:42:50 - cmd1 Erfolg (Erwiderter Code 1): "cmd.exe" /C "D:\wpi\Install\GhostScript\Setup.bat"
Freitag, 23. Oktober 2009 12:42:50 - cmd2 Erfolg (Erwiderter Code 1): "cmd.exe" /C "D:\wpi\Install\FreePDF\Setup.bat"

They are running at the SAME time... Hence they may be cancelling each other out.

Do you have the proper start\wait in there?

Posted

Better:

@ECHO OFF
REM with enabled extensions there's no need for "start /wait"
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

REM switch into script-directory
PUSHD "%~dp0"

REM go back to last directory
POPD

Al

Posted

OK.

I try it once more and i put a "sleep 15" beetween the two setup.bat.

Thats the log.

Dienstag, 27. Oktober 2009 11:44:29

Anwendung: FreePDF 4.0 + Ghostscript 8.7

Einmalige ID: FREEPDF40GHOSTSCRIPT87

Reihenfolge: 13

Kategorie: Batch CD 1

Dienstag, 27. Oktober 2009 11:44:29 - cmd1 Erfolg (Erwiderter Code 1): "cmd.exe" /C "D:\wpi\Install\GhostScript\Setup.bat"

Dienstag, 27. Oktober 2009 11:44:45 - cmd2 Erfolg (Erwiderter Code 0): "D:\wpi\Tools\Sleep.exe" 15

Dienstag, 27. Oktober 2009 11:44:45 - cmd3 Erfolg (Erwiderter Code 1): "cmd.exe" /C "D:\wpi\Install\FreePDF\Setup.bat"

Dienstag, 27. Oktober 2009 11:44:45 - Installation abgeschlossen.

But nothing happend.

If i start it manually it works fine...........

I have no idea???

WPI_Log_2009.10.27_10.45.15.txt

Posted

We need this files:

D:\wpi\Install\GhostScript\Setup.bat

D:\wpi\Install\FreePDF\Setup.bat

For example I install FreePDF with this command:

"path_to_the_file\FreePDF4.02.EXE" /q /c:"fpSetup.exe /q"

Al

Posted

I think the batch-files are in the same directory as the exe-files, right?

Try this:

SetupFreePDF.bat

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

PUSHD "%~dp0"
fpsetup.exe /q
POPD

and this:

SetupGS.bat

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

PUSHD "%~dp0"
setupgs.exe C:\Programme
POPD

Al

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