Talk:Developer Center: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
Line 27: Line 27:
i am creating a new installer with the help of nullsoft installer and i have required some help of make a auto updater.......and  which step to me follow in nullsoft scriptable install system.......
i am creating a new installer with the help of nullsoft installer and i have required some help of make a auto updater.......and  which step to me follow in nullsoft scriptable install system.......
:Use NSISdl, InetLoad or InetC to get files of the internet and the [[Community|forum]] for questions.--[[User:Kichik|kichik]] 11:07, 18 June 2007 (PDT)
:Use NSISdl, InetLoad or InetC to get files of the internet and the [[Community|forum]] for questions.--[[User:Kichik|kichik]] 11:07, 18 June 2007 (PDT)
GetParameters
; input, none
; output, top of stack (replaces, with e.g. whatever)
; modifies no other variables.
Function GetParameters
  Push $R0
  Push $R1
  Push $R2
  Push $R3
  StrCpy $R2 1
  StrLen $R3 $CMDLINE
  ;Check for quote or space
  StrCpy $R0 $CMDLINE $R2
  StrCmp $R0 '"' 0 +3
    StrCpy $R1 '"'
    Goto loop
  StrCpy $R1 " "
  loop:
    IntOp $R2 $R2 + 1
    StrCpy $R0 $CMDLINE 1 $R2
    StrCmp $R0 $R1 get
    StrCmp $R2 $R3 get
    Goto loop
  get:
    IntOp $R2 $R2 + 1
    StrCpy $R0 $CMDLINE 1 $R2
    StrCmp $R0 " " get
    StrCpy $R0 $CMDLINE "" $R2
  Pop $R3
  Pop $R2
  Pop $R1
  Exch $R0
FunctionEnd

Revision as of 13:24, 26 December 2010

Rename Function Page Titles Using Function Names

I think it would be better to change the titles of all pages that describe 1 function to be renamed as the name of that function plus the "function" word in front of it. This would make this wiki better organized for the reference in the future. It's better for the functions naming syntax be decided first. Example:

For example, the "GetDrives" function should be "EnumSystemDrives function". See the "function" attached to the page name.

Also, this could be applied to pages in other categories in the Wiki like for example:

Now I just don't know about the Category:Related Software pages. I think they could be just the program name like HM NIS Edit. -- deguix 15:47, 2 Sep 2005 (PDT)

Additional "might be useful" MediaWiki Extentions

I found 1 extension which might be useful to add:

Poll
Allows the creation of polls, making the rating of pages to become possible. It is said that this has caching problems. I think this should be implemented here if there is the correct fix for that. -- deguix 18:01, 2 Sep 2005 (PDT)

User Manual!

A prominent link to the user manual would be very helpful for new users. I spent about an hour just trying to find it! Pepkaro 09:27, 9 May 2007 (PDT)

how to make autoupdater with this installer

dear , i am creating a new installer with the help of nullsoft installer and i have required some help of make a auto updater.......and which step to me follow in nullsoft scriptable install system.......

Use NSISdl, InetLoad or InetC to get files of the internet and the forum for questions.--kichik 11:07, 18 June 2007 (PDT)

GetParameters

; input, none
; output, top of stack (replaces, with e.g. whatever)
; modifies no other variables.

Function GetParameters

 Push $R0
 Push $R1
 Push $R2
 Push $R3

 StrCpy $R2 1
 StrLen $R3 $CMDLINE

 ;Check for quote or space
 StrCpy $R0 $CMDLINE $R2
 StrCmp $R0 '"' 0 +3
   StrCpy $R1 '"'
   Goto loop
 StrCpy $R1 " "

 loop:
   IntOp $R2 $R2 + 1
   StrCpy $R0 $CMDLINE 1 $R2
   StrCmp $R0 $R1 get
   StrCmp $R2 $R3 get
   Goto loop

 get:
   IntOp $R2 $R2 + 1
   StrCpy $R0 $CMDLINE 1 $R2
   StrCmp $R0 " " get
   StrCpy $R0 $CMDLINE "" $R2

 Pop $R3
 Pop $R2
 Pop $R1
 Exch $R0

FunctionEnd