You are here

I need help with something-Please Help!

8 posts / 0 new
Last post
Espreon
Espreon's picture
Offline
Last seen: 11 years 8 months ago
Joined: 2006-09-29 18:23
I need help with something-Please Help!

Yeah I am making a launcher 4 RapidSVN Portable, and it won't retain its settings, (the keys in Registry created by it are eradicated but the keys are not found in the Data folder). Also it leaves behind a folder called Subversion in Appdata, with 3 folders (all are empty)in it and 2 configuration files (they have no file extensions though).

Heres the launcher .nsi: https://downloads.sourceforge.net/armogohmasuites/RapidSVNPortable.nsi

Any help is appreciated as I am new to NSIS.

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I only took a quick look

but
in line 181, 183, 185, 192, 194 and 196 you have to change "HKU\S-1-5-21-1640585903-3496352711-3131184175-1188\" to "HKCU\"

Maybe I find the time to write the part to save the settings...

“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

Espreon
Espreon's picture
Offline
Last seen: 11 years 8 months ago
Joined: 2006-09-29 18:23
the keys in HKCU

were the ones that had the settings, your advice worked but the ones in HKU are no longer eliminated, how do I implement this while having the settings of the HKCU keys be retained. I tried many ways to reimplement it but then the settings of the HKCU keys are no longer retained. Also the keys in HCKU are left behind.

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

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Well...

HKCU=HKU\S-1-5-21-1640585903-3496352711-3131184175-1188\!!!
Its just that HKCU works on all machines whereas HKU\S-1-5-21-1640585903-3496352711-3131184175-1188\ only works on yours.
Could you post all the reg keys?
I found your last post kinda confusing...

“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

Espreon
Espreon's picture
Offline
Last seen: 11 years 8 months ago
Joined: 2006-09-29 18:23
Here you go:

Linky: http://download276.mediafire.com/ceys6dagmy9g/3yhtuyyhxyg/RapidSVN+Reg+K...

The keys in HKU don;t appear before I took your advice.

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

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
OK

Ill take a look.
Why do you check for the usertype and the RapidSVN-Portable?
I would just overwrite it and save it to a file on exit.

EDIT

Here is it:

	RegistryBackup:
		;=== Check for registry permissions
		${registry::KeyExists} "HKCU\Software\RapidSVN" $R0
		StrCmp $R0 "-1" LaunchNow
		${registry::MoveKey} "HKCU\Software\RapidSVN" 
"HKCU\Software\RapidSVN-Portable" $R0
	
	LaunchNow:	
		${registry::RestoreKey} "$SETTINGSDIRECTORY\rapid.reg" $R0
		Sleep 100
		ExecWait $EXECSTRING
		${registry::SaveKey} "HKEY_CURRENT_USER\Software\RapidSVN" 
"$SETTINGSDIRECTORY\rapid.reg" $R0
		Sleep 100
		${registry::KeyExists} "HKCU\Software\RapidSVN-Portable" $R0
		StrCmp $R0 "-1" StopSplash
		${registry::MoveKey} "HKCU\Software\RapidSVN-Portable" 
"HKCU\Software\RapidSVN" $R0
		Sleep 100
		
	StopSplash:
		RMDir /r "$TEMP\${NAME}"
		newadvsplash::stop
		${registry::Unload}
SectionEnd

You will have to remove the 3 line wraps I had to put in so it doesnt widen the page.
Thats the only part of your nsi file I changed. You have to create a $SETTINGSDIRECTORY variable pointing to /Data/settings or (if you want the option)to the settingsdirectory specified in the ini file.
And one question:
Why do you copy the whole stuff to the temp folder?

“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

Espreon
Espreon's picture
Offline
Last seen: 11 years 8 months ago
Joined: 2006-09-29 18:23
Look at John, not me...

I based the RapidSVN Portable launcher off of John's Miranda Portable launcher.

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

rab040ma
Offline
Last seen: 2 days 23 hours ago
Joined: 2007-08-27 13:35
temp folder

Why do you copy the whole stuff to the temp folder?

I notice that U3 runs everything from appdata, after copying it there ... of course all their apps are kept in compressed archives on the USB.

I have a program that writes a huge ini file, and if I leave the ini file on the USB it takes forever. If I leave the ini somewhere on the HD (then copy it) it goes much faster.

I can see that a locked down computer might not allow things to execute from the user profile or temp directory (in which case Macrovision things might not work either) ... but there might be times when having the whole thing temporarily on the HD might be good.

MC

Log in or register to post comments