We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DBaker
Posts: 1
Joined: Thu Feb 18, 2016 12:25 am

File costing error

Greetings,


We've run into an issue with an installer designed to install some example documents into the users [PersonalFolder]. Users with their [PersonalFolder] mapped to a network drive can get a "Could not access network location" error if security or access privileges prevent it.

This alone is a reasonable and expected behavior; however when they hit "cancel" on this message box, the installer exits, with no chance to choose a different path.

It's my assumption that this occurs because file costing calculations are run immediately on the drive of the default install path, and when the targeted drive can't be accessed, they fail. So we need either:

1) A way to delay file costing calculations until a install path is chosen, or,
2) A way to completely disable file costing calculations.


Using "Fast installation" option did not fix this problem, but installing to [ProgramFiles] does (as that's on a local drive). However, that is not fit-all solution.

Thanks for any help!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File costing error

Hello and welcome to Advanced Installer forums,

I'm not sure if you can handle this from the installer, to delay file costing or other standard actions.

You will use a local installation path for your application in order to avoid any error. Then, you can try to create a custom action that will search to see if there is any mapped drive. For this you can take advantage of the DriveInfo Class that provides access to information on a drive.

If you find any drive of type Network then you can check the write permissions. If the user has write permissions you can set the APPDIR with the desired value or ask him to enter his credentials.

You can take a look on the How to integrate and debug custom actions? article which may be useful to you.

Please let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File costing error

Hello and welcome to Advanced Installer forums,

This is a forum of Advanced Installer. Advanced Installer is a Windows Installer authoring tool. It offers a friendly and easy to use Graphical User Interface for creating and maintaining installation packages (EXE, MSI, etc.) based on the Windows Installer technology.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”