Archive: How to prompt for multiple file destinations...


How to prompt for multiple file destinations...
I am writing an install that will install files to various directories based on the users preferences. Some could be installed to the 'C:\program files\app' directory, others to '\\server\c\xml' and others to a mapped network drive 'g:\shared\users\me\app'. Under certain circumstances, files could be spread to 8 different folders that will be logged in the registry by the installer.

My problem is I'm having trouble getting the NSIS to prompt for more than just the default install directory. I've tried to save the $INSTDIR to a temp file and re-promtp but I don't have access to the StrCpy function outside of a section or Function.

I'm probably missing something pretty simple, but this is my first day with NSIS. I have been using Installshield Developer 7 and am VERY VERY disappointed with the number and severity of bugs in the application.

Thanks in advance,

beez


Use InstallOptions. You can find the documentation in the Contrib\InstallOptions directory.


Thanks for the hlep... I have another quesiton...
I have it so it will prompt for the additional directories using the InstallOptions as you have stated above. Thanks for your help!!

I have another question, is there any way to have the application pass the $INSTDIR and any other variables to the form? Do I need to have have application automatically insert or update a line in the ini file?

Thanks,

Beez


You will, like you said, have to update the INI file. To do so use WriteINIStr.


I'm trudging along
Thanks for the help again! :)

I have yet another question. This one involves displaying multiple pages. I have my license agreement, then my first promp for directories. I would like to have two more directory prompts to appear when the user presses the next button. However, after I display the first prompt for directories and press next, the application installs, then asks the second prompt, but never the third.

I'm using the following code:

[edited by kichik script attached below]

Any ideas as to what I'm doing wrong?

Thanks,

Beez


I don't see ConfigureFunctions in your scripts so I can't quite tell why it doesn't work. You can use MultIni4 to show more than one dialog with ease.

Next time please attach large scripts.


how do the screens work
Thanks Kichik for the help. I have another problem. How do the screens work? The way I want it to work is have the license agreement, then my first directory, then second directory, then third group of directories, then install. Using the Multini4 macro I'm passing 01ABC345, where 0 is before the screens from what I read, 1 is the license agreement, ABC are my screens and then I'm lost. I want the program to install when the user leaves the C screen but I'm not able to get this to work. I've played around with the different screen and the best I can get is another screen after the C screen that looks like the license agreement without the license txt but with the I ACCEPT button on the bottom right corner. When I press this button it installs.

Sorry for all the questions, but your help is GREATLY appreciated.

Thanks,

beez


You forgot page number 2. You passed 01ABC345 instead of 01ABC2345.


Stanks again!!!
OOOPS! :igor:

I had 01ABCD345... When I changed it to 01ABC2345 as you suggested it worked like a charm!

Thanks!!!!!!!

Beez


Great, glad I could help :D