Old 21st June 2005, 09:04   #1
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
Read register value and replace

Well I want to make a 'SectionOutPut' which first reads a register key HKCU "\Software\BioDuo" "BioDuo" "C:\Program Files\BioDuo.exe"
But it should first read that register file, and after that it should replace the "\BioDuo.exe" with "\Skin\"
And in that map NSIS should install the files. but my problem is how do I do that?
BioDuo is offline   Reply With Quote
Old 21st June 2005, 17:52   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
1. Use ReadRegStr
2. Use GetParent (from NSIS manual)
3. Append "\Skin" by using StrCpy

code:
Function .onInit
ReadRegStr $R0 HKCU "Software\BioDuo" "BioDuo"
Push $R0
Call GetParent
Pop $R0
StrCpy $INSTDIR "$R0\Skin"
FunctionEnd



-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump