Error occurs when a searched for directory doesn't exist - Advanced Installer Community

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!

nwadc10
Posts: 4
Joined: Sun Jul 12, 2009 5:50 pm

Error occurs when a searched for directory doesn't exist

I have the installer searching for 4 directories. The search is simply to get the paths of folders to install files into two different products, either of which may not be installed. For now, the installer works perfect if the user has both products or neither product installed but I'm getting an error if only 1 of the 2 products is installed.

Looking at the log, the error occurs during CostFinalize and the action text on the installer itself shows the error occurs while "Computing space requirements". The error is below:
MSI (c) (C4:E8) [17:55:26:222]: Note: 1: 1314 2: undefined
MSI (c) (C4:E8) [17:55:26:291]: Note: 1: 1606 2: undefined
Error 1606. Could not access network location undefined.
MSI (c) (C4:E8) [17:55:34:685]: Product: MyProduct -- Error 1606. Could not access network location undefined.

"undefined" is what I changed the default value for the search to. I have code later in the installer to disable checkboxes for custom installation of features if one of the searched paths is "undefined".

The root of the problem is that the folder doesn't exist because that product isn't installed but why is the installer trying to do anything with a folder I searched for? Doesn't the search return a blank path for a search not found? I double checked my custom actions to make sure I wasn't trying to use that data and I don't use it until showing a custom dialog to display the installation type selection screen (not the default selection screen, my own with checkboxes). How can I fix this error?

Thanks,
Justin
nwadc10
Posts: 4
Joined: Sun Jul 12, 2009 5:50 pm

Re: Error occurs when a searched for directory doesn't exist

Disregard, I set the default value to "C:\" rather than "undefined" and now the error no longer appears.

Justin

Return to “Common Problems”