在inno设置中运行InstallUtil {app} /file.exe(running InstallUtil {app}/file.exe in inno setup)
我想将服务文件复制到{app}目录,然后将其用作InstallUtil.exe中的参数。
这是我的代码的一部分:
[Files] Source: WCFService.exe; DestDir: {app} Source: WCFService.exe.config; DestDir: {app} [Run] Filename: {dotnet40}\InstallUtil.exe; Parameters: {app}\WCFService.exe此代码不起作用(但文件正确复制到{app}目录中)。 但是,如果我使用这样的东西:
[Files] Source: WCFService.exe; DestDir: {src} Source: WCFService.exe.config; DestDir: {src} [Run] Filename: {dotnet40}\InstallUtil.exe; Parameters: WCFService.exe它工作正常。 有谁知道发生了什么? 我必须使用inno设置。
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.exeThis 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.exeit works correctly. Does anyone know what's going on? I have to use inno setup.
最满意答案
在这种情况下,您可以尝试在[Run]部分中将WorkingDir参数设置为{app} 。 喜欢这个:
[Run] Filename: "{dotnet40}\InstallUtil.exe"; WorkingDir: "{app}"; Parameters: "WCFService.exe"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"更多推荐
发布评论