You are here

Something very weird is happening with my launcher-Please Help/Look at the problem!

3 posts / 0 new
Last post
Espreon
Espreon's picture
Offline
Last seen: 11 years 7 months ago
Joined: 2006-09-29 18:23
Something very weird is happening with my launcher-Please Help/Look at the problem!

Ok, when I use my Regshot Portable on my HDD the settings are retained. But when used on my thumbdrive they are not retained strange huh? I even downloaded it again onto my hdd and installed it to my HDD and TD and the settings are retained on my hdd (when I used it on my hdd) but they are not retained on my td (when used on my td).

Link: https://downloads.sourceforge.net/armogohmasuites/RegshotPortable-1.81.p...

Please download it and tell me if you are having the same problem.

Also here the .nsi file: https://downloads.sourceforge.net/armogohmasuites/RegshotPortable.nsi

It is based on John's Mines-Perfect Portable launcher. Mines-Perfect uses an .ini for its settings and the settings are retained on a td. but why not 4 my Regshot Portable (it also uses an .ini for its settings).

Also everything is pointed to its correct places in the .nsi file.

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

Try adjusting the paths in the configuration file. Post the whole file here in PRE tags so we can check. I'll cut out any crap.
----
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: 11 years 7 months ago
Joined: 2006-09-29 18:23
Here u go
;Copyright (C) 2004-2007 John T. Haller

;Website: http://armogohmasuies.sf.net

;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 "Regshot Portable"
!define FRIENDLYNAME "Regshot Portable"
!define APP "Regshot"
!define VER "1.3.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 0 CheckINI TheEnd
	
	CheckINI:
		;=== Find the INI file, if there is one
		IfFileExists "$EXEDIR\RegshotPortable.ini" ""

		;=== Read the parameters from the INI file
		ReadINIStr $0 "$EXEDIR\RegshotPortable.ini" "RegshotPortable" "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\regshot\regshot.ini` LaunchNow
                IfFileExists `$EXEDIR\Data\settings\regshot.ini` MoveSettings
		IfFileExists `$EXEDIR\Data\settings\*.*` MoveSettings
			CreateDirectory `$EXEDIR\Data\settings`

	MoveSettings:
		Rename `$EXEDIR\Data\settings\regshot.ini` `$EXEDIR\App\regshot\regshot.ini`

	LaunchNow:
		SetOutPath `$EXEDIR\App\regshot`
		ExecWait `$EXEDIR\App\regshot\regshot.exe`

		;=== Move settings back
                Delete `$EXEDIR\Data\settings\regshot.ini`
                Rename "$EXEDIR\App\regshot\regshot.ini" "$EXEDIR\Data\settings\regshot.ini"

	TheEnd:
		newadvsplash::wait
SectionEnd

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