我正在编写一个Inno安装程序脚本,需要添加/修改某些文件的权限。但是,它正在设置某些文件的权限而不是其他文件。相关代码:Inno安装程序拒绝设置某些文件的权限
[Files]
Source: "K:\user\Odin\Installer Files\C_Odin\*"; DestDir: "{sd}\Odin"; Flags: ignoreversion recursesubdirs createallsubdirs
// CODE OF INTEREST STARTS HERE
Source: "K:\user\Odin\Installer Files\C_Odin\PDOXUSRS.NET"; DestDir: "{sd}\Odin"; Permissions: users-modify
Source: "K:\user\Odin\Installer Files\Data\PDOXUSRS.NET"; DestDir: "{sd}\Odin\Data"; Permissions: users-modify
Source: "K:\user\Odin\Installer Files\Data\Users.DB"; DestDir: "{sd}\Odin\Data"; Permissions: users-modify
第一个文件的权限设置正确,第二个不是。任何洞察力非常感谢
使用/ LOG的安装可执行文件,找到它在那里。
2016-07-22 16:45:12.502 -- File entry --
2016-07-22 16:45:12.502 Dest filename: C:\Odin\WorkStn.cfg
2016-07-22 16:45:12.502 Time stamp of our file: 2016-07-22 16:19:28.000
2016-07-22 16:45:12.502 Dest file exists.
2016-07-22 16:45:12.502 Time stamp of existing file: 2016-07-22 16:19:28.000
2016-07-22 16:45:12.502 Version of our file: (none)
2016-07-22 16:45:12.518 Version of existing file: (none)
2016-07-22 16:45:12.518 Installing the file.
2016-07-22 16:45:12.518 Successfully installed the file.
2016-07-22 16:45:12.518 Setting permissions on file: C:\Odin\WorkStn.cfg
2016-07-22 16:45:12.518 -- File entry --
2016-07-22 16:45:12.518 Dest filename: C:\Odin\Data\PDOXUSRS.NET
2016-07-22 16:45:12.518 Time stamp of our file: 2016-07-22 12:04:28.000
2016-07-22 16:45:12.518 Installing the file.
2016-07-22 16:45:12.518 Creating directory: C:\Odin\Data
2016-07-22 16:45:12.518 Successfully installed the file.
2016-07-22 16:45:12.518 Setting permissions on file: C:\Odin\Data\PDOXUSRS.NET
2016-07-22 16:45:12.518 -- File entry --
完整的日志https://gist.github.com/nguillermin/d814a14f68db8ebba1720a3af2f42a54
向我们展示安装程序日志。 –
你已经做到了,对吧?所以删除评论。 –