Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 1st December 2004, 14:36   #1
jimpy22
Junior Member
 
Join Date: Jul 2004
Location: Guildford, UK
Posts: 23
Edit and Run Batch File

Hi, I want to use an installer to ask a user for a series of parameters, with the installer then writes into the appropriate place in a batch file. Then I want the batch file to be run.

I have searched the forums and user manual and can only find how to execute the batch file. Can anyone help me to ask the user for the paramaters and then write them into the batch file?

Thanks in anticipation.
jimpy22 is offline   Reply With Quote
Old 1st December 2004, 14:50   #2
scrose
Junior Member
 
scrose's Avatar
 
Join Date: Nov 2004
Posts: 36
You can use FileOpen, FileWrite, and FileClose to create a BAT file. As for asking the user for parameters, I suspect you'll need to use InstallOptions to create a custom page, but I haven't had much experience doing that, and someone else will likely be able to help you with that.
scrose is offline   Reply With Quote
Old 1st December 2004, 19:56   #3
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
you can do the same thing with the Exec command
so you don't need to create a batch file.
Comm@nder21 is offline   Reply With Quote
Old 1st December 2004, 21:24   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
You should be able to do everything in a batch file using NSIS commands. However, if you need the batch file for more than just the installation, then there are many text file manipulation functions on the NSIS Archive.

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK 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