Archive: File in Function


File in Function
Err... I have a function that "pops" a filename. Now, I want to use: "File /oname=$R1 $R2" but it keeps telling me that $R" is not a valid file name. Basically I want to have the filename modified to remove the "../" by it's real names on runtime. I wrote the function, it works like: Push "C:\gaga\..\gugu"; Call BlahBlah; Pop $R1; (I can't press return here in this window - must be a bug in HM NIS Edit).


How should the installer know what files to include if the filename is a variable? That's impossible.

You should use a macro.