Jump to content

Unattended files


Recommended Posts


The correct syntax is
file,,,4

and not

file,4

, this is the problem. The explanation what this "4" means is here: http://old.winpack.org/petr/INF_web/copyfile.htm

Petr

[version]
signature="$CHICAGO$"


[DefaultInstall]
CopyFiles = copy.files
RegisterOCXs=Register.files


[copy.files]
browseui.dll,,,4
regclean.exe,,,4

etc.................

is this how it should be?

Edited by PROBLEMCHYLD
Link to comment
Share on other sites

This is a example of what my setup would be

98SE2XP.bmp %windir%
98SEOLD.bmp %windir%
CALC.exe %windir% default shortcut
Charmap.exe %windir% default shortcut
DeskMenu.exe %windir% shortcut WINDOWS\Start Menu\Programs\startup
ECM.hlp %windir%\help
IEXPLORE.exe C:\programs files\internet explorer
iexpress.exe %windir%\system
King Crimson.jpg C:\windows\web\wallpaper
MAPC_OFF.inf
mobsync.exe %windir%\system default shortcut
MSPAINT.exe C:\Programs\Accessories default shortcut
NOTEPAD.exe %windir% default shortcut
Pulp Fiction.jpg C:\windows\web\wallpaper
RegClean.exe %windir% shortcut C:\WINDOWS\Start Menu\Programs\Accessories\System Tools
Shared Dll.exe %windir%
SNDREC32.exe %windir% default shortcut
SNDVOL32.exe %windir% default shortcut
spider.exe %windir% default shortcut
Windows Millennium.jpg C:\windows\web\wallpaper
WINTOP.exe %windir% shortcut C:\WINDOWS\Start Menu\Programs\Accessories\System Tools
WINTOP.inf
WINTOP.VXD
WRITE.exe %windir% default shortcut
WUPDMGR.exe %windir%
Explorer.exe %windir%
systray.exe %windir%\system

Now how do i set it up correctly in my inf file

Edited by PROBLEMCHYLD
Link to comment
Share on other sites

Did you guys forget about me?

I need some1 to critique the post above and let me know if everything is right

before i go any further which i gonna need help along the way.

I thought you were too busy giving your blessings to Israel those days :

7125357910bx.jpg

Link to comment
Share on other sites

Did you guys forget about me?

I need some1 to critique the post above and let me know if everything is right

before i go any further which i gonna need help along the way.

I thought you were too busy giving your blessings to Israel those days :

7125357910bx.jpg

you spent more time to post something irrelevant far as this post

when you could have just said yes or no

what a genius

Edited by PROBLEMCHYLD
Link to comment
Share on other sites

You didn't follow the instructions as to what to do with your reg files in a previous post and you ask again so let me take it as a joke or as as a game you play.

You snap in your fingers and you expect to be instantly answered for stuff that has already been answered.

I said :

For your registry files, you may also want to convert them into inf format and create a new section for them in your above inf.

You can convert reg to inf quite easily with Willy Pad :

http://www.chez.com/snoopy81/en/willy.htm

And you later asked :

I don't want the reg files copied but to install/register
Link to comment
Share on other sites

I downloaded Willy Pad and it only let me convert 1 file at a time.

can i use a batch file to register the files

meaning i use the inf to trigger the batch file to install the reg files

@ eidenk

I also gotta thank you for u got me this far

lets ride til the end

Edited by PROBLEMCHYLD
Link to comment
Share on other sites

You are able to copy and paste I believe, so there should be no problem with your reg files. You can either merge all your reg files into one and convert it all at once with Willy pad or use copy and paste between two instances of it.

What you need to do is declare an AddReg section in the DefaultInstall section, create that Addreg section and add the values to it.

[DefaultInstall]
AddReg=Something

[Something]
What you have converted with WillyPad

Or as you say, I guess you can include all your regs + bat and then run the batch file as the post setup command.

You must try it to see if it does work for the second method because I have never tried that.

Link to comment
Share on other sites

To convert REG files to INF files, you may want to consider REG2INF [free]:

http://www.paraglidernc.com/12142.html

Download ConvRegToInf.

But this program requires you to learn proper registry H_KEY abbreviations valid for INF files, because REG2INF has its own template code, which is valid only for Bart's PE Builder scripts [apply to Windows 2000/XP/2003].

Online convertor:

http://vb.nl.eu.org/homepage/reg2peinf.aspx

Inf-tool can convert reg 2 inf too:

http://www.msfn.org/board/?s=&showtopi...ost&p=79777

HTH

Link to comment
Share on other sites

the post setup command did work for the reg files.

do i add the two inf files i have to the bat file

or set a path in my inf file

Why do you have two inf files now ? Can't you do just with one and have it as the main setup command of the installer ?

Obviously you could add your infs to the batch file if you wanted to, after all.

You can try this in your batch file :

rundll.exe setupx.dll,InstallHinfSection DefaultInstall 132 %1

and replace %1 by the name of the inf you want to launch.

You must try and experiment yourself and see what works best or what you are more comfortable with but going entirely with inf (without a batch file) is not only more elegant, as there is no command window that will appear, but also likely to be more stable IMO.

Anyway I think you got the basics now, isnt'it ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...