MSFN Forum: No automated installation of one application - MSFN Forum

Jump to content



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

No automated installation of one application Rate Topic: -----

#1 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 22 October 2009 - 08:03 AM

Hello,
i have some problem.
I create a WPI dvd with some applications.
All works fine....only 'FreePDF 4.0 + Ghostscript 8.7' doesn't install automatically.
Why?

In the attachment are my config files......

Thanks
Dennis

Attached File(s)




#2 User is offline   Grake 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 369
  • Joined: 23-March 05

Posted 22 October 2009 - 08:13 AM

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.

#3 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 23 October 2009 - 04:39 PM

or its your setup.bat

#4 User is online   Kelsenellenelvian 

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

Posted 23 October 2009 - 05:23 PM

We need the installation log and the bat file(s)...

#5 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 26 October 2009 - 04:00 AM

Hello,
i change the "+" sign with "and".
But nothing happend automatically.
If i start it manually it works fine.
In the attachment is the setup.bat and the logfile.

Hope someone find the error.....

Thanks

Attached File(s)



#6 User is online   Kelsenellenelvian 

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

Posted 26 October 2009 - 04:15 AM

  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?

#7 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 26 October 2009 - 04:22 AM

Oh......s***.

What do you mena with
"Do you have the proper start\wait in there?" ??

#8 User is online   Kelsenellenelvian 

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

Posted 26 October 2009 - 07:43 AM

i.e.

Sample .bat file:

@ECHO OFF

Start /wait program.exe /**** switches
xcopy "here.file" "there.file"
More commands...

Exit


#9 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 26 October 2009 - 01:22 PM

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

#10 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 27 October 2009 - 04:52 AM

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

Attached File(s)



#11 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 28 October 2009 - 01:21 PM

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

#12 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 29 October 2009 - 12:38 AM

OK.
The files are in the ZIP rchive in the attachment..........

Attached File(s)

  • Attached File  Temp.zip (336bytes)
    Number of downloads: 7


#13 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 29 October 2009 - 03:54 PM

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

#14 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 30 October 2009 - 04:55 AM

It works.

Thanks :-)

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 - 2011 msfn.org
Privacy Policy