Old 6th October 2011, 16:03   #1
asees
Junior Member
 
Join Date: Oct 2011
Posts: 1
Exclamation How to compare a string

Hello all,

I am new to NSIS forum. I am impressed with NSIS so i am trying to develop some application for my work through NSIS.I need some clarification.
I am using NSIS 2.0

Scenario:
While performing installation, i need to read a version value from a address.txt file which is already availabe in my system (ex: 8.0.50727.6195).
This version value exists inbetween in the sixth line of address.txt file.
For example the 6 line looks like (<assemblyIdentity type="win32" name="Microsoft.VC80.DebugCRT" version="8.0.50727.6195" processorArchitecture="x86" ).
After reading i need to compare the same value which is availabe as a part of my installation. If both are same then i need to proceed with the installation or else i need to quit the installation.

Questions:
1. How can i compare the version value from the address.txt file and the txt file available as a part of installation
2. How to read a version value from middle of the sixth line
asees is offline   Reply With Quote
Old 6th October 2011, 19:54   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
1: VersionCompare http://nsis.sourceforge.net/Docs/AppendixE.html#E.3.16
2: WordFind probably. http://nsis.sourceforge.net/Docs/AppendixE.html#E.3.16
MSG 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