Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 2nd November 2012, 05:42   #1
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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?
ilaiyaraja is offline   Reply With Quote
Old 2nd November 2012, 06:03   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 531
Send a message via ICQ to T.Slappy
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

Cool looking installer with custom design: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsigned.sk
Develop NSIS projects in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 2nd November 2012, 08:50   #3
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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?
ilaiyaraja is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
nsis

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