Cause of "could not access network location License"? - 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!

ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Cause of "could not access network location License"?

I'm getting an error message when I use the uninstall mecahnism of my advanced istaller package from the Control Panel's Add/Remove Programs window.

My package has a "File Copy/Move" action from a directory where the installer package has been run from (LICENSEDIR which equates to "[SETUPEXEDIR]License\") to the windows system folder (SystemFolder). Following the instructions I was given, I created a folder called "LICENSEDIR" in the "Files, Folders and Shortcuts" section for the source folder. The File Copy/Move action works, but when I uninstall the package from the Control Panel's Add/Remove window, I get the following error message:

Code: Select all

Could not access network location License
If I re-run the package and choose the Remove option, the installed package is removed without displaying the error.

I think the problem is related to the "License" folder, but I'm really not sure how to get rid of the error.
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: Cause of "could not access network location License"?

This is now a real pain ... while trying to figure out what was going on, I've been changing things testing it, repeat, and I forgot to uninstall the previous version before I rebuild the package, so now I can't run the installer package to remove the installed version.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Cause of "could not access network location License"?

Hello,

Please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it.
so now I can't run the installer package to remove the installed version.
You can try MsiZap or windows installer cleanup utility.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: Cause of "could not access network location License"?

AIP emailed.
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: Cause of "could not access network location License"?

With some help from the support team, the solution was found:
  • I had an Install Parameter "LICENCEDIR" which contained "[SETUPEXEDIR]/License". This wasn't being resolved when the uninstall was being performed. The Install Parameter was changed to "C:\". Provided this drive exists, the application now uninstalls as expected from the Add/Remove window.
  • I had a custom action "SetLICENSEDIR" in my Begin step. This was always being performed as it had no execution condition. The execution condition '(Not Installed) OR (Installed AND Remove <> "All") ' was add - the (Not Installed)' condition ensures the custom action is performed when the application has never been installed, and the '(Installed AND Remove <> "All") ' condition ensures the action is performed when Modify was used to change the installation.
Thanks.

Return to “Common Problems”