[wix-users] Can't Access CustomData during uninstall

Justin Cox cox.justin.a at gmail.com
Wed Mar 27 12:58:55 PDT 2019


I was able to fix it by moving the UninstallFolders action right after the
SetFolderValuesUninstall.  I think the variable was getting destroyed
before the UninstallFolders action was called.

The dictionary error is expected when you call that CustomSessionData with
no value.

On Wed, Mar 27, 2019, 11:28 AM Rob Mensching <rob at firegiant.com> wrote:

> That callstack doesn't have any WiX code on it.
>
>
>
> _____________________________________________________________
>
> Short replies here. Complete answers over there: http://www.firegiant.com/
>
>
>
> *From:* Justin Cox <cox.justin.a at gmail.com>
> *Sent:* Wednesday, March 27, 2019 10:04 AM
> *To:* Rob Mensching <rob at firegiant.com>
> *Cc:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Subject:* Re: [wix-users] Can't Access CustomData during uninstall
>
>
>
> So the error was in my catch block, which I threw to an immediateCA error
> catcher, which sets a variable, then writes it to a log after exiting the
> CA.  Fixing that, the error I'm getting now is:
>
>
>
> System.Collection.Generic.KeyNotFoundException: The given key was not
> present in the dictionary,
>
>   at System.Collections.Generic.Dictionary'2.get_Item(TKey key)
>
>   at XXXXXShared.DPWixExtension.UninstallFolders(Session session)
>
>
>
> So it still seems it's not getting the FolderList variable, even though
> the log shows it's being set.  I'm stumped!
>



More information about the wix-users mailing list