RE: Question on ini entries file

Discuss & post Update Pack addons here.
Post Reply
User avatar
dragonfixed
Posts: 106
Joined: Thu May 12, 2005 8:04 pm

RE: Question on ini entries file

Post by dragonfixed » Wed Feb 22, 2006 5:28 pm

can you add reg hives into the entries.ini file. And make it apply them
"Why, little one, I do believe you said something wise."
-saphira

User avatar
RyanVM
Site Admin
Posts: 5189
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Wed Feb 22, 2006 6:54 pm

Probably with the [ExtraFileEdits] section
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

User avatar
dgelwin
Posts: 1152
Joined: Wed Aug 10, 2005 1:33 am
Location: Tegucigalpa, Honduras

Post by dgelwin » Wed Feb 22, 2006 7:11 pm

yes you can, use the extra file edits just remember that instead of using "=" sign use <EQUALS>, i used this function to import hives in my first release of dotnet silent installer from guirunonceex
Don't sweat petty things....or pet sweaty things

User avatar
dragonfixed
Posts: 106
Joined: Thu May 12, 2005 8:04 pm

Post by dragonfixed » Wed Feb 22, 2006 9:18 pm

can you give me some examples as i have not done this yet
dgelwin wrote:yes you can, use the extra file edits just remember that instead of using "=" sign use <EQUALS>, i used this function to import hives in my first release of dotnet silent installer from guirunonceex
"Why, little one, I do believe you said something wise."
-saphira

User avatar
dgelwin
Posts: 1152
Joined: Wed Aug 10, 2005 1:33 am
Location: Tegucigalpa, Honduras

Post by dgelwin » Wed Feb 22, 2006 9:35 pm

ok one sec let me dig up some old code.

Code: Select all

[Version]
Signature=$CHICAGO$

[newhive]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Title,0x00000000,"Applying_Settings"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Flags,0x00010001,0x00000020
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Infs",,,"Applying_Inf's"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Infs",1,,"rundll32 setupapi,InstallHinfSection XP 128 ..\Windows\Inf\netty.inf"
that was the code for my hive file
and here is the code for my entries

Code: Select all

[general]
builddate=2005/11/1
description=.net
language=English
title=netty sanches
version=1.06
website=ryanvm.net

[dosnet_files]
d1,netty.inf
d1,netty.exe
d1,newnetty.inf

[txtsetup_files]
netty.exe = 1,,,,,,,2,0,0
netty.inf = 1,,,,,,,20,0,0
newnetty.inf =1,,,,,,_x,,3,3

[ExtraFileEdits]
rvmtemp\txtsetup.sif|[HiveInfs.Fresh]|[HiveInfs.Fresh]<NEXT>AddReg <EQUALS> newnetty.inf,newhive<NEXT>|1
but the extra files edits can also be used to edit directly the hive files such as hivedef.inf

--edit, dont know why but the code doesnt look as neat in the code section as it does in notepad go figure
Don't sweat petty things....or pet sweaty things

User avatar
Siginet
Site Admin
Posts: 2894
Joined: Fri May 27, 2005 1:07 pm
Location: Planet Earth
Contact:

Post by Siginet » Wed Feb 22, 2006 10:07 pm

dgelwin wrote:yes you can, use the extra file edits just remember that instead of using "=" sign use <EQUALS>, i used this function to import hives in my first release of dotnet silent installer from guirunonceex
Actually I fixed that in v1.1. You can now use = or <EQUALS>. :D

ExtraFileEdits looks confusing at first glance... but it is simple once you get the hang of it.

Just remember:

rvmtemp\dosnet.inf|d1,sp2.cab|d1,sp2.cab<NEXT>d1,sp3.cab|0

1. Is the file to edit. If editing sysoc.inf svcpack.inf txtsetup.sif or dosnet.inf make sure you edit it inside of the rvmtemp directory. For any other file just type the filename that exists in i386.

2. Is the string to find.

3. Is what you want to replace the string with.

4. Is the number of instances that exact string will be replaceing. (Type 0 for all instances).

Every section is seperated by a | (pole).

If you use <NEXT> anywhere in your strings it means go to the next line.
<EQUALS> means = (But should not be needed anymore).
Image
--Siginet--

Techware
Your Virtual Technician
Computer Management Software

Post Reply