o_owd
15th May 2003 14:49 UTC
"ExecWait" "problem" " "
hello !
i am using in my inst. program the ExecWait command - i have to install MDAC. But i must execute this command :
mdac_type.exe /Q /C:"setup /QN1"
so my command should look like this:
ExecWait "$INSTDIR\mdac_type.exe /Q /C:"setup /QN1"".
but of course it does not work because the quotes.
have any ideas how to do this ? thanks.
PS: i earched the forum for this problem and found a lot of posts but did not understand a thing... :igor:
thanks again.
Joel
15th May 2003 15:51 UTC
Do you need the quotes.
Did you try it but without the quotes.
ExecWait "$INSTDIR\mdac_type.exe /Q /C:setup /QN1".
[edit]
Just remember:
If you use this:
MessageBox MB_OK "$\"I'm between quotes$\""
;the $\" is for Nsis create the "" in runtime, so:
ExecWait "$INSTDIR\mdac_type.exe /Q /C:$\"setup /QN1$\"".
:D
[/edit]
o_owd
15th May 2003 16:45 UTC
!!! YES !!!
Thanks man !
Really, thanks a lot ! i am trying this for a few days... finally.
God, i love this program...
Joel
15th May 2003 17:11 UTC
Glad It works :)
Just for a record, wich code did you use?
1. ExecWait "$INSTDIR\mdac_type.exe /Q /C:setup /QN1".
2. ExecWait "$INSTDIR\mdac_type.exe /Q /C:$\"setup /QN1$\"".
o_owd
15th May 2003 17:18 UTC
i used :
<< ExecWait "$INSTDIR\mdac_type.exe /Q /C:$\"setup /QN1$\"" >>
the first one i tried before and did not worked. the last part needed to be between quotes.
i was in the end a personal thing to do this. and to know for the future, because i managed to not use this line (before i got your answer): i unpacked manualy "mdac_typ.exe", i included the content in the package (NSIS) and run << ExecWait "setup /QN1" >>.
thanks again. it is the 3rd time i request help and i get it...
Sunjammer
15th May 2003 19:06 UTC
Would ExecWait '$INSTDIR\mdac_type.exe /Q /C:"setup /QN1"' work?
o_owd
16th May 2003 07:43 UTC
i used:
ExecWait "$INSTDIR\mdac_typ.exe /Q /C:$\"setup /QN1$\"".
but (after testing) this one works to:
ExecWait '$INSTDIR\mdac_type.exe /Q /C:"setup /QN1"'.
thanks.
I have another question (quotes again):
i have to make a shortcut like this :
CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE_VARIABLE}\mylink.lnk" "$SYSDIR\rundll32.exe myfile.dll,Configure".
the shortcut is created correctly. but !, if i look in the prpreties of the link (after installing) at the Shortcut Tab at Target i have the correct path but with quotes, like this:
<< "C:\WINDOWS\rundll32.exe myfile.dll,Configure" >> and the shortcut does not function. if i delete the quotes it function correctly.
sorry for my bad english. have any ideas how to do this ?
thanks.
o_owd
16th May 2003 08:20 UTC
done. this is the code i used:
CreateShortCut "$DESKTOP\test.lnk" "$SYSDIR\rundll32.exe" myfile.dll,Configure