Archive: $cmdline


$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...


$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.