在Inno Setup中运行InstallUtil {app}/file.exe [英] running InstallUtil {app}/file.exe in inno setup

查看:73
本文介绍了在Inno Setup中运行InstallUtil {app}/file.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将服务文件复制到{app}目录,然后将其用作InstallUtil.exe中的参数.

I want to copy service files to {app} directory and then use this as a parameter in InstallUtil.exe.

这是我的代码的一部分:

Here's some part of my code :

[Files]
Source: WCFService.exe; DestDir: {app}
Source: WCFService.exe.config; DestDir: {app}

[Run]
Filename: {dotnet40}\InstallUtil.exe; Parameters: {app}\WCFService.exe

此代码无效(但文件已正确复制到{app}目录中).但是,如果我使用这样的东西:

This code doesn't work (but the files are copied into {app} directory correctly). However, if I use something like this :

[Files]
Source: WCFService.exe; DestDir: {src}
Source: WCFService.exe.config; DestDir: {src}

[Run]
Filename: {dotnet40}\InstallUtil.exe; Parameters: WCFService.exe

它正常工作.有人知道发生了什么吗? 我必须使用inno设置.

it works correctly. Does anyone know what's going on? I have to use inno setup.

推荐答案

在这种情况下,您可以尝试在[Run]部分中将WorkingDir参数设置为{app}. 像这样:

In this case you could try to set WorkingDir parameter to {app} in the [Run] section. Like this:

[Run]
Filename: "{dotnet40}\InstallUtil.exe"; WorkingDir: "{app}"; Parameters: "WCFService.exe"

这篇关于在Inno Setup中运行InstallUtil {app}/file.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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