Jump to content

|00|

Member
  • Posts

    9
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by |00|

  1. to make it simple

    Set WshShell = WScript.NOCreateObject("WScript.Shell")

    On Error Resume Next

    --> copy and paste it

    WshShell.Run

    --> too run a command

    here, runs foobar install

    WScript.Sleep 10000

    --> pause 10000 ms = 10 sec

    WshShell.SendKeys

    --> DOWN = DOWN

    --> TAB 2 = TAB two times

    Wscript.Quit

    --> to close

    if you want to know the keys, make a simple install and note each key you need to install foobar you own way...

    00

  2. why not to call a little vbs script via a .cmd file ?

    e.g

    ================================

    VBS script (call it foo.vbs)

    it aims to install all formats

    btw you can modify it

    place it in ...\$OEM$\$1\Install\applications\foobar

    with foobar.exe (rename it if necessary)

    ================================

    Set WshShell = WScript.CreateObject("WScript.Shell")

    On Error Resume Next

    WshShell.Run ("c:\install\applications\foobar\foobar.exe /S")

    WScript.Sleep 10000

    WshShell.SendKeys "{DOWN}"

    WScript.Sleep 800

    WshShell.SendKeys "{TAB 2}"

    WScript.Sleep 500

    WshShell.SendKeys "{ENTER}"

    WScript.Sleep 6000

    WshShell.SendKeys "{SPACE}"

    WScript.Sleep 500

    WshShell.SendKeys "{TAB 2}"

    WScript.Sleep 500

    WshShell.SendKeys "{ENTER}"

    WScript.Sleep 500

    Wscript.Quit

    ================================

    in the batch that you call with winnt.sif e.g

    ================================

    ECHO Installing foobar v0.8 special

    ECHO please, wait...

    start /wait %systemdrive%\install\Applications\foobar\foo.vbs

    00

    post edited

    :)

  3. for swap file, there is another way : inf files

    create a "paging.inf" file with :

    [version]signature="$Windows NT$"

    [DefaultInstall]

    DelReg=PageFile.DelReg

    AddReg=PageFile.AddReg

    [PageFile.DelReg]

    HKLM,"System\CurrentControlSet\Control\Session Manager\Memory Management","PagingFiles"

    [PageFile.AddReg]

    HKLM,"System\CurrentControlSet\Control\Session Manager\Memory Management","PagingFiles",0x00010008,"d:\pagefile.sys 700 700"

    this is for a fixed swap file of 700 mb on D: , you can change it as you want.

    NB : If you want the os to decide of the size type "(drive letter):\pagefile.sys 0 0"

    then follow gosh's guide to load it...

×
×
  • Create New...