2012年3月26日星期一

UGG UK SaleExtendeduse

Extendeduse. INF files - production of exempts installation green software in my special article in the &mdash ;&mdash ;green software in making ( ) ,he told the registry file and extract the software is packaged together to make green software .
But in the. REG file path are static ,once written ,not with the system changes, and in the. INF file, you can use variable control path ,thereby tracking setup required path change .
The first to a complete example to demonstrate how to use the. INF file making green software ,and then explained the. INF file for a variety of purposes .EmEditor green download EmEditor installation files to emed404epx.
exe, found with WinRAR can open ,after decompression ,running EmEditor ,find lost predefined multiple text format syntax ,it seems not do so ,but to take a snapshot of the system method .
Please follow me step by step, the steps are as follows: 1 scanning system ,formulate a snapshot of the system .Here I just record the current system registry ( because I don to the system directory to copy a file ,if the error of judgment ,would cause the &ldquo ;green &rdquo ;failure) ,running ART ( Advanced Registery Tracer ) ,scan the registry .
As shown in figure EmEditor_snap.PNG ,do not close ART .2 installation EmEditor .Just where to install ,it will unload .After installation, if necessary ,change the configuration ,or configure the new document types, for example I increased the NFO file type ,set and NFO files associated with the character set ,this can be used EmEditor view NFO files directly ,without the need of a special check tool .
A 3 recording system changes .Once again the scanning system ,to the system as a snapshot ,from within the ART registry scan again ,and then select the menu Registry - compare here or the direct use of the keyboard F10 ,compare the results as shown in figure EmEditor_compare.
png ,click the map to the save to redo file button ,stored as EmEditor.reg files ,close ART .The 4 copy and unloading .Copy installed EmEditor directory to the other path ,then uninstall EmEditor program .
Analysis of 5 .Open just the exported EmEditor.reg file ,which is a large reg files, only REG documents have more than 1000000000000 ,but not to worry .After reading the registry ,delete and not EmEditor registry entries ,such as simply and explorer related registry ,find the rest of the registry file can be divided into 3 parts .
A portion of the path in the Registry / SOFTWARE / ,which most pathways involved ,only a record of EmEditor path ," ;ModulePath" ;H = " ;/ / EmEditor4 / / " ;;there are mostly in the registry of the path below Software / EmSoft / EmEditor ,there are many items are involved in the EmEditor pathway ,such as " ;Tmpl" ;H = " ;/ / EmEditor4 / / template.
xml" ;;and there is EmEditor and TXT file suffix to the associated registry settings ,the EmEditor is set to IE default source code view tool as well as the registry settings register the COM components EMEDSHL.
DLL registry section ( and InProcServer32 is ) .6 &ldquo ;green &rdquo ;.In 6.1 the registry path SOFTWARE / contents stored in EmEditor_HKLM.reg files ,UGG UK Sale,located within the registry path Software / EmSoft / EmEditor contents stored in EmEditor_HKCU.
reg files ,the rest of the content is first to get rid of COM component in EMEDSHL.DLL related parts ,and then stored in an EmEditor_assoc.reg file .6.2 EmEditor_HKLM.reg files and EmEditor_HKCU.
reg files related to the contents of the registry path is extracted ,stored in the EmEditorConf.reg file .6.3 green software production ,in which the core point is to obtain the original software installation program to make the registry changes ,then the changes are derived for a registry file .
REG to further analysis .If the derived . REG file does not include absolute path ,then you can put the registry file and extract the software is packaged together to make green software .
If the derived . REG file contains the current software absolutely installation path ,so must every time to manually modify the registry path ,is very troublesome ,reduces the significance of green software .
And use the. INF file, use the AddReg command can easily solve the registry path problem .The EmEditor_assoc.reg files and EmEditorConf.reg files using INF grammar is converted to INF files ,or use a free gadget reg2inf.
exe automatic conversion ,and then convert the EmEditor_assoc.inf file and EmEditorConf.inf file path H: / EmEditor4 all use%01% instead .The following is the content of the EmEditorConf.inf file : Version Signature = " ;$CHICAGO $" AddReg = EmEditorConf_AddReg ;HKLM ," ;SOFTWARE / EmSoft / EmEditor V3 / Common" ;" ;ModulePath" ;,,," ;%01% / " ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / C++" ;" ;Tmpl" ;,,," ;%01% / template.
cpp" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / CSS" ;" ;Tmpl" ;,,," ;%01% / template.css" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / HTML" ;" ;Tmpl" ;,,," ;%01% / template.
htm" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / Java" ;" ;Tmpl" ;,,," ;%01% / template.java" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / javascript" ;" ;Tmpl" ;,,,%01% / template.
js" ;HKCU " ;," ;Software / EmSoft / EmEditor V3 / Config / JSP" ;" ;Tmpl" ;,,," ;%01% / template.jsp" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / Perl" ;" ;Tmpl" ;,,," ;%01% / template.
pl" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / PHP " ;" ;Tmpl" ;,,," ;%01% / template.php" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / Python" ;" ;Tmpl" ;,,," ;%01% / template.
py" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / Ruby" ;" ;Tmpl" ;,,," ;%01% / template.rb" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / TeX" ;" ;Tmpl" ;,,," ;%01% / template.
tex" ;HKCU ,Vibram Shoes," ;Software / EmSoft / EmEditor V3 / Config / VBScript" ;" ;Tmpl" ;,,,%01% / template.vbs" ;HKCU " ;," ;Software / EmSoft / EmEditor V3 / Config / VBScript for EmEditor" ;" ;Tmpl" ;,,," ;%01% / template.
vbee" ;HKCU ," ;Software / EmSoft / EmEditor V3 / Config / Windows ," ;Tmpl" ;Script" ;" ;%01% / template.wsf" ,,HKCU ," ;Software ;EmSoft / EmEditor V3 / Config / XML" ;" ;Tmpl" ;,,," ;%01% / template.
xml" ;6.4 write a batch file install.bat ,content is as follows: regedit EmEditor_HKLM.reg regedit EmEditor_HKCU.reg RUNDLL32.EXE SETUPAPI.DLL ,InstallHinfSection DefaultInstall 128 / EmEditorCo .
Nf.inf Regsvr32 EMEDSHL.DLL RUNDLL32.EXE SETUPAPI.DLL ,InstallHinfSection DefaultInstall 128 / EmEditor_assoc.inf 6.5 .The install.bat ,EmEditorConf.inf ,EmEditor_assoc.inf ,EmEditor_HKLM.
reg ,EmEditor_HKCU.reg5 files to EmEditor directory ,delete the registry file .6.6 according to the installation steps and install.bat ,write the unloading of the batch file ,this is relatively simple .
After testing ,EmEditor is working properly ,can also comment out the install.bat the last 2 rows of the statement ,so EmEditor wouldn and relation system ,the above steps at Windows 2000 ,the Win9x also ,but following Win9x EmEditor configuration files and windows 2000 ,is only the different version of the program .
To produce a good green EmEditor copy to the U disk, for the time ,execute directly inside the install.bat file can be ( pay attention to in the EmEditor directory ,run the batch file ) ,does not require any file copy .
The. INF file is what . INF is Device Information File abbreviations ,Microsoft for hardware equipment manufacturers to release its device driver and the development of &mdash ;&mdash ;&mdash ;many hardware device drivers are the use of the.
INF file to install .The. INF file from the Windows3.X era began to be used .The. INF file is a text file with a specific format ,we can say it is a setup script ( SetupScript ) .Although INF is just plain text files ,but when we are in the file manager for explorer .
INF file, click the right mouse button ,as shown in Figure inf right . PNG ,in the right click menu will appear on the &ldquo I&rdquo ;installation ;command ,this is because Microsoft has in its operating system built in Windows with Setup API ( can be explained .
INF script file ) ,we only use text editing software . INF file ,can complete most of the installation work ,and especially in the software size is not large, the installation work is not very complex, use the.
INF file to install the work would be a good selection of .But if you want to install the device driver ,the. INF file is currently the only option .Can use the . INF file is created including the registry entries and the destination directory custom software installation instructions .
The. INF file can provide limited platform independence ,and specify the limited software dependence .The . INF file is the most common application is for the installation of hardware device driver services ,the purpose of this paper is to introduce the.
INF file function ,structure ,and provides several examples to illustrate how to use the . INF file extension. INF file ,how to use ,such as the production of green software ,for reference only .
The first is a driver . INF file ,as shown in figure usbinfpng.png ,is I from Windows2000 extracted for Win98se USB storage device driver in the usbstor.INF file ,delete the majority of content ,to retain a basic.
INF file frame .The. INF file format in figure usbinfpng.png ,can see the . INF file is composed of many festival ( Section ) composition ,similar to an. INI file ,the . INF file is composed of several sections ,the section name in square brackets extending up ,such as version ,Manufacturer ,and Strings Festival and so on .
Each section is composed of a series of entries ,each entry is by a key ( Key ) and a value ( Value ) ,are &ldquo ;Key = Value&rdquo ;such forms ,in these sections defined in the project can be completed the hardware of automatic detection and software ( including the driver ) installation .
The. INF file in a string is behind the notes .In an . INF file, all following the semicolon ( ;) after text will be regarded as annotation .Notes should not be on new start ,in a line of text add comments .
The. INF file format and function as follows : :this section contains a brief description of the . INF files with the . INF file support device type information .To confirm the . INF file basic version information .
Any. INF file must include this festival .In figure usbinfpng.png , section of the statement Signature = " ;$CHICAGO $" ;indicate the . INF file can be used for Windows 95 on all platforms ,there is Win98 ,winme ,winnt4 ,Win2K ,WINXP ,win2k3 .
This . INF file comparison .If section in the signature entry is Signature = " ;$Windows 95 $" ;,indicating that this . INF file can be used for Windows 95 Win9x platform, there is Win98 ,winme .
If section in the signature entry is Signature = " ;$WINDOWS NT $" ;,indicating that this . INF file can be used for the WindowsNT series of platforms, including winnt4 ,Win2K ,WINXP ,win2k3 .
The series WIN9x operating system SetupAPI will refuse to perform this type of . INF files . and Manufacturer :lists the. INF file can identify all hardware devices, and the development of the hardware manufacturers ,mainly for the hardware equipment installation .
In the device driver . INF file must include and Festival festival .Corresponding to the graph usbinfpng.png is and Festival ,installing new hardware wizard listed in the manufacturer and device name is from the two festival .
This statement &ldquo ;%MfgName% = Microsoft&rdquo ;equal right name specified equipment manufacturer Microsoft ,to the left of the equals sign is the name of the manufacturer ,the manufacturer is " map ;Microsoft" ;( in the back of that section ) .
In an . INF file can have multiple equipment manufacturer name ,must be placed in the section, at the same time Manufacturer section can be listed in the manufacturer of a variety of equipment .
Manufacturer section containing to installed equipment is described ,and the device that you want to install pointed out section . Manufacturer Grammar : device-description = install-section-name ,device-id ,compatible-device-id .
.. Device-description is to install the device description .Install-section-name is the equipment section name ,manufacturer-name section name must have been in section was defined .
Device-id is the hardware identifier, each manufacturer different hardware is corresponding to different equipment identifier .Corresponding to the graph usbinfpng.png, is this statement &ldquo ;%GenericBulkOnly.
DeviceDesc% = USBSTOR_BULK ,USB / Class_08& ;SubClass_02& ;Prot_50&rdquo ;to the left of the equals sign is the device is described ,which is device name is " ;USB Mass Storage Device" ;the right of the equal sign ,and the USB / Class_08& ;SubClass_02& ;Prot_50 is equipment symbol ,this symbol is corresponding to the type of hardware equipment ,is the USB storage device ,operating system detects a USB storage device ,install the appropriate driver when, will be from the device driver installation day festival began to install the driver .
We can see this. INF file can be used for general USB storage " ;USB Mass Storage Device" ;driver installation .General installation software . INF file, not including and Manufacturer ,even if included, would not perform them, the 2 festival was only used for hardware device driver in the role of .
:description of device drivers and hardware equipment and the actual attributes .It also defines all section name ,after the definition section includes the installation of the equipment information and the command .
By default ,will perform festival in inf ,right click the. PNG ,Install operation will perform festival . section contains links to other sections of the pointer ,this section can be used to specify to copy and delete files ,registry updates ,the.
INF file update .Corresponding to the graph usbinfpng.png, is day ,in which to perform copy the file CopyFiles and add registry project AddReg2 operation .If it is ordinary software .
INF file ,can be achieved by the mouse right key menu on the &ldquo &rdquo ;installation ;command to install ( Figure inf right click the. PNG ) ,this time the. INF file must include section ,can also include other Festival ,RUNDLL32.
EXE SETUPAPI.DLL ,InstallHinfSection name ,such command to install . section of the grammar : Copyfiles = file-list-section , ... LogConfig = log-config-section-name Renfiles = file-list-section , .
.. Delfiles = file-list-section , ... UpdateInis = update-ini-section , ... UpdateIniFields = update-inifields-section , ... AddReg = add-registry-section , ... DelReg = del-registry-section , .
.. Ini2Reg = ini-to-registry-section , ... UpdateCfgSys = update-config-section UpdateAutoBat = update-autoexec-section section defines the setup and hardware resources needed ,in order to install a new driver or software .
This section of each entry has its specific format and meaning ,is not each entry is necessary .Whether to install the driver or common software ,finally will be from a festival begins to carry out .
:specify disk copy ,delete or rename section file location (for example / Windows or Windows / System ) .The. INF file by section to specify the operation target path ,syntax is as follows: file-list-section = ldid ,subdir DefaultDestDir = ldid , section section defines the operations specified in ( CopyFiles ,RenFiles or DelFiles can be the target directory section ) .
The DefaultDestDir command for the . INF file in any not explicit in the section named CopyFiles ,RenFiles or DelFiles section to specify the default destination folder .In the. INF file, use the logical disk identifier ( LDID ) to represent the path ,as follows :00 Null LDID - can be used to create a new LDID 01 Source Drive: / pathname 10 Windows folder ( equivalent to%windir% directory ) 11 System 12 IOSubsys 13 Command folder folder folder folder 17 Inf 18 Help 20 Fonts 21 Viewers folder 22 VMM32 23 Color 24 Windows folder folder contains the root directory of drive 28 Host Winboot 30 startup disk root folder 31 virtual disk main drive root folder as shown in figure usbinfpng.
png ,this statement &ldquo ;USBSTOR.CopyList = 10 ,system32 / drivers&rdquo ;show USBSTOR.CopyList this file list file of the target path is %windir% / system32 / drivers ,of which 10 represented the Windows folder ,that is to say the USBSTOR.
CopyList file list file USBSTOR.SYS mounted in the drive when will be copied to the %windir% / system32 / drivers folder .Usbstor.inf this file will be copied to the 17 ,namely%windir% / inf folder .
:definition and listed above can be used to localize the string .If a particular string in the. INF file appears frequently ,so in this section as they define a string variable that will be a good choice .
As shown in figure usbinfpng.png ,statement MfgName = " ;Microsoft" ;,defines section using MfgName variable (that is, string " ;Microsoft" ;) . Delete / RenameSection ( s ) :list to copy ,delete or rename files .
Section names are CopyFiles ,DelFiles ,RenFiles . RegistryUpdateSection ( s ) :specified in the registry to add or delete items .Festival is AddReg ,DelReg . IniFileUpdateSection ( s ) :specify an.
INI file update .Links in this section to create .Section name is UpdateInis . :for the device to define a new class ( Class ) .Mainly used for hardware equipment installation . :list file containing the disk .
:each file are listed the specific disk .There are many other festivals ,such as :Update . Ini Fields (UpdateIniFields ) ,Add Ini File to Registry (Ini2Reg) ,Update Config.sys ( UpdateCfgSys ) ,Update Autoexec.
bat ( UpdateAutoBat ) ,Optional Components Festival ,etc. .The. INF file is a Windows SetupAPI interpreted script file ,its operation is very simple ,is a linear ,linear means the. INF file operation process does not exist branch statements, there is no conditional statements ,once started, is along a fixed route operation .
Its operation is in accordance with section as the unit to perform ,from a section starts execution ,from top to bottom entry in the execution of the day ,if the entry is a festival ,then an executive section entries, so the recursive execution .
The script looks function is weak ,but for simple installation tasks have been enough ,installation only copy files registry ,add ,modify the. INI file and other tasks, these can use the .
INF file to complete .For more complex installation requirements ,such as the required setup interface pretty convenient ,calls for selectively mounting ,request setup automatic repair function ,had to resort to other tools ,such as Microsoft Windows Installer ,have more powerful function .
The. INF file version of the. INF file syntax is uniform segment grammar ,with the operating system update ,Microsoft has gradually increased the number of necessary keywords ,but on the whole the .
INF file structure will not change .Grammatically ,the. INF file is a category .According to the. INF file version to classification ,can be divided into 2 categories :1 in AdvancedINF , section &ldquo ;AdvancedINF = 2.
5 ," ;you need a new version of the AdvPack.dll" ;&rdquo ;such a statement ,indicating this. INF file to AdvPack.dll the dynamic link library to explain the implementation ,AdvancedINF some advanced features ,but in the present with not too much .
2 common INF ,did not indicate the need for AdvPack.dll . INF file ,use SetupAPI.DLL to explain the implementation ( Win9x series operating system using Setupx.dll) ,system default is the use of the ordinary INF .
The. INF file function from the introduction, can be seen using . INF files can complete the following functions :1 copy files ,delete files ,or rename files .2 add or remove Registry ( Registry ) in the project .
The 3 modification of critical system settings file ( such as Autoexec.bat ,Config.sys ,INI etc.) .Rough look ,seem to be mentioned above a first function can use the batch file . BAT to complete ,the second functions can be accomplished by the registry file .
REG to complete ,third function now didn ,does not often address the. INI file .So it seems . INF file is not too much of an advantage .This view is a problem, I will be highlighted .
INF in several aspects of this application ,without explaining the. INF grammar .The following references to the. INF file is superior to other tools aspects .Use the . INF file to edit the registry .
INF files can be edited in manipulating the registry ,the corresponding command is AddReg and DelReg ,syntax is as follows: AddReg = add-registry-section , ... reg-root-string , , , , section defines will want to add registry subkeys or values ,can be selectively set its value .
DelReg = del-registry-section , ... reg-root-string , subkey , section defines will be removed from the registry subkeys or values of subkey value-name .Sometimes surfing the Internet in some website ,modify the IE home page ,then disable the REGEDIT tool ,this time many people have to resort to other third party tools such as magic rabbit, to restore the registry editing privileges ,but this time only rely on the .
INF files can be restored using the REGEDIT tool permissions .Put the following code into Notepad, save as jiereg.inf ,then right click on it and select the &ldquo installation ( I ) ;&rdquo ;,can be .
Signature = " ;$CHICAGO $" ; AddReg = My.Add.Reg HKCU ," ;SOFTWARE / Microsoft / Windows / CurrentVersion / policies / system" ," ;disableregistrytools" ;0x00010001 ;" ;0" ;,,HKLM ," ;SOFTWARE / Microsoft / Windows / CurrentVersion / policies / system" ;" ;disableregistrytools" ,0x00010001 ," ;0" ;,;of course also can use other methods ,the principle is the same ,this is just a demo .
INF file to use .Directly using the registry file ,sometimes encounter another disadvantage ,is the . REG file which uses 16 hexadecimal code represents a UNICODE string ,as in the following statement :two Registry / Software / Microsoft / Windows / CurrentVersion / Explorer / User Shell " = hex ;Cookies" ;( 2) :25 00, 55, 00, 53, 00, 45, 00, 52, 00, 50, 00, 52, 00, 4f ,00, 46, 00, 49, 00, 4C ,00, 45, 00, 25, 00, 5C ,00, 43, 00, 6F ,00, 6F ,00, 6B ,00, 69, 00, 65, 00, 73, 00, 00, 00, 00, 00 SYSTEM / CurrentControlSet / Services / " = hex ;ImagePath" ;( 2) :22, 00, 44, 00, 3a ,00, 5C ,00, 50, 00, 72, 00, 6F ,00, 67, 00, 72, 00, 61, 00, 6D ,00, 20, 00, 46, 00, 69, 00, 6C ,00, 65, 00, 73, 00, 5C ,00, 53, 00, 6F ,00, 66, 00,Nike Factory Outlet, 74, 00, 45, 00, 74, 00, 68, 00, 65, 00, 72, 00, 5C ,00, 53, 00, 6F ,00, 66, 00, 74, 00, 45, 00, 74, 00, 68, 00, 65, 00, 72, 00, 2E ,00, 65, 00, 78, 00, 65, 00, 22, 00, 20, 00, 73, 00, 65, 00, 72, 00, 76, 00, 69, 00, 63, 00, 65, 00, 00, 00, 00, 00 of the top two statement is hard to read and modify ,manually modify the word very troublesome ,where " ;Cookies" ;value actually is &ldquo ;%USERPROFILE% / Cookies&rdquo ;character String UNICODE .
" ;ImagePath" ;value actually is " ;D: / Program Files / SoftEther / SoftEther.exe" ;service if the . INF file in the form of words ,it is very simple to understand: Signature = " ;$CHICAGO $" ; AddReg = Folders_AddReg HKCU ," ;Software / Microsoft / Windows / CurrentVersion / Explorer / User Shell Folders" ;" ;Cookies" ;0x00020000 ," ,,%USERPROFILE% / Cookies" ;HKLM ;" ;SYSTEM ,/ CurrentControlSet / Services / SoftEther" ;" ;ImagePath" ;0x020000 ," ," ,;;" ;D: / Program Files / SoftEther / SoftEther.
exe" ;" ;service" ;this time you can manually modify the inside of the path information ,while the . REG file is very difficult to achieve this point .Use the . INF file editor.
INI file . INF file, you can use the UpdateInis command to modify the . INI file functions are often required ,UpdateInis syntax is as follows: UpdateInis = update-ini-section , ... ini-file ,ini-section , , , section gives the .
INF file replace ,delete or add all items .Ini-file includes to change the . INI file name .Ini-section includes to change the entry section .The old-ini-entry optional ,commonly used to form Key = Value .
The new-ini-entry optional ,commonly used to form Key = Value .The flags is optional marker .The use of logical disk identifier ( LDID ) ,can easily modify the. INI file path information, of course, other entries also .
For example: Total Commander ,is a set of excellent file manager, containing various kinds of compression and decompression ,similar to the NC is a very useful tool ,for file and path search ,in addition to general copy ,delete ,move ,edit and other functions, and FTP function (with a resume ,background transmission ) and solves the Chinese garbage problem ," " ;topics ;never become " ;color problem " ;,add file segmentation ,files ,file ,file encoding decoding ( MIME ,UUE ,XXE ) and the new interface ( floating toolbar ) .
It is a very tough can completely replace the file explorer program .Total Commander relies on wincmd.ini to configure the corresponding operation characteristics and function ,so you can use the following .
INF file to modify the wincmd.ini path information : Signature = " ;$CHICAGO $" AddReg = AddGhister ;UpdateInis = UpdateInicmd HKCU ," ;Software / Ghisler / Total ,Commander" ;" ;IniFileName" ;" ;,0 ,.
/ / wincmd.ini" ;HKCU ," ;Software / Ghisler / Total ,UGG UK," ;FtpIniName" ;Commander" ;" ;,0 ,./ / wcx_ftp.ini" ; %01% / wincmd.ini ,Configuration ,," ;InstallDir =%01%" ;%01% / wincmd.
ini ,Configuration ,," ;Mainmenu = %01% / LANGUAGE / TCExtMenu.mnu" ;wherein section responsible for modifying the registry records wincmd.ini path ,and section responsible for modifying wincmd.
ini file red corresponding path information ,can be seen ,a simple INF file completed revised Total Commander path task ,in the Total Commander5.x version ,you must modify the wincmd.ini file path information, this time using the.
INF file is very convenient . Using . INF files to delete the file being used sometimes for some file is being operating system used to delete ,such as some for resource management for OCX controls, you can use the DelFiles command to delete the .
INF file ,this command if want to delete the file is locked ,the file on the system will delete queue ,etc. system restart time, the file is automatically deleted .The Delfiles syntax is :Delfiles = file-list-section , .
.. filename ,,,1 section defines will remove file list ,behind the filename 1 is a marker ,indicating if the file currently cannot be removed until the system is restarted ,after delete .
Put the following code into Notepad, save as delinuse.inf ,copy it to delete the file directory, then right click on it and select the &ldquo installation ( I ) ;&rdquo ;,can remove the current directory is the use of setup.
exe and setup2.exe . Signature = " ;$Chicago $" ;DefaultDestDir = 01 ;the current directory ,defines will delete a file path DelFiles = DELETELIST setup.exe ,,,1 ;will want to delete the file setup2.
exe ,,,1 ;will be deleted files can also be use the Copyfiles command to replace the system is accessed files .These functions through common del and copy command cannot achieve ,if you do not use the.
INF file, you must use third party software to complete .Auxiliary production green software in the registry . REG file, can not use variables ,this flaw to need to set the path setup ,is very fatal weakness ,the.
REG file path are static ,once written ,not with the system changes, if you need to install the program from the C change to the D disk ,but in the. REG file record installation path ,this time directly into the registry file .
REG is not enough, import the registry is still the original write path .But in the. INF file, can be used to manipulate the path variable ,which can track setup required path change .
For the green software ,you can see I wrote another special article in the &mdash ;&mdash ;green software production ,in which the core point is to obtain the original software installation program to make the registry changes ,then the changes are derived for a registry file .
REG to further analysis .If the derived . REG file does not include absolute path ,then you can put the registry file and extract the software is packaged together to make green software .
If the derived . REG file contains the current software absolutely installation path ,so must every time to manually modify the registry path ,is very troublesome ,reduces the significance of green software .
And use the. INF file, use the AddReg command can easily solve the registry path problem .For the green software installed production ,the most important is 01 ,which is the source folder .
Here is an example :Registry Crawler V4.5 ,is a powerful users and developers to quickly locate and configuration registry tools software .A powerful search engine allows you to search based on the standard lookup register information .
( from the sky software station download ) ,installed after the completion of export registry contains the following statement : SOFTWARE / 4Developers / RCrawler / @ = " ;F: / / tools / / Reg / / RCrawler" ;&ldquo ;F: / tools / Reg / RCrawler&rdquo ;is the installation path .
Written for the. INF file is : Signature = " ;$CHICAGO $" ; AddReg = Add HKLM ," ;SOFTWARE / 4Developers / RCrawler / AppPath" ;" ;" ;,,0 ," ;%01%" ;pay attention to inside%01% represents the current installation path .
When we put F: / tools / Reg / RCrawler the files in the directory moved to another directory ,to use the . REG file way, you must manually modify the registry file ,and using the . INF file, what all without modification, as long as the file manager for Explorer inside ,the right mouse button to perform &ldquo &rdquo command ;installation ;when ,%01% will automatically be replaced the current directory .
Finally, summary sentence ,the registry file . REG is very convenient and intuitive ,but for the processing path changes, very clumsy and inconvenient ,and . INF as the registry file directly ,but can facilitate the processing path information ( including UNICODE path information ) ,so it should take the.
REG file and the . INF file with use ,can compensate for each other disadvantages .The. INF file generation method can directly by hand using a text editor to write . INF file ,when the corresponding to the .
REG file is very large ,entry very much time, can use the gadget reg2inf.exe to automatically place the. REG file is converted to the . INF file ,and then the corresponding path is modified ,the absolute path replacement for logical disk identifier ( LDID ) to represent the path .
If related to file operations at the time ,had to hand wrote ,there is no automation tool .The INF file is not VBS so powerful ,Louboutin Shoes,even by the dangerous formatting code limit of inf is very strong, so that other than the script file security ,of course the relative function is weak ,but also enough .
Related articles:

没有评论:

发表评论