什么VSDCA​​_Launch在自定义操作脚本的意思自定义、脚本、意思、操作

由网友(*像風щΘ在扌裏)分享简介:我想安装使用Visual Studio安装和功放后启动一个应用程序;部署输出。我跟随the文章我如何启动应用程序后,在Visual Studio安装安装工程。它有一个解决方案,使用自定义操作安装后添加一个复选框,并启动应用程序。但我仍然有一个问题,在应用程序的工作目录发布是从目标目录的区别。因此,它不能读取XML配...

我想安装使用Visual Studio安装和功放后启动一个应用程序;部署输出。我跟随 the文章我如何启动应用程序后,在Visual Studio安装安装工程。 它有一个解决方案,使用自定义操作安装后添加一个复选框,并启动应用程序。但我仍然有一个问题,在应用程序的工作目录发布是从目标目录的区别。因此,它不能读取XML配置文件。我rel="nofollow">自定义操作类型阅读更多关于自定义操作在,并认为我应该用行动34或35,但我还是搞不清怎么用。

I want to launch an application after installation with Visual Studio setup&deployment output. I follow the article 'How do I launch an application after install in a Visual Studio Setup Project'. It has a solution that using Custom Action to add a checkbox and launch the application after installation. But I still have a problem, the application has launched with the working directory was difference from the target directory. Therefore it can't read XML configuration file. I've read more about Custom Action at Custom Action Types and think I should use action 34 or 35 but I'm still confuse how to use.

在脚本中的原始的插入操作语句是: SQL =INSERT INTO CustomAction 动作键入来源目标)VALUES('VSDCA​​_Launch','210','+ FILEID +','' );

The original insert action statement in script is: sql = "INSERT INTO CustomAction (Action, Type, Source, Target) VALUES ('VSDCA_Launch', '210', '" + fileId + "', '')";

我知道,210是18 + 192,但不知道是什么意思VSDCA​​_Launch。我怎样才能启动,目标目录中的应用程序。谢谢你。

I known that 210 is 18 + 192 but don't know what VSDCA_Launch mean. How can I launch the app with target directory. Thank you.

修改

我已经改为226 = 24 + 192,它做工精细。

I've changed to 226 = 24 + 192 and it work fine.

SQL =INSERT INTO CustomAction 动作键入来源目标)VALUES('VSDCA​​_Launch','226','TARGETDIR','[TARGETDIR ] APP.EXE');

sql = "INSERT INTO CustomAction (Action, Type, Source, Target) VALUES ('VSDCA_Launch', '226', 'TARGETDIR', '[TARGETDIR]App.exe')";

推荐答案

只是一个小幅调整上述解决方案: 有一个反斜杠失踪。我想这可能都与该职位的格式。 该行应该是:

Just a minor correction to the above solution: There's a backslash missing. I think it may have to do with the formatting of the post. The line should be:

sql = "INSERT INTO CustomAction (Action, Type, Source, Target) VALUES ('VSDCA_Launch', '226', 'TARGETDIR', '[TARGETDIR]App.exe')";
阅读全文

相关推荐

最新文章