Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10th August 2020, 11:00   #1
galtech
Junior Member
 
Join Date: Aug 2020
Posts: 8
How can I execute .cmd or .bat file in end of the installation?

Hey,

I tried many options but nothing works for me ....
I really need help with this...

I'm installing my app at: $PROGRAMFILES\myapp
And my .cmd file location is at: $INSTDIR\reic\refresh.cmd

Really appreciate if someone can help me please...


1.

Exec '"$INSTDIR\reic\refresh.cmd"'

2.

Section
SetOutPath $INSTDIR
ExpandEnvStrings $0 %COMSPEC%
nsExec::ExecToStack '"$INSTDIR\reic\refresh.cmd"'
SectionEnd

3.

Section
nsExec::Exec '"$INSTDIR\reic\refresh.cmd"'
Pop $0
SectionEnd
galtech is offline   Reply With Quote
 
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