PortableApps.comInstallerCustom.nsh revision 556728d98061d2d34980374d963a59dde52e2670
!macro CustomCodePostInstall
${If} ${FileExists} "$INSTDIR\Data\settings\AppData" ; 0.46 Development Tests
Rename "$INSTDIR\Data\settings\AppData" "$INSTDIR\Data\_settings"
${ElseIf} ${FileExists} "$INSTDIR\Data\settings\InkscapePortableAppData" ; 0.46 Pre-Release 1
Rename "$INSTDIR\Data\settings\InkscapePortableAppData" "$INSTDIR\Data\_settings"
${EndIf}
${If} ${FileExists} "$INSTDIR\Data\_settings"
Rename "$INSTDIR\Data\settings\InkscapePortableSettings.ini" "$INSTDIR\Data\_settings\InkscapePortableSettings.ini"
RMDir /r "$INSTDIR\Data\settings"
Rename "$INSTDIR\Data\settings" "$INSTDIR\Data\_settings"
${EndIf}
!macroend