Announcement

Collapse
No announcement yet.

Path problems in NT when executing file with spaces in path

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mark
    replied
    Re: Path problems in NT when executing file with spaces in path

    Hi,

    Sorry but I'm a but confused by this, you should always use the full path in the "File to Execute" field, and it does not matter if this has spaces in it or not.

    As far as I understand it your action should look like this:

    File to Execute: %AppDir%\util\JRE\1.3.1\bin\java.exe
    Command line arguments: -cp "%AppDir%\util\lib\jni-scm.jar" fi.lpg.jni.scm.SCMServiceHandler i installer.Agent.service.properties
    Working Directory: %AppDir%\util

    Note: The quotes around "AppDir%\util\lib\jni-scm.jar" are needed if %AppDir% has a space in it.

    I think that this should work, although I am slightly unsure about some of your command line arguments.

    mark.



    [This message has been edited by Mark (edited 03-21-2002).]

    Leave a comment:


  • tomarppe
    replied
    Re: Path problems in NT when executing file with spaces in path

    Oh yes, and the JRE directory is one up from util like %AppDir%\util and %AppDir%\JRE
    thats why i put ..\JRE as I was defining the workdir to be the util and thus eliminated one path with spaces in it.

    Cheers
    Tom

    Leave a comment:


  • tomarppe
    replied
    Re: Path problems in NT when executing file with spaces in path

    I did, but it fails and cannot execute the file apparently because there is a Space in the path. I tried to put it into quotes which works in a command window.
    I have also tried to put the %AppDir% in all of the places places and in different combinations, but with no success.

    Cheers
    Tom

    Leave a comment:


  • Mark
    replied
    Re: Path problems in NT when executing file with spaces in path

    Hi,

    For your "File to Execute" are you specifying: "..\JRE\1.3.1\bin\java.exe "?

    If so try specifying: "%AppDir%\util\JRE\1.3.1\bin\java.exe " or the full path to your executable.

    mark.

    Leave a comment:


  • tomarppe
    replied
    Re: Path problems in NT when executing file with spaces in path

    I am installing 5 Windows services using a Java program to do it. I tried to minimize the path variables by using the only thing I know about the intallation which is the internal structure.

    I have the JRE installed in a Subfolder called suprise surprise! JRE

    The property file is situated in a directory called util, here are the paths.

    File to Execute:
    ..\JRE\1.3.1\bin\java.exe
    Command line arguments:
    -cp ..\lib\jni-scm.jar fi.lpg.jni.scm.SCMServiceHandler i installer.Agent.service.properties
    where SCMServiceHandler is a java Class performing the installation and i stands for install.
    And then for the problematic bit, the Working Directory:
    %AppDir%\util
    The default installation path is in the Program Files directory which already has a space in itself.
    If I run this manually everyting works fine in NT but when it is executed in SF 6.0.0.4 it for some reason does not get to the defined working directory.
    As I stated previously i tried all the versions with Quotation marks etc. but it failed.
    I would appreciate a "heads up" on what I'm doing wrong

    Regards
    Tom

    Leave a comment:


  • Mark
    replied
    Re: Path problems in NT when executing file with spaces in path

    Hi,

    Perhaps you could outline your Execute program command for us? Please include all fields that you have to fill-in in Setup Factory.

    mark.

    Leave a comment:


  • Path problems in NT when executing file with spaces in path

    I am having big problems when trying to execute a file during installation. The file path contains spaces. It works fine in Windows XP and 2000 but fails in Win NT (SP4).
    I managed to eliminate the spaces from all other paths but the Working Directory and still it does not execute. I tried to use it like this "%AppDir\util" or '%AppDir\util' or without quotation marks of any kind.
    The file i'l launching is a Java utility which installs a windows service. It needs command line arguments, which is a path to a properties file with arguments, as well as the path to the Java.exe file and the working directory. The working directory is the same as the where the properties file is

    How can i create a Path including spaces which works in NT, 2000 and XP?

    cheers
    Tom
Working...
X