Archive: Is it possible to change value for bat file using nsis script?


Is it possible to change value for bat file using nsis script?
I have successfully build the nsi script using nsis plugin in my eclipse.I have bat file in my project.I have JVM_DLL,HOME_PATH two variables with default value in that bat file.I have created a Textbox and gave as default value for that JVM_DLL and HOME_PATH.If i change in text box value that should be reflected in batch file.I have tried following codes

${ConfigWrite} "$INSTDIR\batch.bat" "JVM_DLL" "=$JVM_DLL" $R0

${ConfigWrite} "$INTDIR\batch.bat" "HOME_PATH" "=$HOME_PATH" $R1

but the changed value is not reflected in batch file.How to solve this?


Check the result $var - in your case $R0 and $R1

Result:
; $var=CHANGED Value is written
; $var=DELETED Entry is deleted
; $var=ADDED Entry and Value are added
; $var=SAME Entry and Value already exist
Note:
- Error flag if file doesn't exist
- Error flag if file can't be opened


Thank you.

$R0=ADDED
$R1=ADDED

I got this message.both the values can be added but not to be replaced.original values also there and these values.now in bat file i have two values for that JVM_DLL variable.i dont know why the values can be added instead of replacement.

How to solve this?