Archive: asking users for information


asking users for information
Hi, I'm looking into using this program and need to know if there's a way of ask the user for information, for example, what's their username. My ultimate goal is to use this information to populate an ini file.

Thanks.


The only current answer to this is "Make your own." NSIS provides a nice framework to load files, make registry edits and put it all in one small package that is easy to create. If you want more than that, then add it yourself. I had this very same question and currently use a Perl script to meet the needs. If I knew VB, then more than likely I would have used that so I would have a nice front end. It isn't Install Shield, but then, you don't have to pay $6k for it either.


hmmm
Thanks, I'm still pretty uncomfortable with this installer still so I'll hold off until I at least make one install.

Any chance I can look at your code? Did you make a subroutine within the script file? Asking for that information? How does it look when a person runs the install?


I use the ExecWait call:
ExecWait '"getUserInfo.exe" "$INSTDIR\config.ini" "$0" "$1"'

and then delete the program afterwards. $0 and $1 are registry settings that got copied into those variables earlier and the config.ini is the file that needs to be updated by the Perl script that was turned into an exe. It pops up a command prompt type window and asks for other information to put into the config.ini file and then exits. If everything went ok then the installer is done.