bambou51
1st June 2006 15:58 UTC
Problem executing a command line
I have problem executing command lines.
The following is working fine:
SetOutPath "$EXEDIR\DRIVERS\"
ClearErrors
ExecWait '"SETUP.EXE"' $0
IfErrors 0 +2
MessageBox MB_Ok "$(INSTALLATION_FAILURE)$0"
But this one with just an extra parameter failed:
SetOutPath "$EXEDIR\DRIVERS\"
ClearErrors
ExecWait '"SETUP.EXE /USB"' $0
IfErrors 0 +2
MessageBox MB_Ok "$(INSTALLATION_FAILURE)$0"
with the code 1...
any idea ?
Afrow UK
1st June 2006 16:20 UTC
ExecWait '"SETUP.EXE" /USB' $0
-Stu
bambou51
2nd June 2006 11:32 UTC
Thanks now it works.
I still have a similar problem, when creating a shortcut with parameters:
CreateShortCut "$DESKTOP\${APPNAME}.lnk" '"$Folder\Prog.exe" /config'
Shortcut is created with the following command line:
c:\myfilder\Prog.exe config
No more '/'. Do I have to escape this character and how ?
pengyou
2nd June 2006 12:14 UTC
Try this:
CreateShortCut "$DESKTOP\${APPNAME}.lnk" "$Folder\Prog.exe" "/config"
bambou51
2nd June 2006 13:12 UTC
ok last one...
!define MUI_FINISHPAGE_RUN "$FOLDER_FOLDER\Prog.exe" "/config"
doesn't work
Afrow UK
2nd June 2006 13:22 UTC
!define MUI_FINISHPAGE_RUN "$FOLDER_FOLDER\Prog.exe"
!define MUI_FINISHPAGE_RUN_PARAMETERS "/config"
It helps if you read the docs more thoroughly.
-Stu