LeKuchen: VB.NET - Dateityp registrieren ???

Beitrag lesen

Hallo Griever,

alles keine Hexerei! ;o)

Wenn Du mit Visual Studio arbeitest, kannst Du dort ein Setup-Projekt anlegen. In diesem kannst Du dann Registryeinträge hinterlegen, die beim Setup der Software (meist .MSI) eingefügt werden. Müsste dort auch über nen Wizard oder so möglich sein.

(z.B. http://www.codeproject.com/dotnet/Win_App_Setup_Project.asp oder http://www.codeproject.com/useritems/SetupProject_I_WebSetup.asp)

Alternativ kannst Du die Registryeinträge Dir selber basteln.

Die Einträge sehen dann z.B. so aus:

[HKEY_CLASSES_ROOT.xxx]
@="xxxFile"
"Content Type"="application/ApplicationName"

[HKEY_CLASSES_ROOT\xxxFile]
@="xxx Application"
"EditFlags"=hex:00,00,01,00

[HKEY_CLASSES_ROOT\xxxFile\shell]
@="open"

[HKEY_CLASSES_ROOT\xxxFile\shell\open]

[HKEY_CLASSES_ROOT\xxxFile\shell\open\command]
@="C:\Programme\ApplicationDirectory\Application.exe %1"

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/ApplicationName]
"extension"=".xxx"

Professioneller gehts natürlich mit diverser Software zum Erstellen von Setuproutinen z.B. Installshield etc.

Gruss
LeKuchen