|
|
|
|
#1 |
|
Junior Member
Join Date: May 2003
Posts: 19
|
Thanks for the suggestion SJ,
I decided to do just that. This is the general idea of what I am doing: ; Function to interpolate 'special' values into strings. ; input: $R0 ; output: $R0 ; error: none set ; This will probably change so that it uses the stack. Function Interpolate Push $R1 ; Interpolate Program Files location into string nsmys::SearchAndReplace $R0 "{PGMFILES}" "$PROGRAMFILES" Pop $R1 ; Get value from SearchAndReplace StrCmp $R1 "error" +2 0 StrCpy $R0 $R1 ; replace old string with interp'ed ; Interpolate Desktop values nsmys::SearchAndReplace $R0 "{DESKTOP}" "$DESKTOP" Pop $R1 StrCmp $R1 "error" +2 0 StrCpy $R0 $R1 . . ; Do other interpolations . Pop $R1 FunctionEnd |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|