Entries.ini - copy files [HELP]

Questions about Update Pack making? Ask here.
Post Reply
fred_gaou
Posts: 5
Joined: Tue May 13, 2008 7:41 am
Location: France - Paris

Entries.ini - copy files [HELP]

Post by fred_gaou » Tue Oct 13, 2009 2:32 pm

Hi,

I use nlite and I want to create an addon that installs Devcon.exe (simply copy the files in system32, indeed) in my XP SP3. Can I do that only using the entries.ini files or must I add an inf files?

Here is the addon structure I'd like to:

Code: Select all

Devcon.cab
+DEVCON.EX_
+ENTRIES_devcon.INI
ENTRIES_devcon.INI content:

Code: Select all

[general]
builddate=2009/10/11
description=utilitaire de ligne de commande qui peut être utilisé à la place du Gestionnaire de périphériques
title=Devcon
version=1
website=

; fichiers à copier dans system32
; gardent le nom complet même s'ils sont compressé tel que SYSSETUP.IN_
[dosnet_files]
d1,DEVCON.EXE

[txtsetup_files]
DEVCON.EXE = 100,,,,,,,2,0,0
Is it ok?

Plus, I didn't find a resource (i.e.:MSDN) that explains what 100,,,,,,,2,0,0 really means and how to use the syntax form to change destination directory? Have you got a link, please?

regards

User avatar
dumpydooby
Posts: 530
Joined: Sun Jan 15, 2006 6:09 am

Post by dumpydooby » Tue Oct 13, 2009 2:47 pm

Code: Select all

a = b,,,,,,c,d,e,f,,,g

a. Name of file .............: This is the file name that is on the CD
b. File status ..............: Tells Windows if the file is included on an original "vanilla" disc. 100 means it's an "update."
   Commas required ..........: These are extra commas that are necessary for every entry in txtsetup.
c. [SourceDisksNames] entry .: This represents a directory that is listed in [SourceDisksNames] (and [SDN.86] )
                               (note: _x means that the file is compressed)
d. Destination Directory ....: This is a destination directory code as defined in [WinntDirectories] of TXTSETUP.SIF.
e. Upgrade Code* ............: A single digit that is used if setup is being run as an "upgrade" (e.g., Upgrading from Win98 to WinXP)
f. New Install Code* ........: A single digit that is used if setup is being run as a "fresh" install (e.g., Reformatting HDD and installing XP)
   Commas optional ..........: Put commas here if the file is going to be renamed. Otherwise, don't put commas here.
g. New File Name ............: If the file is being renamed, put it here.

*Codes: 0 = Always write; 1 = only overwrite; 3 = NEVER write
So...
100,,,,,,,2,0,0
... 100 means that it's an "Upgrade"
... 2 means...

Code: Select all

[WinntDirectories]
1  = "\"
2  = system32
... that it's going into system32
... 0,0 means that it will always copy the file during an upgrade and during a fresh install.



In short, yes that's OK.

fred_gaou
Posts: 5
Joined: Tue May 13, 2008 7:41 am
Location: France - Paris

Post by fred_gaou » Tue Oct 13, 2009 4:14 pm

Thanks

Post Reply