Skip to content
⌘ NSIS Forum Archive

Run exe via Command prompt

5 posts

Mohamaed#

Run exe via Command prompt

I have built an nsis installer with V2.46
I want to run an exe present in the installer via command prompt with some aruguments.
The command to be executed in cmd is " setup /qb /AcceptLicenses yes "
Is there a way to do this ?
JasonFriday13#
Use Exec or ExecWait. Also, use a full path where you can, like "$INSTDIR\setup.exe /qb /AcceptLicenses yes".
LoRd_MuldeR#
Originally Posted by JasonFriday13 View Post
Use Exec or ExecWait. Also, use a full path where you can, like "$INSTDIR\setup.exe /qb /AcceptLicenses yes".
Actually he should better be using:
ExecWait '"$INSTDIR\setup.exe" /qb /AcceptLicenses yes'
JasonFriday13#
Originally Posted by LoRd_MuldeR View Post
Actually he should better be using:
ExecWait '"$INSTDIR\setup.exe" /qb /AcceptLicenses yes'
Whoops, forgot to add extra quotes, thanks.