Archive: Alternate Directory page (dirpage)


Alternate Directory page (dirpage)
I have created a plug-in which will show an embedded directory tree-view browser instead of a popup one.

Download 7-zip archive here:
dirpage.7z (59.37 Kb)

This style of directory page should have been an integrated feature in NSIS.


Oooh this will be very handy, thanks!

Edit: Will you be putting these plugins on the Wiki too?

-Stu


I don't know so much about the new Wiki system yet. I know you must use some special text based syntax to format your pages and so on, but I think you will need to guide me on how to create a new page. I have currenlty just been typing in a "new" URL and added content, but it does not show up in any of the categories. How does one move a page into a category?


Put this anywhere in the wiki page (preferably at the bottom):

[[Category:CatTitle]]


Where CatTitle is the category page. If this is used more than once to link to the same category page, only the first is considered.

I just looked at other people's pages first (you can choose to edit them).

-Stu


I'm using the exact code in the readme and I get an error saying "Dir Page error: Install directory paramater not specified".

Edit: The actual example scripts seem to work though...

-Stu


BS in Readme
The readme example may seem to be broken, but use the examples from now on. I said this was old code and I can't promise everything to be working. I will try to make the Wiki pages now. Thanks for the tip deguix!!

I really hope someone else picks up on this project. Finish what I left off. I don't have time or the skills to do it myself.

EDIT: Wikie page up
http://nsis.sourceforge.net/wiki/NxS_Alt_dir_page


HI Experts!

I am very new to this, so please excuse my newbie question. I hope I am posting in the right place.

My installer needs to collect a folder for settings (defaulting to $LOCALAPPDATA) and documents (defaulting to $DOCUMENTS).

For this I am using the excellent DirPage plugin. Here is the function for documents:

Function onDocsPageShow
!insertmacro MUI_HEADER_TEXT "Documents Folder" "$(^Name) documents folder"
InitPluginsDir ; Initialize $PLUGINSDIR.
; Now show the page
dirpage::show /noicon /text "Select the location for your documents" "$DOCUMENTS"
Pop $R0 ; Get result
StrCmp $R0 "success" ok
StrCmp $R0 "cancel" cancel
MessageBox MB_OK "Documents Page error: $R0"
cancel:
Return
ok:
Pop $USER_DOCS
FunctionEnd


This works great on XP, but I've just tested it on Win98SE with IE6 and I get a message box saying "Documents Page error: /noicon" removing /noicon just makes it report "Documents Page error: /text"

Am I doing something wrong or does this plugin not support Win98? If not, is there a better/alternative way to achieve what I am after?

Many thanks for any help.