Skip to content
⌘ NSIS Forum Archive

$cmdline

2 posts

aj kwak#

$cmdline

Hello,

After my installation there must run a service, so i thought, i do this :

!define MUI_FINISHPAGE_RUN "$CMDLINE"
!define MUI_FINISHPAGE_RUN_PARAMETERS "net start filedisk"

but nothing happens...
kichik#
$CMDLINE is the command line that was used to execute the installer, not the path to cmd.exe. To get the path to cmd.exe, use:
ReadEnvStr $0 COMSPEC
But that's not even needed as net is a program and not an internal command of cmd.exe. You can use $SYSDIR\net.exe.