none
none

Reputation: 4827

innosetup : "the driver or unc share you selected does not exist or is not accessible. Please select another."

Running an installation of inno setup on windows 8 , choosing a network drive (mapped driver), will result in an error message :

"the driver or unc share you selected does not exist or is not accessible. Please select another."

Googling led to here, which suggested to change the

'DefaultDirName'

to be

DefaultDirName={sd}\folder

Yield no change.

Opening up the inno setup got from git hub showed the the massage is held on parameter name "msgInvalidDrive", looking up the code that used it is at line 2574 to 2579

  { Check if it's a valid drive, reconnecting it first if necessary }
  RootPath := RemoveBackslashUnlessRoot(AddBackslash(PathExtractDrive(T)));
  ReconnectPath(RootPath);
  if not DirExists(RootPath) then begin
    LoggedMsgBox(SetupMessages[msgInvalidDrive], '', mbError, MB_OK, True, IDOK);
    Exit;
  end;

So i tried making sure that the folder exists. which did not help.

Any idea suggestion on how to resolve this?

browse looks like this:

inno setup browse

and the error message persists.

Upvotes: 2

Views: 3988

Answers (1)

Hemix
Hemix

Reputation: 313

Try using PrivilegesRequired=lowest in the [setup] section of your .iss script, this should word if you're not using any admin-required functionnality.

Upvotes: 3

Related Questions