Old 22nd July 2005, 08:21   #1
epicwinter
Junior Member
 
Join Date: Jul 2005
Posts: 1
Question xcopy .bat installer

Hi, I am new to using this program and programing in general.

I have created a program which I would like to compile into an exe file, but in one of the directories that will be installed has a batch file which xcopy's files from a different location and places them into the directoy that is being installed.

The hierarchy I have right now, which I am attempting to compile into an exe is as shown:
$PROGRAMFILES\Developer\Software\mods\Modified_content
code:
-Modified_Content
-Folder1
-Folder2
-Folder3
-misc.bat
-Folder4
-File1
-File2
-etc.. etc..



So my question is how would I go about and create a script to run my batch file at the end of the installation, close and delete itself when the installer has finished?

Last edited by epicwinter; 22nd July 2005 at 08:40.
epicwinter is offline   Reply With Quote
Old 22nd July 2005, 11:45   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
have a look at ExecShell
Yathosho is offline   Reply With Quote
Old 22nd July 2005, 12:11   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Batch files do not need Shell to open. A simple Exec "path\to\file.bat" will work.
Or, if you're calling it from a Section you could use nsExec::ExecToLog.

If your batch file only does an xcopy, you could just use NSIS's CopyFiles instead.

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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