Tutaj użytkownicy mogą zamieścić porady dla innych i recenzje rożnego rodzaju rzeczy związanych z komputerami.
Awatar użytkownika

WinSxS

Zasłużony użytkownik
Posty: 477
Rejestracja: 03 lut 2016, 20:36
    Windows Server 2003/XP x64 Chrome

Post17 maja 2024, 21:23

Czyli krótko kopiowanie plików do odpowiednich folderów wykorzystując Advanced INF Installer.

Przykład pliku INF kopiującego dwa pliki do folderu Web\Wallpapers:

Kod: Zaznacz cały

[version]
signature="$CHICAGO$"

[SourceDisksNames]
1 = "pink","pink.bm_",,,0x10,
2 = "yellow","yellow.bm_",,,0x10,

[SourceDisksFiles]
pink.bmp=1
yellow.bmp=2

[DefaultInstall]
CopyFiles = copy.files

[copy.files]
pink.bmp
yellow.bmp

[DestinationDirs]
copy.files = 16420,Web\Wallpaper


Lista destynacji:

Kod: Zaznacz cały

;	Value 		Destination Directory
;
;	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 
;
;	16384 		%userprofile%\Desktop
;	16386 		%userprofile%\Start Menu\Programs
;	16389 		%userprofile%\My Documents
;	16390 		%userprofile%\Favorites
;	16391 		%userprofile%\Start Menu\Programs\Startup
;	16392 		%userprofile%\Recent
;	16393 		%userprofile%\SendTo
;	16395 		%userprofile%\Start Menu
;	16397 		%userprofile%\My Documents\My Music
;	16398 		%userprofile%\My Documents\My Videos
;	16400 		%userprofile%\Desktop
;	16403 		%userprofile%\NetHood
;	16404 		C:\WINDOWS\Fonts
;	16405 		%userprofile%\Templates
;	16406 		%allusersprofile%\Start Menu
;	16407 		%allusersprofile%\Start Menu\Programs
;	16408 		%allusersprofile%\Start Menu\Programs\Startup
;	16409 		%allusersprofile%\Desktop
;	16410 		%userprofile%\Application Data
;	16411 		%userprofile%\PrintHood
;	16412 		%userprofile%\Local Settings\Application Data
;	16415 		%allusersprofile%\Favorites
;	16416 		%userprofile%\Local Settings\Temporary Internet Files
;	16417 		%userprofile%\Cookies
;	16418 		%userprofile%\Local Settings\History
;	16419 		%allusersprofile%\Application Data
;	16420 		System Root (C:\WINDOWS)
;	16421 		C:\WINDOWS\System32
;	16422 		Program Files
;	16423 		%userprofile%\My Documents\My Pictures
;	16424 		%userprofile%
;	16425 		C:\WINDOWS\System32
;	16427 		C:\Program Files\Common Files
;	16429 		%allusersprofile%\Templates
;	16430 		%allusersprofile%\Documents
;	16431 		%allusersprofile%\Start Menu\Programs\Administrative Tools
;	16432 		%userprofile%\Start Menu\Programs\Administrative Tools
;	16437 		%allusersprofile%\Documents\My Music
;	16438 		%allusersprofile%\Documents\My Pictures
;	16439 		%allusersprofile%\Documents\My Videos
;	16440 		C:\WINDOWS\resources
;	16441 		C:\WINDOWS\resources\0409
;	16443 		%userprofile%\Local Settings\Application Data\Microsoft\CD Burning
;
;
;	ProfileItems
;
;	0x00000001 	Create menu item in Current User flag
;	0x00000002 	Delete menu item flag
;	0x00000004 	Create Start menu group under All Users\Start\Programs
;	0x00000005 	Create Start menu group under Current User\Start\Programs
;	0x00000006 	Delete Start menu group under All Users\Start\Programs
;	0x00000007 	Delete Start menu group under Current User\Start\Programs
Obrazek

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 0 gości