[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nsis-bugs
Subject:    [NSIS-Bugs] [ nsis-Feature Requests-2135632 ] Alternate
From:       "Web User" <www () users ! sourceforge ! net>
Date:       2008-10-14 2:20:53
Message-ID: E1KpZWn-00033P-5U () 49zxpd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Feature Requests item #2135632, was opened at 2008-09-29 08:45
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=373088&aid=2135632&group_id=22049

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: 2.0 Series
> Status: Closed
Priority: 5
Private: No
Submitted By: CPU Killer (cpukiller)
Assigned to: Nobody/Anonymous (nobody)
Summary: Alternate InstallDirRegKey that outputs to a variable

Initial Comment:
I'd like to see a function like InstallDirRegKey, but outputing to a variable. Also, \
I guess there wouldn't be an $INSTDIR fallback like InstallDirRegKey, so I guess it \
would just need to store an empty string if it can't figure out a path from the \
provided registry key.

It could be something like:
DirFromRegKey $0 HKLM Software\ACME\Thingy InstallLocation

or

DirFromRegKey $CustomVar HKLM Software\ACME\Thingy InstallLocation


----------------------------------------------------------------------

> Comment By: SourceForge Robot (sf-robot)
Date: 2008-10-14 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-09-29 10:21

Message:
ReadRegStr doesn't remove the quotes or parse the directory from the
.EXE/DLL.

I've written a comparable function in NSIS script I'll post in a file,
it's kind of a mess but it works. I'm new to NSIS scripting so there may be
a whole better way of doing this I just don't know about.

Usage:
Push "Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp"
Push "UninstallString"
Call DirFromRegKey
Pop $0
;$0 is either the folder Winamp is installed in, or an empty string

I had to hardcode HKLM in the function for some reason, pushing/popping it
or "HKLM" would always result in an error when ReadRegStr tried to use the
value.


----------------------------------------------------------------------

Comment By: Amir Szekely (kichik)
Date: 2008-09-29 10:09

Message:
How is ReadRegStr not enough?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=373088&aid=2135632&group_id=22049

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NSIS-Bugs mailing list
NSIS-Bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nsis-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic