Talk:UnTGZ plug-in

From NSIS Wiki
(Redirected from Talk:UnTGZ)
Jump to navigationJump to search

My antivirus, Kaspersky thinks this is a trojan. Anyone else getting issues like this?

It should be a false positive; I'm running Norton Antivirus and have a firewall + try to keep Windows patched, so my system is hopefully clean -- the full source is there if you want to compile yourself and verify [the free MS compiler toolkit should work to build it]. Which version? Jeremy


darklogic mirrors appear to be down `71.163.165.64 10:11, 12 May 2007 (PDT) Domain name registration lapsed, now at fdos.org

Error after recompile

How do you compile it Unicode ? If I try to recompile on MSVC9 (Visual 2008) without Unicode charset, it corrupts the command line (certainly bad character interpretation). If I set the Unicode flag for compilation, I have errors like :

Error 1 error C2664: '_T2A' : cannot convert parameter 1 from 'TCHAR [1024]' to 'unsigned short *' c:\program files\unsis\plugins\untgz\untgz.cpp 288

I'll try some cast... But I think... is this plugin still supported ? The ID was good, although the source code is CPP only by the name...

EDIT : fixed with changing signature to

char * _T2A(void *str);

and casting (because of unsupported TCHAR[] to unsigned short* cast)

Submit diff for progress bar

This is an HG (mercurial) diff :

http://pastebin.com/ZrSGG72D

Wrong example in doc

The following check is wrong, it should be $R0 instead of $0, I had to read the code on this Github mirror to discover why my script always showed the failure MessageBox, even on success.

Unzip $TEMP\$FILENAME into installation directory
; Unzip $TEMP\$FILENAME into installation directory
untgz::extract "-j" "-d" "$INSTDIR" "$TEMP\$FILENAME"
StrCmp $0 "success" +4
	DetailPrint "  Failed to extract ${DICT_FILENAME}"
	MessageBox MB_OK|MB_ICONEXCLAMATION|MB_DEFBUTTON1 "  Failed to extract $FILENAME"
	Abort
 
; Delete temporary files
Delete "$TEMP\$FILENAME"

This is now corrected in the wiki page (diff).
-- Bugmenot (talk) 15:25, 26 January 2016 (UTC)