"Could not access network location" during uninstall problem - Advanced Installer Community
schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

"Could not access network location" during uninstall problem

Hello,

I have a problem with the uninstallation of a package. I use property based folders during my setup that refer to network locations. Everything works fine when these folders exist and could be reached by the installer during uninstall.

It is possible that these network folders are unavailable at uninstall - but it should still be possible to uninstall the package. When the folders are unavailable I get a "could not access network location" error during uninstall. I know that it is not recommended to use folders or network locations within the setup that could change afterwards, but I have to use them since our application is a network based program and I have to write some data to ini files and stuff on the server.

I tried to change the used folder properties to [SystemVolume] or so with a custom action executed during uninstall, but it still doesn't work. The folders used during install are stored in the registry and are used during uninstall...

Is there any way to uninstall the package without having access to the network locations?

Thank you!

Marian
Ich weiß, dass ich nichts weiß!
schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

Re: "Could not access network location" during uninstall problem

One more question... should I use "Set installer property" or "Set directory path" to set a property based folder?

Marian
Ich weiß, dass ich nichts weiß!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "Could not access network location" during uninstall problem

Hello Marian,

Indeed, as a workaround on uninstall you can use a "Set installer property" custom action to set the property of your property-based folder to a valid path. Just add such a custom action (on uninstall) just before the "Install Execution Stage -> Paths Resolution" action group.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

Re: "Could not access network location" during uninstall problem

Hi,

I tried using a SetProperty during Uninstall and set the path to [WindowsVolume]. The custom action is executed, but during CostFinalize it gets changed back to it's original value. Can you tell my why this happens? The Property is not marked as persistent.

Greetings

Marian
Attachments
costfinalize.JPG
costfinalize.JPG (169.3 KiB) Viewed 7386 times
Ich weiß, dass ich nichts weiß!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "Could not access network location" during uninstall problem

Hello Marian,

I don't have any clue why this could happen. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "Could not access network location" during uninstall problem

Hello Marian,

I've tested your installation scenario on our side and replicated the same behavior. Unfortunately, it seems you cannot influence this uninstall error even when explicitly setting the folder property to a valid path on uninstall. This is because during "CostFinalize" standard action the path of the network folder is reverted to its installation path (most likely this is fetched from the component directories). In this case I'm afraid I'm not aware of any workaround you can try.

Thank you for your understanding.

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

Return to “Common Problems”