Jump to content

bergx

Member
  • Posts

    9
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Netherlands

Posts posted by bergx

  1. I want to automatically create my partitions:

    C System 8 Gbyte

    D Temp 4 Gbyte

    E Data the rest

    I want this for every server. The problem is that in DOS the max partitionsize cannot be 8 Gbyte. I know that in the unattended.txt file I can expand the partition to whatever is left but how do I do this unattended with 3 partitions?

  2. I was looking for a way to capture in a logfile the activities whenh RunOnceEx executes. I came across the following topic:

    http://www.jsiinc.com/subb/tip0500/rh0501.htm

    So I used this and it works great, here's an example:

    set log=%logdir%\install.log

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V FLAGS /D 0x00000030 /t REG_DWORD /f
    REG ADD %KEY% /V TITLE /D "post Install Script" /f

    REG ADD %KEY%\020 /VE /D "Adjusting Windows boot-menu" /f
    REG ADD %KEY%\020 /V 1 /D "%comspec% /c echo --- Adjusting Windows boot-menu>>%log% 2>&1" /f
    REG ADD %KEY%\020 /V 2 /D "bootcfg /timeout 5" /f
    REG ADD %KEY%\020 /V 3 /D "bootcfg /delete /ID 2" /f

    REG ADD %KEY%\030 /VE /D "Change 'My Computer' " /f
    REG ADD %KEY%\030 /V 1 /D "%comspec% /c echo --- Change 'My Computer' >>%log% 2>&1" /f
    REG ADD %KEY%\030 /V 2 /D "regedit -s %SystemDrive%\$oem$\MyComp.reg" /f

    REG ADD %KEY%\040 /VE /D "Allocate reserve-file of 256 Mb" /f
    REG ADD %KEY%\040 /V 1 /D "%comspec% /c echo --- Allocate reserve-file of 256 Mb >>%log% 2>&1" /f
    REG ADD %KEY%\040 /V 2 /D "fsutil file createnew c:\reserve.donotdelete 256000000" /f

  3. I am trying to convert my installation to use the Runonceex. In one of the entries I call a batch procedure, which executes.

    However, if the batch procedure failes for a reason (e.g. exit 1) it just continues with the other entries and nothing shows that something has failed.

    Is it possible and how to stop further execution and give a clear warning that something has failed using runonceex?

    regards

    Xaveer

×
×
  • Create New...