Old 25th November 2011, 08:46   #1
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
JSUN with nsis

I am writing an installer using NSIS which needs to parse a block of JSON file.

PHP Code:
{
   
"apps_promo_counter"11,
   
"autofill": {
      
"negative_upload_rate"1.0,
      
"positive_upload_rate"1.0
   
},
.... 
NOCaut is offline   Reply With Quote
Old 28th November 2011, 08:09   #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
It is really great that you are writing such installer!

I am writing installer which extracts zip file

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 28th November 2011, 15:01   #3
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
i write... I want change string in the JSON file
NOCaut is offline   Reply With Quote
Old 28th November 2011, 16:08   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
It doesn't matter what you wrote. As long as you don't ask a specific question, there's nothing we can do for you.
MSG is offline   Reply With Quote
Old 29th November 2011, 07:13   #5
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
normal matter. i have file.i want change string in this file use nsis plugin or other methods. what wrong with my question?
NOCaut is offline   Reply With Quote
Old 29th November 2011, 08:19   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
The problem with your question is that you never asked it. If you want us to help you with your problem, you will have to try to sound polite. And you'll have to be clear on what you specifically need help with.

For example, something like this:
Quote:
I want to change a string in a JSON file (JavaScript Object Notation, plaintext). The string I'm looking for is, for example, "USERNAME=Foo". I want to find this string and replace it with "USERNAME=Bar". How can I achieve this?
MSG is offline   Reply With Quote
Old 30th November 2011, 06:23   #7
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
See you understand my questions. I was born and all my life leave in Ukraine. my knowledge english language not much good for say everything that I want and think,you help me?
NOCaut is offline   Reply With Quote
Old 30th November 2011, 06:44   #8
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
I'm not talking about writing in proper English. Although I admit that good English helps a lot. What I am talking about is clearly stating your SPECIFIC question. And giving all the necessary details that we need for answering that question. In your first post in this thread you did NOT ask a specific question.

If you want to replace a string in a plaintext file, you can probably use the WordReplace macro: http://nsis.sourceforge.net/Docs/AppendixE.html#E.3.8

Note that for this to work, you need to know the exact string you want to replace, and it should be unique (unless you're sure you want to replace the first hit). For case-sensitive replace, use WordReplaceS.
MSG is offline   Reply With Quote
Old 30th November 2011, 06:54   #9
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
ok thanks for help
NOCaut is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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