|
|
#1 |
|
Junior Member
Join Date: May 2005
Posts: 28
|
Need help this is confusing
Alright basically what I am trying to do is make a small updater that will download an ini file from the web and compare the version number in the ini with the ini file that is on the system and if the version number is newer then it will download the update. This is what I have:
code: The only part that seems to work is the first part that downloads new.ini, I'm a noob to NSIS so any help on this would be great. |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
See documentation, 4.9.4.13 IntCmp
val1 val2 jump_if_equal [jump_if_val1_less] [jump_if_val1_more] e.g. intCmp $1 $0 no_download no_download download Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2005
Posts: 28
|
Ugh ok I have been trying hard to figure this out but can't seem to get it, I read the documentation and changed the code which now it looks like it makes more sense and should work but sadly still not working like it should.
code: |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
val1 val2 jump_if_equal [jump_if_val1_less] [jump_if_val1_more]
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
EDIT: double post
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS Last edited by Red Wine; 26th January 2007 at 06:48. |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
1. Good idea is to get result code from stack (Pop) after every download - see NSISdl examples.
2. Use labels without $ 3. Use MessageBox for debugging-tracing. code: |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: May 2005
Posts: 28
|
Ok so it's now setup just like you posted yet it's not downloading the update.zip:
code: Could it be I have my ini files setup wrong and it's not reading them correctly? I mean I am pretty sure they are set up right: new.ini text: [File Version] Version=1.1 old.ini text: [File Version] Version=1.0 Sorry for being a complete noob at this..... |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2005
Posts: 28
|
Thanks Takhir, I will try it and see if I have some luck.
|
|
|
|
|
|
#9 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
versions are not integers
you should try E.3.16 VersionCompare Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: May 2005
Posts: 28
|
Thank you so much for helping it finally works.
|
|
|
|
|
|
#11 |
|
Junior Member
|
Will make a new thread >.<
Last edited by Rein Masamuri; 13th September 2009 at 02:50. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|