Bâshrat the Sneaky
Content Type
Profiles
Forums
Events
Posts posted by Bâshrat the Sneaky
-
-
ANYONE?????
0 -
I'm sure there are somewhere in this forum some inf-experts. Could they please post some answers to the following questions?
1. What's the official way to get a control panel installed trough an inf file?==>solved
2. Is it sufficient to copy the *.cpl file to %systemroot%\system32 ? Or do you need to add some registry keys?==>solved
=====>found it : all info beneath is usefull, and especially THIS link (quote with most important info is below): http://msdn.microsoft.com/library/default....dv/conpanel.asp
Application Setup
____________________________________________________________________
Every Control Panel application is a dynamic-link library. However, the DLL file must have a .cpl file name extension. For Windows 2000 and later systems, new Control Panel applications should be installed in the associated application's folder under the Program Files folder. The path of the DLL must be registered in one of two ways:
If the Control Panel application is to be available to all users, register the path on a per-computer basis by adding a REG_EXPAND_SZ value to the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls key, set to the DLL path.
If the Control Panel application is to be available on a per-user basis, use HKEY_CURRENT_USER as the root key instead of HKEY_LOCAL_MACHINE .
The following two examples register the MyCplApp Control Panel application. The DLL is named MyCpl.cpl and is located in the MyCorp\MyApp application directory. The first registry entry illustrates per-computer registration, and the second illustrates per-user registration.
HKEY_LOCAL_MACHINE
Software
Microsoft
Windows
CurrentVersion
Control Panel
Cpls
MyCpl= %ProgramFiles%\MyCorp\MyApp\MyCpl.cpl
HKEY_CURRENT_USER
Software
Microsoft
Windows
CurrentVersion
Control Panel
Cpls
MyCpl= %ProgramFiles%\MyCorp\MyApp\MyCpl.cpl
Assigning Control Panel Categories
____________________________________________________________________
As of the release of Windows XP, the Control Panel supports categorization of Control Panel applications. Windows XP also has support for third parties to add Control Panel applications to existing categories. However, third parties cannot add custom categories at this time.
Registering a Control Panel Application in a Category
You can register a Control Panel application in a particular category by adding a REG_DWORD entry indicating the desired category to the registry. The following example registry entry assigns the application MyCPL.cpl to the category Appearance and Themes. Details of the entry are discussed in the following sections.
HKEY_LOCAL_MACHINE
Software
Microsoft
Windows
CurrentVersion
Control Panel
Extended Properties
{305CA226-D286-468e-B848-2B2E8E697B74} 2
%SystemRoot%\System32\MyCPL.cpl= [REG_DWORD] 0x00000001
The registry key {305CA226-D286-468e-B848-2B2E8E697B74} 2 is the container for all category entries. That key represents SCID_CONTROLPANELCATEGORY, and is composed of PSGUID_CONTROLPANEL and PID_CONTROLPANEL_CATEGORY, both defined in Shlguid.h.
The Name entry is the full path of your .cpl file, using environment variables if desired. The Data entry for that Name should be one of the category IDs listed in the following table, stored as a REG_DWORD.
Category ID Category Name
0x00000000 Other Control Panel Options. Any Control Panel application that does not specify a category ID is put in this category.
0x00000001 Appearance and Themes
0x00000002 Printers and Other Hardware
0x00000003 Network and Internet Options
0x00000004 Sounds, Speech, and Audio Devices
0x00000005 Performance and Maintenance
0x00000006 Date, Time, Language, and Regional Options
0x00000007 Accessibility Options
0x00000008 Add or Remove Programs
0x00000009 User Accounts
0xFFFFFFFF Do not add to any category
The categories Add or Remove Programs and User Accounts work somewhat differently from other categories in Control Panel. When one or more applications are added to one of these two categories, the associated link in Control Panel opens a category page. The registered applications appear in the lower portion of the page under the heading "or Pick a Control Panel icon". When no applications are registered for one of these categories, the associated link in Control Panel directly invokes the standard Windows application for that category.
The parent key name Extended Property derives from the fact that you can access this property from script through the ExtendedProperty method on the ShellFolderItem object. The following sample Microsoft JScript® code enumerates the Control Panel items and their category identifiers (IDs).
Show Example
For Control Panel applications that are implemented as Shell namespace extensions—for example, fonts or scheduled tasks—specify the category ID in the registry under the CLSID entry. For example, the registry entry for the Administrative Tools folder is as follows.
HKEY_CLASSES_ROOT
CLSID
{D20EA4E1-3957-11D2-A40B-OC5020524153}
{305CA226-D286-468e-B848-2B2E8E697B74} 2= [REG_DWORD] 0x00000005
In this case, you create a value named {305CA226-D286-468e-B848-2B2E8E697B74} 2, then store the category ID as a REG_DWORD as before.EXAMPLE.INF
[DestinationDirs]
DefaultDestDir = 11
[aic78xx_Service_Inst]
ServiceBinary = %12%\aic78xx.sys ==> when to use %##%
Value Destination Directory : %##% possibilities
____________________________________________________________________
01 SourceDrive:\pathname (the directory from which the INF file was installed)
10 Windows directory This is equivalent to %windir%.
11 System directory This is equivalent to %windir%\system32 for NT-based systems, and to %windir%\system for Windows 9x/Me.
12 Drivers directory This is equivalent to %windir%\system32\drivers for NT-based platforms, and to %windir%\system\IoSubsys on Windows 9x/Me platforms.
17 INF file directory
18 Help directory
20 Fonts directory
21 Viewers directory
23 Color directory (ICM) (not used for installing printer drivers)
24 Root directory of the system disk. This is the root directory of the disk on which Windows files are installed. For example, if dirid 10 is "C:\winnt", then dirid 24 is "C:\".
25 Shared directory
30 Root directory of the boot disk, also known as "ARC system partition," for NT based systems. (This might or might not be the same directory as the one represented by dirid 24.)
50 System directory for NT-based operating systems This is equivalent to %windir%\system (NT-based systems only).
51 Spool directory (not used for installing printer drivers – see Printer Dirids)
52 Spool drivers directory (not used for installing printer drivers)
53 User profile directory
54 Directory where ntldr.exe and osloader.exe are located (NT-based systems only)
55 Print processors directory (not used for installing printer drivers)
-1 Absolute path
Value Shell Special Folder
16406 All Users\Start Menu
16407 All Users\Start Menu\Programs
16408 All Users\Start Menu\Programs\Startup
16409 All Users\Desktop
16415 All Users\Favorites
16419 All Users\Application Data
16422 Program Files
16427 Program Files\Common
16429 All Users\Templates
16430 All Users\DocumentsSources of information:
1. http://msdn.microsoft.com/library/default....te-inf_0ig7.asp
2. http://support.microsoft.com/default.aspx?...kb;en-us;292463
0 -
Here you go: Regshot
0 -
The problem is the length of the OemPnPDriversPath line. This line can only be 4096 characters in length.
Looks like you will need to look into shortening your line, consolidating the drivers, or using one of the mentioned alternate methods from an earlier post.
I know, that's why I told him to cut the length of his paths...
0 -
I have this set too Great set, makes everything alot easier, faster and more comfortable!
But still 2 negative points:
- after many many times of putting the mouse back in the base station, you'll notice a print of the rubber that keeps the mouse at its place... :'(
- my 'connect' button at the base station is broken, nothing special happened to it :s
@rcwalker: No lag at all! Only if you go to far away from the base station.
0 -
You could also use shorter names for folders...
for example:
PnPDrvrs ==> Drvrs
UTILITY==>Utl
etc...
0 -
You could give my driverpack a try. You can find the topic here.
0 -
What's the best e-mail client in your opinion?
0 -
last post on 3d page: http://www.msfn.org/board/index.php?showtopic=16824&st=20
This is NOT what I'm asking!
I'm asking what settings YOU have used in your sfx archive... Which sfx-module did you use? Which switch did you use at detachedprogram?0 -
How to get rid of the second one: install quicktime first
0 -
All the info you need is in the sticky at the top.
huh? where then???
I'm asking what settings YOU have used in your sfx archive... Which sfx-module did you use? Which switch did you use at detachedprogram?
0 -
For what it's worth, DetachedProgram works like charm. The RAR archive self-extracts as soon as GUI setup loads and Windows setup waits to continue until after it's done.
What settings did you use???? I've been trying this too (like 2 months ago) and I couldn't get it to work ...
0 -
So how could I do this? I can't really find it... :s :$
0 -
I also know this is possible.. It's at my school the same way (I think at least Or would they be SOOO stupid that they let EACH pc download all hotfixes??? )
I'll ask my teacher, but I won't see him till next Tuesday...
0 -
You can also try changing permisions on the site, allow execute instead.. Worked for me
And how exactly can you do this?
thx in advance
grtz Bâshrat the Sneaky
0 -
Someone else has figured this out already. You can find his topic here.
0 -
*crickets chirping*
It would be nice if possible because it would greatly cut down on size (uncompressed drivers take up so much more space it's ridiculous). However, I'm sure adding them to drivers.cab would add other unforseen complexities
Just being curious...
Why wouldn't it work? What would be the consequences???
0 -
just by looking @ the *.inf and if it's XP?
i just can't figure it out
Yes, that _should_ work. Just test it, and share your experiences with us.
grtz Bâshrat the Sneaky
0 -
But if you could compress it, it would be alot smaller...
0 -
IMO 1.2 MB is not that much at all...
0 -
Well, i have an fx5200 with 256 that i got for around $125 at best buy.
really sucks...
0 -
1. It HAS to be DDR as it is a P4 3.00 GHz; a recent P4 supporting motherboard does NOT exist!
2. Use a program that can check this for you. There are many, many programs that can do this for you!
for example:
-cpu-z
-wcpuid
-aida32
-...
0 -
OR:
When a batch file calls a file within the same folder, you can also use
.\file_in_same_folder.xyz
0 -
For those who are only or mostly interested in easy overclocking:
ATITOOL is an excellent tool!
latest version @ 04/05/04:
0.19
0
Finding out registry tweaks
in Unattended Windows 2000/XP/2003
Posted
If you've downloaded the deployment tools you could look in the deploy.chm for 'winnt.sif'. Somewhere in the info about winnt.sif is shown how you can set up your homepage.
And please be more obvious in what you say! Use more spaces, points, etc.