|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
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 |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 923
|
SetOutPath "$INSTDIR\reic"
ExecShell open "$INSTDIR\reic\refresh.cmd" Or hide the window like this: SetOutPath "$INSTDIR\reic" ExecShell open "$INSTDIR\reic\refresh.cmd" "" SW_HIDE "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|