Xceed .NET Libraries Documentation
ExtensionsToAssociate Property


Xceed.Zip Assembly > Xceed.Zip.Sfx Namespace > XceedSfxPrefix Class : ExtensionsToAssociate Property
Gets a list of file extensions that the self-extractor will register with Windows.
Syntax
'Declaration
 
Public ReadOnly Property ExtensionsToAssociate As ExtensionAssociationList
'Usage
 
Dim instance As XceedSfxPrefix

Dim value As ExtensionAssociationList

 

value = instance.ExtensionsToAssociate
public ExtensionAssociationList ExtensionsToAssociate {get;}

Property Value

A reference to an ExtensionAssociationList containing a list of extension associations.
Remarks

Registering a file extension allows Windows to recognize files that have a specific file extension. Windows will be able to show a description of the files ending with a given extension (in Windows Explorer, for example) and execute an application whenever that type of file is opened. Thus, when specifying each file extension to be registered, you must provide a description and an associated application. The associated application must be able to open the files ending with that extension.

Each extension to register consists of the extension (does not include the '.' character), the path + filename of the associated application and the extension's description.

<SfxFolder> The folder where the self-extracting zip file is being run from.
<WindowsFolder> The location of the Windows folder.
<SystemFolder> The location of the Windows System folder.
<TempFolder> The location of the system's temporary folder.
<RandomFolder> Random folder name that doesn't already exist. (the format of the random name is: _SFXxxx, where xxx is a random number)
<ProgramFilesFolder> The location of the Program Files folder.
<SystemDrive> The main system hard disk.

The extensions are registered right after the program group specified by the ProgramGroup property is created and before the executable(s) specified in the ExecuteAfter are executed.

This property is the equivalent of the SfxExtensionsToAssociate property and the SfxAddExtensionToAssociate method of the ActiveX version of Xceed Zip.

The current EXE extension association should not be modified. Changing this association can prevent applications from running properly.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XceedSfxPrefix Class
XceedSfxPrefix Members