WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Generate list of files and directories for uninstaller
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Instructor
Major Dude

Registered: Jul 2004
From:

Post Generate list of files and directories for uninstaller

When your installer include many files for install, it's take much time to write in uninstall section files and directories than will be deleted.

It's script to generate list of files and directories for uninstaller with command line support (/? for help)

Script used headers

Attachment: unlist.nsi
This has been downloaded 613 time(s).

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 04-14-2005 11:32 AM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

Uninstaller will remove only unmodified files


Files description:
"unListDate.nsi" - List generator (unListDate.exe) script
"Test.nsi"         - Test script
"TestFiles\*.*"  - Test script files

Scripts used headers

Attachment: unlistdate.zip
This has been downloaded 478 time(s).

__________________
my functions

Last edited by Instructor on 04-22-2005 at 08:34 PM

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 04-22-2005 06:53 PM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

"unList" v1.1
"unListDate" v1.1

Changes:
-Cosmetic improvements
-unList command line now based on unListDate

Scripts used headers

Attachment: unlist+unlistdate.zip
This has been downloaded 482 time(s).

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 05-08-2005 09:54 AM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
JackOfTrades
Junior Member

Registered: May 2005
From: Pittsbugh, PA, USA

Talking Thanks

I've come to the forums searching for answers a number of times since I started using NSIS. (Love it, btw.)

A number of those times, the answer (and often with useable script as well) has come from Instructor.

I registered just to reply to a particuarly useful post to say thanks.

Jess

Quick Link | Report this post to a moderator | IP: Logged

JackOfTrades is offline Old Post 05-19-2005 05:41 PM
Click Here to See the Profile for JackOfTrades Click here to Send JackOfTrades a Private Message Click Here to Email JackOfTrades Find more posts by JackOfTrades Add JackOfTrades to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

You are welcome

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 05-19-2005 07:21 PM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

"unList" v1.2
"unListDate" v1.2

Changes:
1. Code clean up
2. Better errors check
3. Added command line option to turn off MessageBoxes

Attachment with binaries (scripts used headers)

Attachment: unlist+unlistdate.zip
This has been downloaded 470 time(s).

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 07-21-2005 08:37 AM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

"unList" v1.3
"unListDate" v1.3

Changes:
-added file filter as command option (Patrick Graf)


P.S.
Patrick I could not send you reply on your e-mail.

Attachment: unlist+unlistdate.zip
This has been downloaded 475 time(s).

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 09-17-2005 09:43 PM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

"unList" v1.4

Changes:
-combine unList and unListDate to one script and added /DATE=[0|1] parameter (Matei "Ambient.Impact" Stanca)

Attachment: unlist.zip
This has been downloaded 460 time(s).

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 12-29-2005 09:33 PM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
guilhem.martin
Junior Member

Registered: May 2005
From: European Union

Great job

Hi Instructor,

thank you from a very satisfied user of "UnList"

BR.

Quick Link | Report this post to a moderator | IP: Logged

guilhem.martin is offline Old Post 02-10-2006 09:54 AM
Click Here to See the Profile for guilhem.martin Click here to Send guilhem.martin a Private Message Find more posts by guilhem.martin Add guilhem.martin to your buddy list Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

Greetings guilhem.martin, from a very satisfied developer of "UnList"

"unList" v1.5

Changes:
-updated to support latest version of GetOptions function

Attachment: unlist.zip
This has been downloaded 614 time(s).

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 02-10-2006 01:52 PM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
Tiemo
Guest

Registered: Not Yet
From:

Lightbulb

'GetTime' should be called using System time instead of local time. Otherwise all files will be ignored after the time has been changed to daylight saving time!

Two lines must be modified therefore:

${GetTime} '$9' 'M' $0 $1 $2 $3 $4 $5 $6

into

${GetTime} '$9' 'MS' $0 $1 $2 $3 $4 $5 $6


and

FileWrite $R4 `$PREFIX$3un.GetTime} "$UNDIR_VAR\$9" "M" $$0 $$1 $$2 $$3 $$4 $$5 $$6$\r$\n`

into

FileWrite $R4 `$PREFIX$3un.GetTime} "$UNDIR_VAR\$9" "MS" $$0 $$1 $$2 $$3 $$4 $$5 $$6$\r$\n`

Quick Link | Report this post to a moderator | IP: Logged

Old Post 04-11-2006 03:03 PM
Edit/Delete Message Reply w/Quote
Instructor
Major Dude

Registered: Jul 2004
From:

Good point

__________________
my functions

Quick Link | Report this post to a moderator | IP: Logged

Instructor is offline Old Post 04-11-2006 03:38 PM
Click Here to See the Profile for Instructor Click here to Send Instructor a Private Message Click Here to Email Instructor Visit Instructor's homepage! Find more posts by Instructor Add Instructor to your buddy list Edit/Delete Message Reply w/Quote
dbach
Member

Registered: Apr 2006
From: Somewhere in Germany

Hi Instructor.

Thank you for this very cool tool. I know some idiots who installed really some products directly into the $ProgramFiles directory. This tool keep these idiots secure on uninstalltion.

PLEASE, Could you announce this wonderful tool on WikiPage of NSIS (http://nsis.sourceforge.net/Category:Related_Software)? Thank you very very much. :-)

__________________
With best regards,
Denis Bach

Quick Link | Report this post to a moderator | IP: Logged

dbach is offline Old Post 05-02-2006 03:34 PM
Click Here to See the Profile for dbach Click here to Send dbach a Private Message Visit dbach's homepage! Find more posts by dbach Add dbach to your buddy list Edit/Delete Message Reply w/Quote
eric0000
Junior Member

Registered: May 2006
From:

Hello

For me this script occasionally neglects to uninstall a file, even though the file has not been modified. The problem occurs because two different values are returned for the file's timestamp.

When unList.exe is run, the line

${GetTime} '$9' 'MS' $0 $1 $2 $3 $4 $5 $6

returns one value for the file's timestamp.

unList.exe then autogenerates the line e.g.

${un.GetTime} "$INSTDIR\Workbooks\Math\primeNumbers.xls" "MS" $0 $1 $2 $3 $4 $5 $6

which runs as part of my uninstaller but when that line runs it returns a timestamp one second into the future, causing the subsequent test

StrCmp "$0/$1/$2-$4:$5:$6" "27/04/2006-15:02:08" 0 +3

to return false.

A quick fix is to exclude seconds from the comparison e.g. in unList.nsi change line

FileWrite $R4 `$PREFIXStrCmp "$$0/$$1/$$2-$$4:$$5:$$6" "$0/$1/$2-$4:$5:$6" 0 +3$\r$\n`

to

FileWrite $R4 `$PREFIXStrCmp "$$0/$$1/$$2-$$4:$$5" "$0/$1/$2-$4:$5" 0 +3$\r$\n`

Regards,
Eric

Quick Link | Report this post to a moderator | IP: Logged

eric0000 is offline Old Post 05-08-2006 01:49 PM
Click Here to See the Profile for eric0000 Click here to Send eric0000 a Private Message Find more posts by eric0000 Add eric0000 to your buddy list Edit/Delete Message Reply w/Quote
pospec
Senior Member

Registered: Jun 2007
From: Otrokovice, Czech Republic

Hi Instructor!

I have noticed that if I ask unList to create log for empty directory then it:
1) Delete log file, that should be created
2) Doesn't create log file

Is it intension? If it is, then I have another question: Why it doesn't create empty log?

__________________
My new location

Quick Link | Report this post to a moderator | IP: Logged

pospec is offline Old Post 06-07-2008 09:25 AM
Click Here to See the Profile for pospec Click here to Send pospec a Private Message Visit pospec's homepage! Find more posts by pospec Add pospec to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:22 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Generate list of files and directories for uninstaller
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON