安装完成后自动启动时,应用程序中的COM DLL异常! [英] COM DLL exception in application when it auto launches after setup finishes installation!

查看:43
本文介绍了安装完成后自动启动时,应用程序中的COM DLL异常!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用解决方案来修改MSI,以包括用于用户自行决定是否要在安装程序退出后启动该应用程序.

I'm using this solution to modify the MSI to include a checkbox for user to decide whether s/he wants to launch the application after setup exits.

尽管一切正常,但我注意到的是,应用程序在自动启动时无法使用在安装过程中注册的任何COM DLL.从开始菜单再次启动时,该应用程序完美运行.

Although everything works just fine, what I noticed was the application was not able to use any COM DLL's registered during the setup when it was auto launched. The app works perfectly when launched again from start menu.

我已经在Windows XP和Windows 7上对其进行了测试.

I have tested it on Windows XP and Windows 7.

在安装项目中,COM DLL已被标记为自注册dll.

The COM DLL's have been marked as self registering dll's in the setup project.

推荐答案

我知道了.问题是未指定目标目录.此问题中提到了错误修复.

I got it work. The problem was that the target directory was not specified. The bug fix was mentioned in this question.

我将脚本中的其中一行更改为:

I changed one of the lines in script to:

sql = "INSERT INTO `CustomAction` (`Action`, `Type`, `Source`, `Target`) VALUES ('VSDCA_Launch', '226', 'TARGETDIR', '[TARGETDIR]\\" + filename + " " + arguments + "')"; 

这篇关于安装完成后自动启动时,应用程序中的COM DLL异常!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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