首页 \ 问答 \ 谁能告诉我这个.INF文件有什么问题?(Can anyone tell me what is wrong with this .INF file?)

谁能告诉我这个.INF文件有什么问题?(Can anyone tell me what is wrong with this .INF file?)

我整天都被困在这一天,并且刚刚用完了想法。

我正在尝试从网页上启动的CAB文件运行安装程序。 我构建了一个cab文件,其中包含一个安装程序(BlowbackInstaller.msi)和一个inf文件(见下文)。

问题:当我在IE8中点击网页时,它正确地提示我控件正在尝试安装并显示正确的签名信息,因此我知道它正在查找CAB文件并且已签名。

然后它正确地提示我是否要安装它。 alt text http://www.freeimagehosting.net/uploads/cf19341e41.png

按下安装按钮后,它只是继续处理页面而不运行安装程序。 我知道这一点,因为安装程序中有几个对话框。

我分别测试了安装程序(msi)并且它工作得很好,看起来好像它不是由IE从CAB启动的。 我怀疑我的INF文件有问题。

这是启动它的HTML ...

<object id="bbc" 
        codebase="../cabs/BlowbackControl.cab"   
        classid="clsid:A4748756-061D-11DF-9D94-BD9455D89593">
    <param name="_ExtentX" value="26" />
    <param name="_ExtentY" value="26" />
</object>

这是CAB中.inf文件的内容。

[version]
signature="$CHICAGO$"
AdvancedINF=2.0 

[Setup Hooks]
hook1=hook1

[hoook1]
run=msiexec.exe /i %EXTRACT_DIR%\BlowbackInstaller.msi

任何人都会看到我遗漏的明显事物,或者有进一步排除故障的想法?


I've been stuck on this all day, and have just run out of ideas.

I'm trying to run an installer from a CAB file initiated on a web page. I built a cab file that includes an installer (BlowbackInstaller.msi) and an inf file (see below).

The Problem: When I hit the web page in IE8, it correctly prompts me that a control is trying to install and shows the correct signature information, so I know it is finding the CAB file and it is signed.

Then it correctly prompts me about whether I want to install it. alt text http://www.freeimagehosting.net/uploads/cf19341e41.png

After I press the install button, it just continues processing the page without running the installer. I know this because the installer has several dialogs in it.

I tested the installer (msi) separately and it works just fine, it just seems like it isn't being launched from the CAB by IE. I suspect a problem in my INF file.

Here's the HTML to initiate it...

<object id="bbc" 
        codebase="../cabs/BlowbackControl.cab"   
        classid="clsid:A4748756-061D-11DF-9D94-BD9455D89593">
    <param name="_ExtentX" value="26" />
    <param name="_ExtentY" value="26" />
</object>

Here is the contents of the .inf file in the CAB.

[version]
signature="$CHICAGO$"
AdvancedINF=2.0 

[Setup Hooks]
hook1=hook1

[hoook1]
run=msiexec.exe /i %EXTRACT_DIR%\BlowbackInstaller.msi

Anyone see something obvious I am missing, or have any ideas for troubleshooting further?


原文:https://stackoverflow.com/questions/2113586
更新时间:2024-03-09 11:03

最满意答案

这里有关于wfs-t的更完整的代码:

var format = new ol.format.WFS({featureNS:"fiware",featureType:'fw_core',schemaLocation:"http://www.opengis.net/wfs \
                    http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd \
                    http://192.168.4.33:9090/geoserver/grp/wfs/DescribeFeatureType?typename=fiware:fw_core"});
function addInteraction() {
           draw = new ol.interaction.Draw({
             features: featureOverlay.getFeatures(),
             type: /** @type {ol.geom.GeometryType} */ (typeSelect.value)

           });
           draw.on('drawend', function(evt) {
                // create a unique id
                // it is later needed to delete features
                // give the feature this id
                var feature = evt.feature;
               feature.set('geometry', feature.getGeometry()); 
               var node = format.writeTransaction([feature], null, null, {
                    gmlOptions: {srsName: "EPSG:3857"},
                    featureNS: "fiware",
                    featureType: "fiware:fw_core"


                });

                $.ajax({
                    type: "POST",
                    url: "http://192.168.4.33:9090/geoserver/wfs",
                    data: new XMLSerializer().serializeToString(node),

                    contentType: 'text/xml',
                    success: function(data) {
                        var result = format.readTransactionResponse(data);
                        feature.setId(result.insertIds[0]);

                    },
                    error: function(e) {
                        var errorMsg = e? (e.status + ' ' + e.statusText) : "";
                        bootbox.alert('Error saving this feature to GeoServer.<br><br>'
                            + errorMsg);
                    },
                    context: this
                });

              });
           map.addInteraction(draw);

         }

此外,在Geoserver上定义矢量图层时,在发布选项卡中,您必须定义要用作几何列的列。

另一件事,取决于OpenLayers 3版本,您可能需要在此行代码中使用node.impl而不仅仅是node

new XMLSerializer().serializeToString(node.impl)

希望能帮助到你!


Here is more complete code regarding wfs-t:

var format = new ol.format.WFS({featureNS:"fiware",featureType:'fw_core',schemaLocation:"http://www.opengis.net/wfs \
                    http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd \
                    http://192.168.4.33:9090/geoserver/grp/wfs/DescribeFeatureType?typename=fiware:fw_core"});
function addInteraction() {
           draw = new ol.interaction.Draw({
             features: featureOverlay.getFeatures(),
             type: /** @type {ol.geom.GeometryType} */ (typeSelect.value)

           });
           draw.on('drawend', function(evt) {
                // create a unique id
                // it is later needed to delete features
                // give the feature this id
                var feature = evt.feature;
               feature.set('geometry', feature.getGeometry()); 
               var node = format.writeTransaction([feature], null, null, {
                    gmlOptions: {srsName: "EPSG:3857"},
                    featureNS: "fiware",
                    featureType: "fiware:fw_core"


                });

                $.ajax({
                    type: "POST",
                    url: "http://192.168.4.33:9090/geoserver/wfs",
                    data: new XMLSerializer().serializeToString(node),

                    contentType: 'text/xml',
                    success: function(data) {
                        var result = format.readTransactionResponse(data);
                        feature.setId(result.insertIds[0]);

                    },
                    error: function(e) {
                        var errorMsg = e? (e.status + ' ' + e.statusText) : "";
                        bootbox.alert('Error saving this feature to GeoServer.<br><br>'
                            + errorMsg);
                    },
                    context: this
                });

              });
           map.addInteraction(draw);

         }

Also when defining vector layer on Geoserver, in publishing tab you must define what column you are using as geometry column.

Another thing, depending on OpenLayers 3 version you might need to use node.impl instead of just node in this line of code:

new XMLSerializer().serializeToString(node.impl)

Hope it helps!

相关问答

更多

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)