使用Windows安装程序...&QUOT错误,无法获取安装类型" [英] Error with Windows Installer ... "Unable to get installer types"

查看:813
本文介绍了使用Windows安装程序...&QUOT错误,无法获取安装类型"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好,

我使用Windows安装程序安装在一个产品我部署事件源时遇到一个错误。

I'm experiencing an error when using the windows installer to install an event source in a product I am deploying.

我接收状态的错误信息如下...

The error message I receive states the following ...

无法获取在安装类型   C:\ TEMP \ PROGRAM.EXE组装。 - >   无法加载的一个或多个的   请求类型。检索   LoaderExceptions酒店以了解更多   信息。

Unable to get installer types in the c:\temp\program.exe assembly. --> Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

下面是code,创建事件源安装块...

Here is the block of code that creates the event source installer ...

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Diagnostics;

namespace myapplication
{
    [RunInstaller(true)]
    public partial class EventSourceInstaller : Installer
    {
        public EventSourceInstaller()
        {
            InitializeComponent();

            string eventSourceName = "MyAppSourceName";
            if (!EventLog.SourceExists(eventSourceName))
            {
                EventSourceCreationData data = new EventSourceCreationData(eventSourceName, "Application");
                EventLog.CreateEventSource(data);
                EventLog.WriteEntry(eventSourceName, "Source Added.");
            }
        }
    }
}

在安装项目,我已经添加上安装一个名为自定义操作从MyApplication的主输出(活动),以运行事件源安装程序。

In the installer project I've added a custom action on Install named "Primary output from MyApplication (Active)" to run the event source installer.

我有以下问题

1)有过这个任何人都跑什么问题?

1) Has anyone else run across this and what was the issue?

2)我如何去获取安装程序的LoaderExceptions财产?

2) How do I go about retrieving the LoaderExceptions property of the installer?

感谢您事先提供的任何意见/协助,

Thank you in advance for any advice/assistance offered,

斯科特Vercuski

Scott Vercuski

推荐答案

我从来没有见过的错误,但路径C:\ TEMP \ PROGRAM.EXE很奇怪。你们是不是要运行从C安装:\ TEMP \目录

I have never seen that error, but the path c:\temp\program.exe is very strange. Are you trying to run the installer from the c:\temp\ directory?

您一定的所有项目,所有使用都包括在部署项目的第三方的DLL的输出?点击都包含在部署项目文件,并检查其SOURCEPATH财产;他们是原始的源文件,而不是目标输出文件夹?不是临时文件夹?

Are you certain the output of all projects and all third-party DLLs you use are included in the Deployment project? Click on all included files in the Deployment project and check their SourcePath property; are they to the original source files and not the target output folder? Not the temp folder?

这篇关于使用Windows安装程序...&QUOT错误,无法获取安装类型"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆