Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Batch file help

  • 17-07-2008 04:33PM
    #1
    Registered Users, Registered Users 2 Posts: 1,099 ✭✭✭


    Hi Lads,
    Not sure if tis is the right place but I need some helkp with a batch.

    I m attempting to create a silent install of software call Monarch.

    Nopw nothing speciral about the software expcept it needs a unique user name enter during installation.

    I a hoping to use each PC s name as the user name during the install but
    to have the program pick up the computer name and enter it into the field.

    I ve written a batch file to lainch the program and run it silently and to user %COMPUTERNAME% to retrieve each PC's name but how to get that into the correct field is wrecking my head.

    Any help would be great.


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,033 ✭✭✭lynchie


    You need to consult the software maker / documentation on how to pass the computer name to them.. i.e. via command line switch / config file.. Once you know that then its quite easy. e.g. for command line it would be a simple as running the following in a batch file "install /computer_name=%COMPUTERNAME%"


  • Registered Users, Registered Users 2 Posts: 93 ✭✭Yarnhall


    Not sure if this is the same s/w
    http://www.monarchforums.com/showthread.php?t=276&highlight=install+silent

    But, It gives a good overview of the install shield app thats used alot and the answer files used (each line in a text file is the answer to each step in the install process), check the install shield site for using answer files.


  • Registered Users, Registered Users 2 Posts: 1,099 ✭✭✭Johnny Bitte


    Thanks for the link,
    Works up to a point.

    Unfortunaltetly it inputs %COMPUTERNAME% rather than the actual comptuer name.

    Still working on it.


Advertisement
Advertisement