Atrus' Windows patches: [ 1695482 ] win32-synfig-all-users
[synfig.git] / synfig-core / trunk / win32inst.nsi.in
index 2e4ad9e..886938b 100644 (file)
@@ -89,6 +89,7 @@ SectionEnd
 ; Optional section (can be disabled by the user)
 Section "Start Menu Shortcuts"
 
+  SetShellVarContext All
   CreateDirectory "$SMPROGRAMS\Voria"
   CreateShortCut "$SMPROGRAMS\Voria\Uninstall Synfig Core.lnk" "$INSTDIR\uninstall-@PACKAGE_TARNAME@.exe" "" "$INSTDIR\uninstall-@PACKAGE_TARNAME@.exe" 0
   
@@ -117,6 +118,7 @@ SectionEnd
 Section "un.Start Menu Shortcuts"
 
   ; Remove shortcuts, if any
+  SetShellVarContext All
   Delete "$SMPROGRAMS\Voria\Uninstall Synfig Core.lnk"
   RMDir "$SMPROGRAMS\Voria"
 
@@ -129,6 +131,7 @@ Section "Examples"
        SetOutPath $INSTDIR\examples
        File "@srcdir@\examples\*.sif"
 
+       SetShellVarContext All
        CreateDirectory "$SMPROGRAMS\Voria"
        CreateShortCut "$SMPROGRAMS\Voria\Examples.lnk" "$INSTDIR\examples" "" "$INSTDIR\examples" 0
 SectionEnd
@@ -136,7 +139,8 @@ SectionEnd
 Section "un.Examples"
        Delete "$INSTDIR\examples\*.sif"
        RMDir "$INSTDIR\examples"
-       
+
+       SetShellVarContext All
        Delete "$SMPROGRAMS\Voria\Examples.lnk"
        RMDir "$SMPROGRAMS\Voria"
 SectionEnd