almathie
Posts: 3
Joined: Mon Nov 05, 2012 6:06 pm

Installer error when default location is not reachable

Hello Caphyon,

I have got another challenge for your installer Gurus.
The trial version of our software is installed by default in the "Documents" folder, wich is quite fine since it does not require any admin permission.
It works really well and the vast majority of our users are installing the soft correctly.

We just had one user whose Document folder was mapped to a network drive via a registery key :
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders<Local
Which had the value : \\some\network\drive\Users\username\Documents\

Our user always gets a "Could not access network location" error wether he can reach the drive or not. However, the error is a bit different :
- If the drive is not connected he gets the error for the folder : \\some\network\drive\Users\username\Documents\
- If the drive is connected, he gets the error for the folder : \\some\network\drive\Users\username\Documents\Dsight
Where Dsight is the name of the folder that would be created by our installer.

Note that (and this is the problem) the error occurs before the user can change the installation directory.
So, the user can't decide to install it on a local drive, if available.
The only screen that appears states : "This installer will guide you .... ... Computing space requirements"

Is it possible to delay whatever operation is failing, after letting the user choose the install dir ?

D-Sight Team
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer error when default location is not reachable

Hello,

Please keep in mind this happens because the related installation folder is resolved to an invalid path during CostFinalize standard action. As a workaround, you can set the APPDIR property to an existing location (e.g. WindowsVolume) before the "Wizard Dialogs Stage -> Paths Resolution -> CostFinalize" standard action, and then the user can change the installation folder from "FolderDlg" dialog. So, you can add a "Set installer property" custom action with sequence, scheduled before "Wizard Dialogs Stage -> Paths Resolution -> CostFinalize" standard action, like this:
  • Property: APPDIR
    Formatted: [WindowsVolume]
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”