Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ${SegmentFile}
- Var PAL:CustomFirstRun
- ${SegmentPrePrimary}
- ReadINIStr $0 "$EXEDIR\Data\settings\PicPickPortableSettings.ini" "FirstRun" "Done"
- ${If} $0 != true
- ClearErrors
- MessageBox MB_ICONINFORMATION|MB_OK "FOR PERSONAL(HOME) USE ONLY$\r$\n$\r$\nThis version is provided as freeware for only personal use. In this case, you are granted the right to use this program free of charge. Otherwise, you need to pay for a license for commercial use."
- StrCpy $PAL:CustomFirstRunDone false
- ${ElseIf} $0 == true
- ReadINIStr $1 "EXEDIR\App\AppInfo\appinfo.ini" "Version" "PackageVersion"
- ${AndIf} $1 != "3.2.7.0" ; NOTE: THIS VALUE MUST BE ADJUSTED EVERY TIME THE APP IS UPDATED - GC
- StrCpy $PAL:CustomFirstRunDone false
- ${Else}
- StrCpy $PAL:CustomFirstRunDone true
- ${EndIf}
- !macroend
- ${SegmentPreExec}
- StrCmp $PAL:CustomFirstRunDone "true" +2 0
- WriteINIStr "$EXEDIR\App\picpick\picpick.ini" "Setting" "FirstRun" "3270" ; NOTE: THIS VALUE MUST BE ADJUSTED EVERY TIME THE APP IS UPDATED. - GC
- !macroend
- ${SegmentPost}
- StrCmp $PAL:CustomFirstRunDone "true" +2 0
- WriteINIStr "$EXEDIR\Data\settings\PicPickPortableSettings.ini" "FirstRun" "Done" "true"
- !macroend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement