|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
Junior Member
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.
|
|
|
|
|
|
#3 |
|
Major Dude
|
you can do the same thing with the Exec command
![]() so you don't need to create a batch file. hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#4 |
|
Moderator
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|