- This topic is empty.
-
AuthorPosts
-
January 27, 2009 at 4:22 am #1743
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.
January 27, 2009 at 4:43 am #15022Some 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.
January 28, 2009 at 12:47 am #15024@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
January 30, 2009 at 3:52 am #15036Thanks 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.
January 30, 2009 at 4:00 am #15037Hi,
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.
January 30, 2009 at 5:35 pm #15050Weird fix, but glad you got it working! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.