从 NSIS 安装程序写入 SUBSTed 驱动器

Writing to a SUBSTed drive from NSIS installer

我在从我的 NSIS 安装程序写入 SUBSTed 驱动器时遇到问题。

IfFileExists  "K:\PROJECT\CFG\*.*" 0 DoesNotExist  
SetOutPath "K:\PROJECT\CFG"  
File ..\CFG\*.*

DoesNotExist:

此外 - 它甚至找不到路径,所以我最终评论了 IfFileExists 命令,然后导致生成以下错误。 我尝试 运行 安装程序作为管理员,但我仍然收到以下消息:

Error opening file for writing:

K:\PROJECT\CFG\CFG.x

Click Abort to stop the installation, Retry to try again, or Ignore to skip this file.

其中 K: 是 SUBSTed 驱动器。

如果使用实际路径,它工作正常。 有什么建议吗?

谢谢!

好的,我找到问题了。这是UAC提升。管理员帐户不存在 SUBSTed 驱动器,因此不会 visible/accessible 安装程序。