Jump to content

Inf Question


Recommended Posts

doesnt work

what part doesn't work?

add a PAUSE after the CDIMAGE line to make sure the CMD file executes. If it doesn't, guess I did the INF wrong :P Just go into the registry and edit it manually and then see if it works.

EDIT: OH! Forgot to save the CMD file as cdimage.cmd in %systemdrive%\Windows\System32

Edited by Alanoll
Link to comment
Share on other sites


i changed the path to %24% (systemdrive) to make it easier for testing

inf is ok, its the cmd file i think, cuz its not picking up the directory

EDIT: inf file reads (from registry)

c:\cdimage.cmd "%1"

which is what i think u were going for

but the cmd file reads

cdimage.exe -l""G:\nlite xp":"~3systemroot1" ""G:\nlite xp".iso"

:wacko:

Link to comment
Share on other sites

Sorry I forgot about this thread, yes it's the cmd file that needs changing, try this, it works for me!

Put this in your inf:

HKCR,Folder\shell\MakeBootISO\command,,,"%11%\bootiso.cmd ""%1"""

And this for your bootiso.cmd:

::Automatic naming bootable ISO script
@echo off
SET DIRE=%1
TITLE Creating Bootable ISO Image of %DIRE%
ECHO.
ECHO Removing any possible attributes set on %DIRE% and its subfolders...
ATTRIB -R -H "%DIRE%" /S /D
FOR /F %%G IN ("%DIRE%") DO SET LABL=%%~nG
ECHO.
ECHO Creating ISO...
CDIMAGE.EXE -L"%LABL%" -h -j1 -m -o -B%SystemRoot%\system32\xpBoot.img %DIRE% %DIRE%.iso
ECHO.
PAUSE
EXIT

For this both the cmd, img and CDIMAGE are all set for the system32 directory.

Note: Things dont go quite so well if you have spaces in your foldername, also although the ATTRIB command will work with long filenames, you will need to remember that the ISO label can only accept eleven characters. For best results then, try to keep all folders to be processed to eleven charcters or less with no spaces.

You would need to add extra code if you wish to fix the spaces in folder name and character length issues.

PS You will also have to create a data.iso cmd and add its respective entry into your inf, using this as a guide, for that right click option too.

Hope this helps!

[EDIT]

I have fixed the spaces problem, and done a little tweaking to create a simple tool for this feature, please see this post, Thanks!

[/EDIT]

Edited by Yzöwl
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...