script hangs.

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1743
    mikev
    Member
    • Total Post: 147
    • Legend in Own LunchBox
    • ★★★★★

    Hi,

    I am trying to run the script below but it hangs mid way not sure why –

    ************************************

    [Script]
    ;
    LU*

    XC “Files*” “C:”

    EX “msiexec /i c:tabx.msi TRANSFORMS=c:tabx_32.mst /qn”

    LP “60”

    DF “C:Program FilesTABXDef.cfg”
    XC “FilesDef.cfg” “C:Program FilesTABX”

    EL*

    RB
    *********************************************

    When i push the above script it installs the package tabx.msi and also deletes the file Def.cfg (next line) but when it comes to copying the file (next line after) it just stops there, does not copy the file and does not proceed – not sure why.

    Please help.

    Thanks.

    #15022
    mikev
    Member
    • Total Post: 147
    • Legend in Own LunchBox
    • ★★★★★

    Some more on the script below –

    I tried the script below again but this time i removed the line XC “FilesDef.cfg” “C:Program FilesTABX”
    and it works.

    Just wondering what is wrong with the above copying? Is it because i am trying to copy file from regroot after i install the package?

    Basically i want to copy the updated config file def.cfg after i install the package but for some reason as i said does not work and the script hangs.

    Pls help.

    #15024
    Cory
    Member
    • Total Post: 52
    • Back Stage Pass
    • ★★★★

    @mikev wrote:

    XC “FilesDef.cfg” “C:Program FilesTABX”

    The issue I see with your XC command is you have an individual filename. XC is meant to copy the contents of entire folder. So for this line to work you would need it to be:

    XC “Files*” “c:program filestabx”

    But I’m guessing you just want to send the one file, in which case you would use the SF (send file) command:

    SF “filesdef.cfg” “c:program filestabx”

    See if that works for you.

    –Cory

    #15036
    mikev
    Member
    • Total Post: 147
    • Legend in Own LunchBox
    • ★★★★★

    Thanks Cory.

    I tried that but for some reason does not work – same result.

    Everything works well but when it comes to copying the def.cfg to the program files directory the script either fails or just hangs there.

    ANy more thoughts please?

    Thanks.

    #15037
    mikev
    Member
    • Total Post: 147
    • Legend in Own LunchBox
    • ★★★★★

    Hi,

    I fixed it – i created a new folder in regroot and copied the def.cfg file there and am now using that path to copy it to program files and this works.

    Thanks.

    #15050
    Cory
    Member
    • Total Post: 52
    • Back Stage Pass
    • ★★★★

    Weird fix, but glad you got it working! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.