running InstallUtil {app}/file.exe in inno setup

后端 未结 2 430
孤独总比滥情好
孤独总比滥情好 2021-01-14 02:47

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         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 03:29

    {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.

提交回复
热议问题