“分享你的选择不存在或无法访问的驱动器或UNC” Inno Setup的,为什么呢?(Inno se

2019-10-17 08:55发布

我已经写在Inno Setup的应用程序在用户的PC上安装的文件。 应用效果很好,当我在Mac上运行Parallels测试它在XP。 但是,当用户试图安装,在XP和7,他们得到的向导,并开始安装,然后得到的消息:

Error. The drive or UNC share you selected does not exist or is not accessible

我现在已经设法让日志文件,程序产生:

2012-11-11 14:09:21.992   Log opened. (Time zone: UTC+00:00)

2012-11-11 14:09:21.992   Setup version: Inno Setup version 5.5.2 (a)

2012-11-11 14:09:21.992   Original Setup EXE: C:\Users\Ali\Documents\rninstaller.exe

2012-11-11 14:09:21.992   Setup command line: /SL5="$9049C,86159698,54272,C:\Users\Ali\Documents\rninstaller.exe" /SPAWNWND=$D049A /NOTIFYWND=$140476 /log="rnlog"

2012-11-11 14:09:21.992   Windows version: 6.1.7601 SP1  (NT platform: Yes)

2012-11-11 14:09:21.992   64-bit Windows: Yes

2012-11-11 14:09:21.992   Processor architecture: x64

2012-11-11 14:09:21.992   User privileges: Administrative

2012-11-11 14:09:21.992   64-bit install mode: No

2012-11-11 14:09:21.992   Created temporary directory: C:\Users\Ali\AppData\Local\Temp\is-MQ2FF.tmp

2012-11-11 14:09:28.201   RestartManager found an application using one of our files: ?O?O?O?I?O?O?O?I?O?O?O?O?O?O?O?O?O?O?O?O?O?O?O?O?O?O?O?ODO?O?O?O?O?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?I?O?O?O?O?O?O?O?O?O?I?I?i

2012-11-11 14:09:28.201   RestartManager found an application using one of our files: 

2012-11-11 14:09:28.201   RestartManager found an application using one of our files: 

2012-11-11 14:09:28.201   RestartManager found an application using one of our files: 

2012-11-11 14:09:28.201   RestartManager found an application using one of our files: 

2012-11-11 14:09:28.201   Can use RestartManager to avoid reboot? No (262758)

2012-11-11 14:09:28.201   Message box (OK):
                          The drive or UNC share you selected does not exist or is not accessible. Please select another.

2012-11-11 14:09:31.592   User chose OK.

2012-11-11 14:09:31.592   Deinitializing Setup.

2012-11-11 14:09:31.592   Log closed.

我看不出这是怎么回事。 任何人都可以帮忙吗?

Answer 1:

正如评论的问题解决了,在问题的设置脚本有一个硬编码DefaultDirName其中包括未在客户现场存在的服务器名称。 这导致在“驱动器或您选择不存在或无法访问UNC共享”的错误。 这就是为什么DefaultDirName ,大多数情况下,“通过不断目录前缀”。



文章来源: Inno setup “The drive or UNC share you selected does not exist or is not accessible”, why?
标签: inno-setup