Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:36:27+00:00 2026-06-17T15:36:27+00:00

I want to run a batch before i compile the NSIS script. I found

  • 0

I want to run a batch before i compile the NSIS script.

I found execWait. This start the batch file while the installation of my application.

I also tried !execute ‘batch.bat’ but then i get an error while compiling.

This is the content of my batch file:

@echo off
@type file.txt > destination.txt
@echo. >> destination.txt
@svnversion.exe >> destination.txt

1. Update

This is what i put in my nsi file but it doesn’t work.

!tempfile BAT
!appendfile "${BAT}.cmd" "@echo off$\r$\n"
!appendfile "${BAT}.cmd" "@type file.txt > destination.txt$\r$\n"
!appendfile "${BAT}.cmd" "@echo. >> destination.txt$\r$\n"
!appendfile "${BAT}.cmd" "@svnversion.exe >> destination.txt$\r$\n"
!system '"${BAT}.cmd"'
!delfile "${BAT}.cmd"
!undef BAT

The Error is “Cant’t open output file” “Error – aborting creation process”

Do i something wrong in the sourcecode?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:36:28+00:00Added an answer on June 17, 2026 at 3:36 pm

    Try !system.

    You can even create the batch file in the .nsi:

    !tempfile BAT
    !appendfile "${BAT}.cmd" "@echo off$\r$\n"
    !appendfile "${BAT}.cmd" "@echo Hello$\r$\n"
    !system '"${BAT}.cmd"'
    !delfile "${BAT}.cmd"
    !undef BAT
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run a batch script every time before starting program for debugging.
In my Java application, I want to run a batch file that calls scons
I found the bat file from here: http://www.dostips.com/DtCodeBatchFiles.php#Batch.FindAndReplace I want to run another command
I am trying to run a batch file right before the installation begins, Just
I want to run a batch file, which I do via the following: <CustomAction
I want to run this as a batch rather than through the command line:
I want to run a batch script from within my JFace wizard, and even
I'm having a text file and I want to run a batch file which
Currently I want to run a batch file that fires the command git log
I want my batch file to only run elevated. If not elevated, provide an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.