You are here

Some NSIS help

10 posts / 0 new
Last post
TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2006-12-14 17:24
Some NSIS help

since I haven't done NSIS in some time now, i was wondering which app launcher should i base a Nethack portable launcher off. it leaves a reg key, and has some setting files that need to be in the Nethack app directory for nethack to read them. any ideas?

David Dixon II
David Dixon II's picture
Offline
Last seen: 2 years 2 months ago
Developer
Joined: 2007-06-11 22:54
.

7Zip Portable Launcher

Na na na, come on!

BrianAll
Offline
Last seen: 5 years 10 months ago
Joined: 2008-02-13 13:44
That is...

Yes, use the 7-zip Portable launcher as an example for branches like HKCU, but for the HKLM branch, to write, you need special administrator priveledges. If you have a key(s) in HKLM, the Eraser Portable launcher is a better example.
If you use the 7-zip method on HKLM keys your launcher will not work on accounts with lowered priveledges.

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2006-12-14 17:24
the reg key is saved in

the reg key is saved in HKCU, but the 7zip portable launcher doesn't have a need to move any files, but nethack has some config files.

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
In that case

you'll want to integrate the Sumatra PDF launcher w/ the 7z launcher.

Insert original signature here with Greasemonkey Script.

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2006-12-14 17:24
Just one more thing: in

Just one more thing: in order to move the save games, I need to move *.NetHack-save-game to the data directory, but NSIS doesn;t want to move with a wildcard. any ideas?

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
NSIS

supports wildcards!
Try a Copy and Delete:

CopyFiles /SILENT "$PROGRAMDIRECTORY\*.nethack" "$SETTINGSDIRECTORY"
Delete "$PROGRAMDIRECTORY\*.nethack"

Insert original signature here with Greasemonkey Script.

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Rename?

Why not use renaming as it's build-in to Windows, and doesn't require you to delete the file either...

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2006-12-14 17:24
thanks for that. NetHack

thanks for that. NetHack portable might be up by saturday. maybe.

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
Cool.

(Just a note: It's best for you to reply instead of add comments. Adding a comment is for direct response to the Original topic only.

Insert original signature here with Greasemonkey Script.

Log in or register to post comments