安装后VB.NET 2005启动应用程序 [英] VB.NET 2005 launch application after install

查看:56
本文介绍了安装后VB.NET 2005启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用内置的安装项目.我已经在安装程序上尝试了commit事件,但是在退出安装程序之前(而不是之后)触发了该事件.我也尝试过这个人的代码:

I'm using the built in setup project. I've tried the commit event on the installer but that is fired before the installer quits, not after. Also I've tried this guy's code:

http://blogs.msdn.com/b/astebner/archive/2006/08/12/696833.aspx

他的目标与我的目标相同,但是当我尝试让他的代码在发布后事件上运行时,它的错误出处是未指定的错误" ...

His goal is the same as mine but when I try to get his code to run on the post build event, it errors out with "unspecified error"...

如何在安装应用后让安装程序运行我的应用?您知道复选框内容为完成后启动".

How do I get the installer to run my app after it installs? You know, with the checkbox thing "Launch after finish."???

这应该很简单.........

This should be soooo simple.........

沮丧

推荐答案

好吧,他们的博客是对的.我得到了它的工作,这正是我一直在寻找的东西.为了弄清楚出了什么问题,我显示了输出窗口(CTRL + ALT + O),它显示了在调用他的脚本时的post build事件的CScript输出.事实证明,我系统上的.js文件已由Notepad ++处理,并且我需要将其关联更改为CScript才能使他的脚本正常工作(如果CScript不是默认应用程序,则无法与.vbs或.js文件一起使用对于文件...太愚蠢了).我还必须在Notepad ++的设置中将Notepad ++与.js文件取消关联,因为当我重新启动Notepad ++时,它将重新捕获文件关联.

Ok, they guy's blog is right. I got it to work and it's exactly what I was looking for. To figure out what went wrong, I showed the output window (CTRL+ALT+O) and it showed the CScript output for the post build event when his script was being called. It turns out that .js files on my system were being handled by Notepad++ and I needed to change the association to CScript for his script to work (CScript won't work with .vbs or .js files if it isn't the default application for the file... so stupid). I also had to unassociate Notepad++ with .js files in Notepad++'s settings because it would recapture the file association when I restarted Notepad++.

这篇关于安装后VB.NET 2005启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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