Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help me ... cannot get RunOnce to work properly.

Featured Replies

Hi,

I would like to execute batch1, reboot then execute batch2.

What happen is that it execute

- batch1 along with driverpack cleanup without reboot

- batch2

Please check advice, thanks. Maybe the following command is incorrect.

Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v FirstLogon /d %systemdrive%\install\batch2.cmd /f

My winnt.sif

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

[GuiRunOnce]

%systemdrive%\install\batch1.cmd

;

; Edited by DriverPacks BASE 8.12.5

; http://www.driverpacks.net/

;

command9="%SystemDrive%\DPsFnshr.exe"

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

batch1.cmd

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


CLS
@echo off
COLOR 0a
TITLE Windows XP Unattended Installation
%systemdrive%\install\sleep.exe 5

echo.
echo Installing Ms Java ...
%systemdrive%\install\Java\MSJavx3810.exe /Q:A /R:N

%windir%\System32\shutdown.exe -r -f -t 180 -c " Please remove the disc ... "

copy c:\install\desktop\*.* "%systemdrive%\Documents and Settings\All Users\Desktop"

%systemdrive%\install\ej.com

Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v FirstLogon /d %systemdrive%\install\batch2.cmd /f

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

batch2.cmd <---- to execute after reboot

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


%windir%\System32\shutdown.exe -r -f -t 20 -c "Rebooting in ... "
REGSVR32 /U /S zipfldr.dll
regedit /s %systemdrive%\install\tweaks.reg

cls
echo.
echo Deleting Junk ...
%systemdrive%\install\sleep.exe 5
rem DEL /F /S /Q /A "%systemroot%\*.bmp"
rem DEL /F /S /Q /A "%systemroot%\Web\Wallpaper\*.jpg"
rem DEL /F /S /Q /A "%systemroot%\system32\dllcache\*.scr"
rem DEL /F /S /Q /A "%systemroot%\system32\*.scr"
RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Music\"
RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Playlists\"
RD /S /Q "%AllUsersProfile%\Documents\My Pictures\Sample Pictures\"
RD /S /Q %systemdrive%\Drivers
DEL /F /S /Q /A %systemroot%\prefetch\*.*
DEL /F /S /Q /A %systemroot%\Temp\*.*
DEL /F /S /Q /A "%userprofile%\Local Settings\Temp\*.*"
DEL /F /S /Q /A %SystemRoot%\*.log
RD /S /Q %systemdrive%\install

Use HKLM instead of HKCU. ;)

  • Author

Thank you 5eraph it work.

On unattended it install batch1, then xp personalized settings, reboot, install batch2 (runonce)

However I still cannot "show quick launch".

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

batch1.cmd

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

etc ....

echo.

echo Turn QuickLaunch on ...

rem to turn the Quick Launch toolbar on 1 ... off 0

%systemdrive%\install\toggleql.exe 1 <---------------- does not work

regedit %systemdrive%\install\quicklaunch.reg <------------------ does not work

Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v FirstLogon /d %systemdrive%/install/batch2.cmd /f

%systemdrive%\install\sleep.exe 5

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

batch2.cmd <---- to execute after reboot

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

rem .... I even try the following still does not work.

echo.

echo Turn QuickLaunch on ...

rem to turn the Quick Launch toolbar on 1 ... off 0

%systemdrive%\install\toggleql.exe 1 <---------------- does not work too

regedit %systemdrive%\install\quicklaunch.reg <------------------ does not work too

referece of toogleql.exe

http://www.windowsitpro.com/article/tips/q-how-can-i-toggle-the-quick-launch-toolbar-on-or-off-in-a-script-.aspx

quicklaunch.reg

;Set Explorer to Detail view, enable Explorer's statusbar and enable QuickLaunch

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams]

"Settings"=hex:09,00,00,00,04,00,00,00,01,00,00,00,00,77,7e,13,73,35,cf,11,ae,\

69,08,00,2b,2e,12,62,04,00,00,00,01,00,00,00,43,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\ 0]

"ViewView2"=hex:1c,00,00,00,04,00,00,00,00,00,00,00,00,00,90,00,00,00,00,00,01,\

00,00,00,ff,ff,ff,ff,f0,f0,f0,f0,14,00,03,00,90,00,00,00,00,00,00,00,30,00,\

00,00,fd,df,df,fd,0f,00,04,00,20,00,10,00,28,00,3c,00,00,00,00,00,01,00,00,\

00,02,00,00,00,03,00,00,00,51,01,72,00,78,00,61,00,00,00,00,00,01,00,00,00,\

02,00,00,00,03,00,00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\ 1]

"ViewView2"=hex:1c,00,00,00,04,00,00,00,00,00,00,00,00,00,90,00,00,00,00,00,01,\

00,00,00,ff,ff,ff,ff,f0,f0,f0,f0,14,00,03,00,90,00,00,00,00,00,00,00,30,00,\

00,00,fd,df,df,fd,0f,00,04,00,20,00,10,00,28,00,3c,00,00,00,00,00,01,00,00,\

00,02,00,00,00,03,00,00,00,51,01,72,00,78,00,61,00,00,00,00,00,01,00,00,00,\

02,00,00,00,03,00,00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\ Defaults]

"{F3364BA0-65B9-11CE-A9BA-00AA004AE837}"=hex:1c,00,00,00,04,00,00,00,00,00,00,\

00,00,00,90,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,f0,f0,f0,f0,14,00,03,00,\

90,00,00,00,00,00,00,00,30,00,00,00,fd,df,df,fd,0f,00,04,00,20,00,10,00,28,\

00,3c,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,00,00,51,01,72,00,78,00,\

61,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,00,00,ff,ff,ff,ff,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\ Desktop]

"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,d8,\

64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,10,00,00,1a,00,00,00,01,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,00,\

00,00,c0,00,00,00,00,00,00,46,81,00,00,00,11,00,00,00,20,91,2a,58,94,bd,c3,\

01,00,98,43,d7,15,bd,c3,01,00,0b,da,58,94,bd,c3,01,00,00,00,00,00,00,00,00,\

01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,15,02,14,00,1f,50,e0,4f,d0,\

20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,2f,43,3a,5c,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,5c,00,31,00,00,00,00,00,88,2f,5d,6e,\

10,00,44,4f,43,55,4d,45,7e,31,00,00,44,00,03,00,04,00,ef,be,88,2f,5d,6e,87,\

2f,00,b8,14,00,00,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,73,00,\

20,00,61,00,6e,00,64,00,20,00,53,00,65,00,74,00,74,00,69,00,6e,00,67,00,73,\

00,00,00,18,00,4a,00,31,00,00,00,00,00,88,2f,93,70,10,00,41,44,4d,49,4e,49,\

7e,31,00,00,32,00,03,00,04,00,ef,be,88,2f,93,70,87,2f,00,b8,14,00,00,00,41,\

00,64,00,6d,00,69,00,6e,00,69,00,73,00,74,00,72,00,61,00,74,00,6f,00,72,00,\

00,00,18,00,64,00,31,00,00,00,00,00,88,2f,71,6e,13,00,41,50,50,4c,49,43,7e,\

31,00,00,4c,00,03,00,04,00,ef,be,88,2f,93,70,87,2f,00,b8,14,00,36,00,41,00,\

70,00,70,00,6c,00,69,00,63,00,61,00,74,00,69,00,6f,00,6e,00,20,00,44,00,61,\

00,74,00,61,00,00,00,40,73,68,65,6c,6c,33,32,2e,64,6c,6c,2c,2d,32,31,37,36,\

35,00,18,00,42,00,31,00,00,00,00,00,88,2f,67,6e,14,00,4d,49,43,52,4f,53,7e,\

31,00,00,2a,00,03,00,04,00,ef,be,88,2f,93,70,87,2f,00,b8,14,00,00,00,4d,00,\

69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,00,00,18,00,52,00,31,00,00,\

00,00,00,88,2f,57,6f,10,00,49,4e,54,45,52,4e,7e,31,00,00,3a,00,03,00,04,00,\

ef,be,88,2f,93,70,87,2f,00,b8,14,00,00,00,49,00,6e,00,74,00,65,00,72,00,6e,\

00,65,00,74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,00,00,\

18,00,48,00,31,00,00,00,00,00,88,2f,b1,70,11,00,51,55,49,43,4b,4c,7e,31,00,\

00,30,00,03,00,04,00,ef,be,88,2f,b1,70,87,2f,00,b8,14,00,00,00,51,00,75,00,\

69,00,63,00,6b,00,20,00,4c,00,61,00,75,00,6e,00,63,00,68,00,00,00,18,00,00,\

00,10,00,00,00,05,00,00,a0,1a,00,00,00,37,01,00,00,00,00,00,00,00,00,00,00,\

60,07,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,\

00,00,00,01,00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,\

18,b4,0c,03,00,00,60,0d,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,\

00,16,00,00,00,00,00,00,00,01,00,00,00

"Toolbars"=hex:11,00,00,00,00,00,00,00

"Upgrade"=dword:00000001

Edited by illusions

Also beware that you should write key for quick launch when explorer is not running (before it is started / after closed) or it will overwrite your modification when it exits..

  • Author

Ok after long experiment. I got QL to work.

on CMDLINES.TXT I add

"regedit /s quicklaunch.reg"

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

quicklaunch.reg put $oem$

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

Windows Registry Editor Version 5.00

; Enable Quick Launch

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]

"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,\

d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,01,00,00,1a,00,00,00,\

01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,\

00,00,00,c0,00,00,00,00,00,00,46,83,00,00,00,10,00,00,00,a0,b0,48,5e,89,8d,\

bd,01,00,d8,9e,e4,2a,8d,bd,01,00,45,fe,5e,89,8d,bd,01,00,00,00,00,00,00,00,\

00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,13,01,14,00,1f,0f,e0,4f,\

d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,23,44,3a,5c,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,cd,97,15,00,31,00,00,00,00,00,af,24,5c,\

b9,10,80,57,69,6e,6e,74,00,00,20,00,31,00,00,00,00,00,af,24,a3,b9,10,00,50,\

72,6f,66,69,6c,65,73,00,50,52,4f,46,49,4c,45,53,00,19,00,31,00,00,00,00,00,\

c1,24,08,92,10,00,69,65,35,30,30,2e,30,30,30,00,00,28,00,31,00,00,00,00,00,\

c1,24,08,92,10,00,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,00,41,50,\

50,4c,49,43,7e,31,00,21,00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,\

6f,73,6f,66,74,00,4d,49,43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,\

32,a6,10,00,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,\

45,52,4e,7e,31,00,24,00,31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,\

20,4c,61,75,6e,63,68,00,51,55,49,43,4b,4c,7e,31,00,00,00,8d,00,00,00,1c,00,\

00,00,01,00,00,00,1c,00,00,00,36,00,00,00,0d,f0,ad,ba,8c,00,00,00,1a,00,00,\

00,03,00,00,00,e7,18,2d,23,10,00,00,00,49,45,35,30,30,5f,58,31,43,00,43,3a,\

5c,57,49,4e,4e,54,5c,50,72,6f,66,69,6c,65,73,5c,49,45,35,30,30,2e,30,30,30,\

5c,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,5c,4d,69,63,72,6f,73,6f,\

66,74,5c,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,5c,51,75,69,63,\

6b,20,4c,61,75,6e,63,68,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,a3,00,00,\

00,00,00,00,00,08,00,00,00,02,00,00,00,cc,00,00,00,01,00,00,00,03,00,00,00,\

4a,00,00,00,01,00,00,00,40,00,32,00,e6,01,00,00,c4,24,15,9f,20,00,4c,61,75,\

6e,63,68,20,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,20,42,72,6f,\

77,73,65,72,2e,6c,6e,6b,00,4c,41,55,4e,43,48,7e,32,2e,4c,4e,4b,00,00,00,40,\

00,00,00,02,00,00,00,36,00,32,00,48,02,00,00,c4,24,15,9f,20,00,4c,61,75,6e,\

63,68,20,4f,75,74,6c,6f,6f,6b,20,45,78,70,72,65,73,73,2e,6c,6e,6b,00,4c,41,\

55,4e,43,48,7e,31,2e,4c,4e,4b,00,00,00,36,00,00,00,00,00,00,00,2c,00,32,00,\

51,00,00,00,ec,22,46,39,20,00,53,68,6f,77,20,44,65,73,6b,74,6f,70,2e,73,63,\

66,00,53,48,4f,57,44,45,7e,31,2e,53,43,46,00,00,00,52,00,00,00,e0,00,00,00,\

00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,\

00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,37,02,\

00,00,e0,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,\

00,00,00,00,00,01,00,00,00

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.