Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AdjustKeys:
- IfFileExists "$SETTINGSDIRECTORY\${NAME}Settings.ini" "" LaunchNow
- ReadINIStr $LASTDRIVEROOT "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastDrive"
- StrCmp $LASTDRIVEROOT "$DRIVEROOT" LaunchNow
- ${registry::Read} "HKCU\Software\${APPNAME}\FreeMat v4.0\mainwindow" "cdlist" $0 $1
- ${If} $0 != ""
- ${WordReplace} $0 "$LASTDRIVEROOT" "$DRIVEROOT" "+" $2
- ${registry::Write} "HKCU\Software\${APPNAME}\FreeMat v4.0\mainwindow" "cdlist" $2 $1 $R0
- Sleep 100
- ${EndIf}
- ${registry::Read} "HKCU\Software\${APPNAME}\FreeMat v4.0\editor" "recentFileList" $0 $1
- ${If} $0 != ""
- ${WordReplace} $0 "$LASTDRIVEROOT" "$DRIVEROOT" "+" $2
- ${registry::Write} "HKCU\Software\${APPNAME}\FreeMat v4.0\editor" "recentFileList" $2 $1 $R1
- Sleep 100
- ${EndIf}
- ${registry::Read} "HKCU\Software\${APPNAME}\FreeMat v4.0\editor" "last_session_list" $0 $1
- ${If} $0 != ""
- ${WordReplace} $0 "$LASTDRIVEROOT" "$DRIVEROOT" "+" $2
- ${registry::Write} "HKCU\Software\${APPNAME}\FreeMat v4.0\editor" "last_session_list" $2 $1 $R2
- Sleep 100
- ${EndIf}
- ${registry::Read} "HKCU\Software\${APPNAME}\FreeMat v4.0\interpreter" "path" $0 $1
- ${If} $0 != ""
- ${WordReplace} $0 "$LASTDRIVEROOT" "$DRIVEROOT" "+" $2
- ${registry::Write} "HKCU\Software\${APPNAME}\FreeMat v4.0\interpreter" "path" $2 $1 $R3
- Sleep 100
- ${EndIf}
- ${registry::Read} "HKCU\Software\${APPNAME}\FreeMat v4.0" "root" $0 $1
- ${If} $0 != ""
- ${WordReplace} $0 "$LASTDRIVEROOT" "$DRIVEROOT" "+" $2
- ${registry::Write} "HKCU\Software\${APPNAME}\FreeMat v4.0" "root" $2 $1 $R4
- Sleep 100
- ${EndIf}
Add Comment
Please, Sign In to add comment