Alright I am almost finished with MoinMoin Portable Beta 1 but when I launch it a second time it does not work, because the launcher is not moving the "wiki" folder in Data\settings to App\moinmoin
Here is the .nsi:
SkipSplashScreen: ;=== Check for data files IfFileExists `$EXEDIR\Data\settings\wiki\` MoveSettings IfFileExists `$EXEDIR\Data\settings\wikiconfig.py` MoveSettings IfFileExists `$EXEDIR\Data\settings\*.*` MoveSettings CreateDirectory `$EXEDIR\Data\settings` MoveSettings: Rename `$EXEDIR\Data\settings\wiki\` `$EXEDIR\App\moinmoin\` Rename `$EXEDIR\Data\settings\wikiconfig.py` `$EXEDIR\App\moinmoin\wikiconfig.py` LaunchNow: SetOutPath `$EXEDIR\App\moinmoin` ExecWait `$EXEDIR\App\moinmoin\moin.exe` ;=== Move settings back Delete `$EXEDIR\Data\settings\wikiconfig.py` Rename "$EXEDIR\App\moinmoin\wikiconfig.py" "$EXEDIR\Data\settings\wikiconfig.py" RMDir /r `$EXEDIR\Data\settings\wiki` Rename "$EXEDIR\App\moinmoin\wiki" "$EXEDIR\Data\settings\wiki"
What is the correct way of using the Rename command to move directories?
In your code and I'll help.
This line, VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive. For additional details, visit ${WEBSITE}"
_______________________________________________
Wow, I just noticed I still had a signature, that's enough of that.
" "
--
As all of ya should know Micro$oft is the Evil Empire, and Windows (a.k.a. Winblows or Windoze) is their greatest general, so please make a difference and install Linux or FreeBSD on yer Windows comp.
The pre-formatted code you posted, you screwed up the page.
_______________________________________________
Wow, I just noticed I still had a signature, that's enough of that.
Here you are moving from \settings\wiki\ to \moinmoin\ -
Here you are moving from \moinmoin\wiki\ to \settings\wiki\, but your source dir does not exist.
Also note that the Rename operation will fail if the destination file\folder exists (per NSIS documentation).