我在Inno安装程序中编写了一个应用程序,用于在用户PC上安装文件。当我在XP上并行地运行在Mac上时,这个应用程序工作得很好。但是,当用户尝试安装时,在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.我看不出这是怎么回事。有人能帮忙吗?
发布于 2012-11-15 09:37:10
在问题的注释中解决了,问题中的设置脚本有一个硬编码的DefaultDirName,它由一个在客户端站点上不存在的服务器名称组成。这导致“您选择的驱动器或UNC共享不存在或无法访问”错误。这就是为什么DefaultDirName经常“以目录常量作为前缀”的原因。
发布于 2020-06-25 12:13:32
我犯这个错误是因为另一个原因。我的脚本没有任何硬编码路径,UNC或其他。这是在Windows 10机器上。我已经在闪存盘上安装了应用程序,但是后来当我试图在PC上安装另一个版本时,闪存驱动器没有出现。安装失败,因为Windows无法卸载上一个版本,Inno安装程序正在尝试更新已安装的版本。若要检查此选项,请打开“控制面板”并选择“程序和功能”。如果应用程序的某个版本已经安装,请尝试卸载它。如果此操作失败,则您的设置将给出OP记录的相同错误。
我希望这能帮助到其他遇到这个问题的人。
发布于 2021-01-26 13:45:08
对于在这篇文章中寻找“驱动程序或UNC共享不存在”问题的解决方案的其他人,我发现这个问题可以追溯到上次安装时遗留下来的问题,特别是卸载可执行文件。
如果您没有卸载可执行文件,而Windows 10“添加或删除程序”无法卸载(可能是由于缺少uninst.exe),则可以尝试进行一些注册表黑客操作以使其安装。
继续Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\,并扫描那些引用软件卸载可执行文件的条目。把它弄死,整把钥匙。然后-试着重新安装你的程序。
还有一个用于卸载密钥的位置:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallComputer\HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\UninstallComputer\HKEY_USERS\S....\Software\Microsoft\Windows\CurrentVersion\Uninstall您可能也想在这些地方查找条目。
https://stackoverflow.com/questions/13218274
复制相似问题