Jump to content

ToCsIcK

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Posts posted by ToCsIcK

  1. O thnx, i was just trying to do that but i couldnt get it to work.

    Edit: Just relized that once u call the other batch file you wont be able to install with that script beacause it wont know what drive it is (I explained that badly :S) anyway found a way to fix it

    FOR %%i IN (D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) DO IF EXIST %%i\start.bat SET DRIVE=%%i
    @IF EXIST %DRIVE%\start.bat GOTO EXISTS
    ECHO.
    ECHO Additional Application Installer not found
    GOTO NOTEXISTS
    :EXISTS
    ECHO Aditional Application Installer found
    CALL %DRIVE%\start.bat %DRIVE%
    :NOTEXISTS

    then in start.bat on the drive you put, for example

    @echo off
    ECHO.
    ECHO Installing Program
    ECHO Please wait...
    start /wait %1\applications\program\setup.exe -s

  2. Hey first post, im new to the forum but ive done a few unattended installations and i wanna share something i havnt seen around the forum and i thought was pretty useful.

    If you have a second HDD or second CD-Rom or even a USB flash drive with this code u can have applications that dont fit on the first cd on these and have them install from that. It'll look for start.bat on each drive and if it finds it it'll run it. This is useful if u are always changing the applications u want installed but dont wanna create a new installation CD each time, all u have to do is put the new applications on that drive and update the start.bat, no need to update and reburn the installation CD. :thumbup

    @IF EXIST A:\start.bat set DRIVE=A:
    @IF EXIST D:\start.bat set DRIVE=D:
    @IF EXIST E:\start.bat set DRIVE=E:
    @IF EXIST F:\start.bat set DRIVE=F:
    @IF EXIST G:\start.bat set DRIVE=G:
    @IF EXIST H:\start.bat set DRIVE=H:
    @IF EXIST I:\start.bat set DRIVE=I:
    @IF EXIST J:\start.bat set DRIVE=J:
    @IF EXIST K:\start.bat set DRIVE=K:
    @IF EXIST L:\start.bat set DRIVE=L:
    @IF EXIST M:\start.bat set DRIVE=M:
    @IF EXIST N:\start.bat set DRIVE=N:
    @IF EXIST O:\start.bat set DRIVE=O:
    @IF EXIST P:\start.bat set DRIVE=P:
    @IF EXIST Q:\start.bat set DRIVE=Q:
    @IF EXIST R:\start.bat set DRIVE=R:
    @IF EXIST S:\start.bat set DRIVE=S:
    @IF EXIST T:\start.bat set DRIVE=T:
    @IF EXIST U:\start.bat set DRIVE=U:
    @IF EXIST V:\start.bat set DRIVE=V:
    @IF EXIST W:\start.bat set DRIVE=W:
    @IF EXIST X:\start.bat set DRIVE=X:
    @IF EXIST Y:\start.bat set DRIVE=Y:
    @IF EXIST Z:\start.bat set DRIVE=Z:
    @IF EXIST %DRIVE%\start.bat GOTO EXISTS
    ECHO.
    ECHO Additional application installer not found
    GOTO NOTEXISTS
    :EXISTS
    ECHO Aditional application installer found
    CALL %DRIVE%\start.bat
    :NOTEXISTS

    Its tested to work but if anyone finds sumthing rong please contribute

    Hope this helps someone

×
×
  • Create New...