Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st November 2008, 20:39   #1
bumpelwumpel
Junior Member
 
Join Date: May 2008
Location: Germany
Posts: 8
Read a List with files and use it in NSIS

Hi,


I want to write a special uninstaller. You can choose which files you want to delete. These fils are in the same folders.

So I have a list for every Section.

Example for such a list:
code:

Objects
AutoTest
grass_mix13.dds
Effects
Natural
Forest_Ground_Leafs.dds
particle_grass_green.dds
particle_green_leafs.dds
particle_green_leafs_ddn.dds



How I can use this list with NSIS. Or should i rewrite the list?
I have searched for ini reading but i found nothing that could helped me.
bumpelwumpel is offline   Reply With Quote
Old 22nd November 2008, 14:06   #2
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 644
If your list wasn't hierarchic you could use my NSISList plugin.

It would work like this:
code:
;Required include to use NSISList
!include NSISList.nsh

;Reserve the NSISList plugin
ReserveFile "${NSISDIR}\Plugins\NSISList.dll"

;Set name and output file
Name "NSISList Example Installer"
OutFile "NSISList_Example.exe"

;Show the log
ShowInstDetails show

Section
${List.Create} MyList
${List.Load} $0 MyList "$INSTDIR\somelist.txt"

[...]

${List.Unload}
SectionEnd



But the list would need to look like this:
code:
Objects\AutoTest\grass_mix13.dds
Objects\Effects\Natural\Forest_Ground_Leafs.dds
Objects\Effects\Natural\particle_grass_green.dds
Objects\Effects\Natural\particle_green_leafs.dds
Objects\Effects\Natural\particle_green_leafs_ddn.dds


My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 23rd November 2008, 17:49   #3
bumpelwumpel
Junior Member
 
Join Date: May 2008
Location: Germany
Posts: 8
Thank you

I`ll use your plugin. It works great.
bumpelwumpel is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump