• 0

[BATCH] Need help with batch script


Question

Im working on the port for gant 2 ocean shell pack. We are trying to make this pack install fully automatically with a batch script (which has been done before too). The thing is my friend uniacid is having problems with the script as hes not very experienced with batch scripting. So if theres anyone who like to help us with the batch script, like check where we've gone wrong with it and correct us, would be a great help.

thanx :)

Link to comment
Share on other sites

22 answers to this question

Recommended Posts

  • 0

you think anyone is actully gonna read all that :o

i dont read books coz theres too much to read lol.

i just need a little help, im sure any of u advanced batch scripters out there can help me in a jiffy.

Link to comment
Share on other sites

  • 0

the batch script is giving file not found errors and some parser massage 'value creation failed at line606' after a restart coz the batch has still got to do some things after the restart.

it just does part of the work

Link to comment
Share on other sites

  • 0

the batch script is giving file not found errors and some parser message 'value creation failed at line606' after a restart coz the batch has still got to do some things after the restart. After the restart it loads the installfinal.bat

hows the bat files? do u find any flaw in it?

Link to comment
Share on other sites

  • 0
the batch script is giving file not found errors and some parser message 'value creation failed at line606' after a restart coz the batch has still got to do some things after the restart. After the restart it loads the installfinal.bat

hows the bat files? do u find any flaw in it?

Well, the file not found errors are of course because you're trying to work with a file that's not there. Not sure about the value creation failed, sounds like maybe you're trying to add something to the registry? Can't see anything off the top of my head, but then of course I can't say since I don't have the files you're working with.

Link to comment
Share on other sites

  • 0
cud someone check this batch script n tell me if theres anything wrong plsss

Can't say I see anything wrong, but then it's mostly cd, copy, and renaming stuff.

Link to comment
Share on other sites

  • 0

I'm trying to help Devil with the script, I did the beta one but on the original script (install.bat) I just translated and fixed anything I saw wrong, whats happening with the original script is that once its done and you restart you'll get a parser 608 error which I have no idea is...

anyways the beta seems to be working fine now but I need some testers :p

Link to comment
Share on other sites

  • 0

this might be a stupid question as i dont know what gant is, but why are you using a batch script for it? why dont you use a free installer like NSIS? or even a VBScript file

Link to comment
Share on other sites

  • 0

Gant is an icon set, were using bat files to copy the files and replace the windows files, would there be an easier way of doing this?

Link to comment
Share on other sites

  • 0

well, NSIS is pretty easy to use.. but i noticed in your batch file that you use something called taskkill (or something like that), which i assume forces a process closed (like explorer) so you can replace the in-use file..... you wouldnt be able to kill a process (or shell a program to kill a process) from NSIS (as far as i know, but im not very familiar with the full scripting support).... you might be able to with Setup Factory as its a little more robust, but its not a free program

alternatively using NSIS, there is a microsoft program called inuse.exe that will replace a file that is in use upon reboot, so you could use that method but it would require rebooting afterwards (which im sure you want to do anyways with your current method because killing explorer to replace it even upon running it again leaves some things to be desired)

as for me creating the VBScript, uhh.. i might be able to depending on what exactly is involved.. ive never actually created a VB Script file but i am well versed with visual basic, and they are essentially the same thing.. even better i would easily be able to create a good VB installer, but then that requires that any end user has the VB runtimes installed (same with VBScript, they need something or other installed for the script to run)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.