User talk:Afrow UK: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
Line 11: Line 11:
-- [[User:Deguix|deguix]] 09:08, 13 Jul 2005 (PDT)
-- [[User:Deguix|deguix]] 09:08, 13 Jul 2005 (PDT)
Hi there!
Hi there!
The script does not remove the uninstaller itself, shouldn't the macro ${WriteUninstaller} take into an account OUTDIR when writing to a file?
The script does not remove the uninstaller itself, shouldn't the macro ${WriteUninstaller} take into an account OUTDIR when writing to a file?<br/>
<nowiki>
<nowiki>; WriteUninstaller macro</nowiki><br/>
; WriteUninstaller macro
<nowiki>!macro WriteUninstaller Path</nowiki><br/>
!macro WriteUninstaller Path
<nowiki> WriteUninstaller "${Path}"</nowiki><br/>
WriteUninstaller "${Path}"
<nowiki> FileWrite $UninstLog "$OUTDIR\${Path}$\r$\n"</nowiki><br/>
FileWrite $UninstLog "$OUTDIR\${Path}$\r$\n"
<nowiki>!macroend</nowiki><br/>
!macroend
<nowiki>!define WriteUninstaller "!insertmacro WriteUninstaller"</nowiki>
!define WriteUninstaller "!insertmacro WriteUninstaller"
</nowiki>

Revision as of 08:53, 19 December 2007

Re: Deleting older file versions

You shouldn't use multiple names for files just because versions change. Instead, follow the two rules for the wiki on Help:Tips_&_Rules#Files. I might not be forcing it now, but it makes the wiki more organized.

"Hi deguix. After uploading a new file, how do I delete its older version uploaded earlier. I've got three versions of a plugin uploaded, and the two older ones could be deleted now. Afrow UK"

Thx. I'll delete them.

-- deguix 09:08, 13 Jul 2005 (PDT) Hi there! The script does not remove the uninstaller itself, shouldn't the macro ${WriteUninstaller} take into an account OUTDIR when writing to a file?
; WriteUninstaller macro
!macro WriteUninstaller Path
WriteUninstaller "${Path}"
FileWrite $UninstLog "$OUTDIR\${Path}$\r$\n"
!macroend
!define WriteUninstaller "!insertmacro WriteUninstaller"