When the installation package completes the installation, it can start an external program to copy the Revit Addin file to the corresponding version file location. However, I use

1
2
[Run]
Filename: "{app}\CopyFiles.exe" ;Description:"修改文件" ; Parameters:{app}; StatusMsg: "正在配置信息"; Flags: runhidden

If the correct installation path selected by the user is C:\Program Files (x86) default path, passing the string will automatically split into an array causing the program to run error.

I went to stackflow to ask questions and found a solution. I will put the solution and corresponding link below. Those who have similar situations can refer to the following links to solve.
Because in Pascal statements “” represents ‘ , Source: Why double quotes in pascal need to type 6 single quotes so you need to modify the above statement to

1
2
[Run]
Filename: "{app}\CopyFiles.exe" ;Description:"修改文件" ; Parameters:"""{app}"""; StatusMsg: "正在配置信息"; Flags: runhidden

Inno Setup, spaces in parameters in [Run]

How to handle path with spaces in Inno Setup?

Inno Setup, spaces and double quote in [Run]

![Image Description](https://cdn.bimath.com/blog/pg/Snipaste_2026-01-04_17-03-59.png)