I have written an application in Inno Setup to install files on users PCs. The application works well when I test it on XP in Parallels running on Mac. But when the user tries to install, in Xp and in 7, they get to the Wizard and start the install and then get the message:
Error. The drive or UNC share you selected does not exist or is not accessible
I have now managed to get the log file that the program produces:
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.
I cannot see what is going on here. Can anyone help ?
As resolved in the comments to the question, the setup script in the question had a hard coded
DefaultDirNamewhich consisted of a server name that didn’t existed at the client site. This resulted in the “The drive or UNC share you selected does not exist or is not accessible” error. This is whyDefaultDirName, most often, “is prefixed by a directory constant”.