Index: desktop/source/deployment/registry/package/dp_package.cxx
===================================================================
RCS file: /cvs/framework/desktop/source/deployment/registry/package/dp_package.cxx,v
retrieving revision 1.10.16.1
diff -u -r1.10.16.1 dp_package.cxx
--- desktop/source/deployment/registry/package/dp_package.cxx	10 Aug 2006 16:37:23 -0000	1.10.16.1
+++ desktop/source/deployment/registry/package/dp_package.cxx	9 Jan 2007 13:35:24 -0000
@@ -1295,7 +1295,21 @@
         if (param != 0 && !platform_fits( param->m_sValue ))
             continue;
         const OUString url( makeURL( packageRootURL, fullPath ) );
-        
+       
+	INetContentTypeParameter const * execParam = params.find(
+            ByteString("executable") );
+	if (execParam!=0 && execParam->m_sValue.CompareIgnoreCaseToAscii("true")==COMPARE_EQUAL) {
+	    ::rtl::OUString expandedUrl=expandUnoRcUrl(url);
+	    oslFileError err=osl_setFileAttributes( expandedUrl.pData, osl_File_Attribute_OwnRead | osl_File_Attribute_OwnExe);
+	}
+
+        if (type.EqualsIgnoreCaseAscii("application") &&
+            subType.EqualsIgnoreCaseAscii(
+                "octet-stream"))
+        {
+	    continue;
+	}
+ 
         // check for bundle description:
         if (type.EqualsIgnoreCaseAscii("application") &&
             subType.EqualsIgnoreCaseAscii(
