@@ -406,6 +406,9 @@ ${MementoSection} "Install in VS 2013" SecVS2013
406406 ${SetOutPath} " $1\PublicAssemblies"
407407 ${File} " ..\bin\Release\VisualDWizard\obj\" VisualDWizard.dll
408408
409+ push $1
410+ Call VSConfigurationChanged
411+
409412${MementoSectionEnd}
410413
411414; --------------------------------
@@ -439,6 +442,14 @@ ${MementoSection} "Install in VS 2015" SecVS2015
439442 ${SetOutPath} " $1\PublicAssemblies"
440443 ${File} " ..\bin\Release\VisualDWizard\obj\" VisualDWizard.dll
441444
445+ push $1
446+ Call VSConfigurationChanged
447+
448+ ; Workaround for extension cache not properly updated
449+ SetShellVarContext current
450+ Delete $LocalAppData \Microsoft\VisualStudio\14.0 \Extensions\*.cache
451+ SetShellVarContext all
452+
442453${MementoSectionEnd}
443454
444455; --------------------------------
@@ -905,12 +916,25 @@ Section "Uninstall"
905916
906917 ReadRegStr $1 ${VS_REGISTRY_ROOT} " ${VS2015_REGISTRY_KEY}" InstallDir
907918 IfErrors NoVS2015pkgdef
919+ IfFileExists ' $1${EXTENSION_DIR_APP}' +1 NoVS2015ExtensionDir
920+ Push $1
921+ Call un.VSConfigurationChanged
922+
923+ ; Workaround for extension cache not properly updated
924+ SetShellVarContext current
925+ Delete $LocalAppData \Microsoft\VisualStudio\14.0 \Extensions\*.cache
926+ SetShellVarContext all
927+ NoVS2015ExtensionDir:
908928 RMDir /r ' $1${EXTENSION_DIR_APP}'
909929 RMDir ' $1${EXTENSION_DIR_ROOT}'
910930 NoVS2015pkgdef:
911931
912932 ReadRegStr $1 ${VS_REGISTRY_ROOT} " ${VS2013_REGISTRY_KEY}" InstallDir
913933 IfErrors NoVS2013pkgdef
934+ IfFileExists ' $1${EXTENSION_DIR_APP}' +1 NoVS2013ExtensionDir
935+ Push $1
936+ Call un.VSConfigurationChanged
937+ NoVS2013ExtensionDir:
914938 RMDir /r ' $1${EXTENSION_DIR_APP}'
915939 RMDir ' $1${EXTENSION_DIR_ROOT}'
916940 NoVS2013pkgdef:
@@ -1432,7 +1456,7 @@ Function VSConfigurationChanged
14321456 IfErrors NoVS2017
14331457 FileClose $R1 ; empty file good enough
14341458 NoVS2017:
1435-
1459+ Pop $1
14361460FunctionEnd
14371461
14381462Function un.VSConfigurationChanged
0 commit comments