Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Read register value and replace (http://forums.winamp.com/showthread.php?t=219363)

BioDuo 21st June 2005 09:04

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?

Afrow UK 21st June 2005 17:52

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


All times are GMT. The time now is 17:56.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.