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: W
{app}
may contain spaces, and so must be properly quoted when using it on command lines:
[Run]
Filename: {dotnet40}\InstallUtil.exe; Parameters: """{app}\WCFService.exe"""
The outermost set of quotes is for Inno itself; each pair of doubled quotes within that will end up putting a single quote on the command line.
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"