View Single Post
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