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.

Simple question - how to copy a file during unattended install

Featured Replies

Hi all,

I am just beginning to experiment with NLite so I apologize for my lack of knowledge here.

I'm trying to set the background during the install, turn on advanced find and turn off the search assisatnt. I tried using instructions I found in the .inf collection on here which suggests the commands below :

In the $OEM$ Folder add (line3) to :

CMDLINES.TXT

[Commands]

"rundll32 advpack.dll,LaunchINFSection nLite.inf,U"

"rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,U,,4,N"

"REGEDIT /S XP_CD.REG"

Create :

XP_CDREG.TXT

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]

"WallPaper"="C:\\Windows\\Web\\Wallpaper\\Crystal.jpg"

[HKEY_CURRENT_USER\Software\Microsoft\Search Assistant]

"Actor"=""

"SocialUI"=dword:00000000

"UsageCount"=dword:00000000

"UseAdvancedSearchAlways"=dword:00000001

This doesn't seem to execute though.

However, if I run it manually it does set things up correctly.

Something else I found in my reading was to use the command below :

In WINNT.SIF :

[GuiRunOnce]

"%SystemRoot%\System32\nLite.cmd"

However, after I added this, windows complains that it cannot find nLite.cmd.

So two questions, how can I execute the registry punch (or set background, etc, during install) and how does Windows know which files to copy during the install (or if I just place a file called nLite.cmd in the I386 folder, does windows just naturally copy *.* from that folder?)


I tried using instructions I found in the .inf collection on here which suggests the commands below :

In the $OEM$ Folder add (line3) to :

CMDLINES.TXT

[Commands]

"rundll32 advpack.dll,LaunchINFSection nLite.inf,U"

"rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,U,,4,N"

"REGEDIT /S XP_CD.REG"

Create :

XP_CDREG.TXT

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]

"WallPaper"="C:\\Windows\\Web\\Wallpaper\\Crystal.jpg"

[HKEY_CURRENT_USER\Software\Microsoft\Search Assistant]

"Actor"=""

"SocialUI"=dword:00000000

"UsageCount"=dword:00000000

"UseAdvancedSearchAlways"=dword:00000001

This doesn't seem to execute though.

However, if I run it manually it does set things up correctly.

The filename should be XP_CD.REG... remove the ".txt"

Something else I found in my reading was to use the command below :

In WINNT.SIF :

[GuiRunOnce]

"%SystemRoot%\System32\nLite.cmd"

However, after I added this, windows complains that it cannot find nLite.cmd.

So two questions, how can I execute the registry punch (or set background, etc, during install) and how does Windows know which files to copy during the install (or if I just place a file called nLite.cmd in the I386 folder, does windows just naturally copy *.* from that folder?)

you can actually run any cmd file you want from that section of winnt.sif, but you have to create the cmd file and tell it what to do. No, windows will not just copy the files, however anything in the $oem$ folders will get copied. With $oem$\$$ being the windows folder.

Edited by DizzyDen

  • Author

ARRG!!

Haha. Thanks for answering both questions.

Of course it would be something obvious like that! ;>

  • Author

I corrected the typo on the file name, the files are in the $OEM$ folder on the CD, but the are not getting copied to the HD during the install process nor are they being run?

How does the windows installer know which files to copy?

Where should I put my cmd files so that they are copied over?

Or even, how can I tell nlite/windows to run them from the CD?

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.