You are here

Having problems making FreeMind Portable-Please Help....

6 posts / 0 new
Last post
Espreon
Espreon's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-09-29 18:23
Having problems making FreeMind Portable-Please Help....

Yeah I am trying to make FM portable but the .freemind folder left behind in the user's Docs and Settings folder is giving me a rash. FMP seems to retain its setting only once, and even at that 1st time the .freemind folder is left behind. The launcher is based off of John's Mines-Perfect Portable launcher.

So please look at the .nsi and help me fix it.

Heres the .nsi:

;Copyright (C) 2004-2007 John T. Haller

;Website: http://PortableApps.com/FileZillaPortable

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

!define NAME "FreeMindPortable"
!define FRIENDLYNAME "FreeMind Portable"
!define APP "FreeMind"
!define VER "0.8.0.0"
!define WEBSITE "Armogohmasuites.sf.net"

;=== Program Details
Name "${NAME}"
OutFile "${NAME}.exe"
Caption "${FRIENDLYNAME} | PortableApps.com"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${FRIENDLYNAME}"
VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive.  For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "Armogohmasuites"
VIAddVersionKey LegalCopyright "John T. Haller"
VIAddVersionKey FileDescription "${FRIENDLYNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${FRIENDLYNAME}"
VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${NAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""

;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

;=== Program Icon
Icon "${NAME}.ico"

Section "Main"
	;=== Check if already running
	System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${NAME}") i .r1 ?e'
	Pop $0
	StrCmp $0 CheckINI TheEnd
    
    CheckINI:
        ;=== Find the INI file, if there is one
        IfFileExists "$EXEDIR\FreeMindPortable.ini" "" ShowSplash

        ;=== Read the parameters from the INI file
        ReadINIStr $0 "$EXEDIR\FreeMindPortable.ini" "FreeMindPortable" "DisableSplashScreen"
        StrCmp $0 "true" SkipSplashScreen

    ShowSplash:
        ;=== Show the splash screen before processing the files
            InitPluginsDir
            File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"
            newadvsplash::show /NOUNLOAD 1200 100 0 -1 /L "$PLUGINSDIR\splash.jpg"
	
	SkipSplashScreen:
		;=== Check for data files
		IfFileExists `$EXEDIR\App\freemind\user.properties` LaunchNow
		IfFileExists `$EXEDIR\Data\settings\mineperf.ini` MoveSettings
		IfFileExists `$EXEDIR\Data\settings\*.*` MoveSettings
			CreateDirectory `$EXEDIR\Data\settings`

	MoveSettings:
		Rename `$EXEDIR\Data\settings\.freemind` `$PROFILE\.freemind`

	LaunchNow:
		SetOutPath `$EXEDIR\App\freemind`
		ExecWait `$EXEDIR\App\freemind\Freemind.exe`

		;=== Move settings back
		Rename "$PROFILE\.freemind" "$EXEDIR\Data\settings\.freemind"
        RMDir $PROFILE\.freemind\*.*

	TheEnd:
		newadvsplash::wait
SectionEnd
Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Are you sure

about the website? Wink
And if you dont want to overwrite the possible user settings on the local machine you have to back them up first:

  • Check if local settings are there
  • if yes back them up (copy to another location
  • if not copy portabler settings
  • run program
  • move portable settings back
  • move local settings back

If you want the folder "$PROFILE\.freemind\" to be deleted you have to change"RMDir $PROFILE\.freemind\*.*" to
RMDir $PROFILE\.freemind\*.*
RMDir $PROFILE\.freemind\
or something like that.

“I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong.” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Well,

There may be not point, since I doing it too Blum
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

Espreon
Espreon's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-09-29 18:23
Umm yes, but I bet I have cooler graphics

like splashes and installer bitmaps. Oh Please let me do this one Ryan, since I really wanna do it.

--
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.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
.

But mine's all done and ready to go! And it's the holidays! (2 weeks)
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

Espreon
Espreon's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-09-29 18:23
Well, alright! You can have this one.

" "

--
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.

Log in or register to post comments