Jump to content

edg21

Member
  • Posts

    196
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by edg21

  1. This cmd file could be modified to perform driver installations depending on your hardware. I've only had a chance to test this on 2 different machines & it worked fine. Please test this on your systems & let me know what kind of results you get. Requires DEVCON.EXE in your path.

    Obtain devcon.exe here:

    http://support.microsoft.com/default.aspx?...b;EN-US;Q311272

    atiornv.cmd

    @echo off 

    :detect_vid
    devcon find * | find "ATI" >NUL
    if not errorlevel 1 goto ati
    devcon find * | find "NVIDIA" >NUL
    if not errorlevel 1 goto nvidia
    goto neither

    :nvidia
    echo nvidia
    goto end

    :ati
    echo ati
    goto end

    :neither
    echo neither
    goto end
    :end

  2. Put wget.exe and unzip.exe in $oem$\$$\system32 and download a zipped structure from the SUS Server (which is an IIS that allows anonymous access using http). A SUS Server is present in most corporate networks anyway.

    I initially was using wget & decided to see how else I could do what I wanted, not sure which I'll use yet to be honest, I'm still testing :)

    Wget Post:

    http://www.msfn.org/board/index.php?showtopic=24317&hl=wget

  3. *** UPDATED *** check new post

    http://www.msfn.org/board/index.php?showtopic=26963

    Here's another way to download application/update "packages" over your network using an ftp server. I prefer this method as I can just update the files on the ftp server if I ever want anything on my unattended cd to change. Saves time on burning cds. Unlike my wget post this one doesn't require any extra files other than unrar.exe in your path. Let me know if you use this, I will write a full tutorial if enough people are interested.

    What it does:

    1. Creates necessary directories.

    2. Creates ftp_cmd.txt

    3. Runs ftp.exe against ftp_cmd.txt to download packages.

    4. Extracts downloaded packages.

    5. Deletes compressed files & installs packages.

    md %SYSTEMDRIVE%\install
    md %SYSTEMDRIVE%\install\apps
    md %SYSTEMDRIVE%\install\updates
    md %SYSTEMDRIVE%\install\tweaks
    @ECHO open 192.168.1.25 >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO username >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO password >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO bin >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO prom >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO lcd %SYSTEMDRIVE%\install >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO cd unattend >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO get apps.cmd >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO get updates.cmd >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO get cleanup.cmd >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO lcd %SYSTEMDRIVE%\install\apps >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO cd apps >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO mget *.rar >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO lcd %SYSTEMDRIVE%\install\updates >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO cd ../updates >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO mget *.rar >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO lcd %SYSTEMDRIVE%\install\tweaks >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO cd ../tweaks >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO mget *.reg >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    @ECHO bye >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    %SYSTEMDRIVE%\windows\system32\ftp.exe -s:%SYSTEMDRIVE%\install\ftp_cmd.txt
    del %SYSTEMDRIVE%\install\ftp_cmd.txt
    for %%i in (%systemdrive%\install\apps\*.rar) do UNRAR x %%i %SYSTEMDRIVE%\install\apps
    del %SYSTEMDRIVE%\install\apps\*.rar
    for %%i in (%systemdrive%\install\updates\*.rar) do UNRAR x %%i %SYSTEMDRIVE%\install\updates
    del %SYSTEMDRIVE%\install\updates\*.rar
    %SYSTEMDRIVE%\install\apps.cmd

  4. You can also script ftp.exe to download your packages from a ftp server.

    Put this file in $OEM$\$$\system32

    ftp_cmd.txt

    open 192.168.1.25
    username
    password
    lcd c:\install
    prom
    get apps.cmd
    get updates.cmd
    get cleanup.cmd
    bin
    cd unattend
    cd apps
    mget *.rar
    cd ../updates
    mget *.rar
    bye

    Then just run this command when you want to d/l the packages:

    %SYSTEMDRIVE%\windows\system32\ftp.exe -s:%SYSTEMDRIVE%\windows\system32\ftp_cmd.txt

    Or you could just add the following to your batch file:

    ECHO open 192.168.1.25 >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO username >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO password >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO lcd c:\install >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO bin >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO prom >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO get apps.cmd >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO get updates.cmd >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO get cleanup.cmd >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO cd unattend >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO cd apps >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO mget *.rar >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO cd ../updates >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO mget *.rar >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO bye >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    ECHO bye >> %SYSTEMDRIVE%\install\ftp_cmd.txt
    %SYSTEMDRIVE%\windows\system32\ftp.exe -s:%SYSTEMDRIVE%\install\ftp_cmd.txt

  5. thanks edg21 I'm working on an install using this method right now. I'm modifying it for ftp use though as I don't want to install and configure a webserver. I was looking into doing a distribution share but I wasn't exactly sure how to do it using my gentoo/samba machine. When I would attempt to create the distribution share setupmanager would say that it couldn't enable the share. This so far with my limited tests seems like it will work. Thanks.

    Glad to hear that it works for you, I'm in the process of writing a more detailed tutorial right now... the big question is wether or not I ever finish it :P

  6. What applications does everyone install with their unattended cd? The following is my current list of applications & tools.

    Applications Installed:

    WinRAR v3.30
    Alcohol 120 v1.9.2.1705
    Firefox v0.9.3
    Sun Java v1.4.2.05
    Nero Burning ROM v6.3.1.15 ultra edition
    K-Lite Mega Codec Pack
    mIRC v6.16 Including dccAssist v1.72
    Adobe Acrobat Reader v6.01 Full
    SpyBot Search & Destroy v1.3 (also schedules silent scans every 5 days)
    Azureus Bittorrent Client v2.1.0.4
    SecureCRT v4.1.0.205
    Total Commander v6.01
    SiSoft Sandra v2004 10.9.89
    Trillian Pro v2.013
    Microsoft Office 2003 (Access, Excel, Infopath, Powerpoint, Publisher, & Word)
    UltraVNC Viewer
    Winamp 5.04
    Putty v0.55

    Command Line Tools:

    wget.exe - v1.9beta w/ssl support
    uptime.exe - Shows system uptime
    sleep.exe - Puts a pause in a batch file
    fport.exe - Maps open ports to their applications
    unrar.exe - Duh
    shortcut.exe - Create shortcuts from command line

    (Note: All my applications are downloaded using wget & installed via GuiRunOnce. CD Size does not matter if one has a network!)

  7. In my unattended CD I have spybot S&D install & schedule it to scan every 5 days. I want to be able to determine if a certain process is running & act accordingly. My problem is this... I have several computers that cannot be interrupted (scan would cause them to fail) while a certain process is running. I want a batch file to check for a certain process.. if it see's it I would like to remove & reschedule the scan. If it is not running I would like it to run the already scheduled task. Any help or suggestions would be appreciated.

  8. sorry for askin another question, but I notice you delete shortcuts from the desktop after every install, couldnt you just delete all *.lnk from the desktop at the end?  If you dont use runonceex except to run start.cmd, you shouldnt have any .lnk files on your desktop on boot...just a thought.

    I could do that, but I like to be selective. What if I want some of those icons? I could definately clean it up using %PROGRAMFILES% and such, but I'm a lil tired :P

  9. You can use this to download & install your hotfixes & applications via a Web/FTP server. My Unattended CD pulls "packages" off my intranet server and then installs them. This means I only have to make one CD. If I need to change something, I just change the files on the web server. This takes some knowledge of how the unattended install process works. Sorry for not going into detail. My unattended cd logs in as administrator once, runs start.cmd & then reboots to the login screen. Keep in mind this is just what I did with it. I'm sure everyone can come up with some ideas of their own.

    This setup installs the following:

    Alcohol 120 v1.9.2.1705 retail multi-language

    WinRAR v3.30 corporate edition

    WGET v1.9beta w/ssl support

    Nero v6.3.1.15 ultra edition

    mIRC v6.16 incl dccassist 1.72

    UltraVNC Viewer

    Putty v0.55

    K-Lite Mega Codec Pack

    Adobe Acrobat Reader v6.01 Full

    Azureus v2.1.0.4

    SecureCRT v4.1.0.205

    Total Commander v6.01

    SiSoft Sandra v2004 10.9.89 Retail

    Trillian Pro v2.013

    SpyBot Search & Destroy v1.3 (also schedules silent scans every 5 days)

    These are the files in my $OEM$\$$\SYSTEM32 folder:

    start.cmd

    sleep.exe

    vncviewer.exe

    putty.exe

    shortcut.exe

    unrar.exe

    ssleay32.dll

    libeay32.dll

    wget.exe

    This file will download the list of packages from the webserver & then run wget against the list of URLS to d/l the RARs & CMD files.

    $OEM$\$$\SYSTEM32\START.CMD

    cls
    @echo off
    echo Downloading Packages...
    md %systemdrive%\install
    wget -P%systemdrive%\install\ http://bender/unattend/url_list.txt
    wget -P%systemdrive%\install\ -i%systemdrive%\install\url_list.txt
    %systemdrive%\install\apps.cmd

    Now setup a web server (you can use an ftp server but you will need to alter the batch files)

    The webserver needs the to have the following directories:

    /unattend/ - Put the cmd & url_list files here.

    /unattend/apps - Put your application rars here.

    /unattend/updates - Put your hotfixes here.

    /unattend/tweaks - Put your reg hacks here.

    Now you need to put the following files in their corresponding directories on the web server.

    /UNATTEND/url_list.txt

    http://bender/unattend/apps/alcohol.rar
    http://bender/unattend/apps/winrar330.rar
    http://bender/unattend/apps/firefox.rar
    http://bender/unattend/apps/sunjava.rar
    http://bender/unattend/apps/nero.rar
    http://bender/unattend/apps/klmcodec.rar
    http://bender/unattend/apps/mirc.rar
    http://bender/unattend/apps/adoberd.rar
    http://bender/unattend/apps/spybotsd.rar
    http://bender/unattend/apps/azureus.rar
    http://bender/unattend/apps/securecrt.rar
    http://bender/unattend/apps/tcmdr601.rar
    http://bender/unattend/apps/sandra.rar
    http://bender/unattend/apps/trillian.rar
    http://bender/unattend/updates/netfw11.rar
    http://bender/unattend/tweaks/tweaks.reg
    http://bender/unattend/apps.cmd
    http://bender/unattend/updates.cmd

    /UNATTEND/APPS.CMD

    @echo off
    ECHO.
    ECHO Installing Winrar v3.30 Corporate Edition...
    unrar x %SYSTEMDRIVE%\install\winrar330.rar %SYSTEMDRIVE%\install
    start /wait %SYSTEMDRIVE%\install\winrar330\winrar330.exe /s
    REGEDIT /S %SYSTEMDRIVE%\install\winrar330\cascade.reg

    etc... etc... etc...

    %SYSTEMDRIVE%\install\updates.cmd

    /UNATTEND/UPDATES.CMD

    @echo off

    ECHO.
    ECHO Installing .NET Framework v1.1...
    unrar x %SYSTEMDRIVE%\install\netfw11.rar %SYSTEMDRIVE%\install
    start /wait %SYSTEMDRIVE%\install\netfw11\netfx.msi /QB

    %SYSTEMDRIVE%\install\cleanup.cmd

    /UNATTEND/CLEANUP.CMD

    ECHO.
    ECHO Cleaning up...
    del "%ALLUSERSPROFILE%\Start Menu\Set Program Access and Defaults.lnk"
    del "%ALLUSERSPROFILE%\Start Menu\Windows Catalog.lnk"
    del "%ALLUSERSPROFILE%\Start Menu\Windows Update.lnk"
    del "%ALLUSERSPROFILE%\Start Menu\Programs\MSN Explorer.lnk"
    del "%ALLUSERSPROFILE%\Start Menu\Programs\Windows Messenger.lnk"
    del "%ALLUSERSPROFILE%\Start Menu\Programs\Windows Movie Maker.lnk"
    net user "ASP.NET" /delete

  10. I would like for my users to browse an intranet site & click an install link. I want it to then install the associated application. Does anyone have any suggestions as to how to do this? Currently I'm using ZeroG Install Anywhere & it works great, but I'm looking for something different that doesn't require Java. I've been told I can do what I want using InstallShield, but there are going to be lots of applications, so I need something low maintenance. I would also like to know how to make applications install when needed.

    EXAMPLE:

    user clicks .PDF file & Adobe Reader isn't installed. I would like windows to automatically install Adobe Reader via the Intranet site.

    Suggestions anyone?

  11. Well I've got an ATI AIW 7500 and the WDM drivers are a pain to get installed correctly sometimes. Thought you might not have em installed.... or maybe you should try to re-install em.

×
×
  • Create New...