Archive: Trouble with Exec


Trouble with Exec
I have to run this command
C:\program files\capwin\wecm\setup.exe -s -f1<<a file name>>

So it is like
C:\program files\capwin\wecm\setup.exe -s -f1C:\Program files\capwin\wecm\setup.iss

I am using the following command:

Exec "C:\PROGRAM FILES\capwin\wecm\setup.exe -s -f1C:\PROGRAM FILES\capwin\wecm\setup.iss"


However this is not working at all.


Another problem I am facing is this.
This is the code snippet

InstallDir $PROGRAMFILES\CapWin
SetOutPath $INSTDIR
// this is where the file needs to be copied to
ReadRegStr $R0 HKLM "SOFTWARE\IBM\Wireless Client" "InstallPath"

CopyFiles "{ISNTDIR}\wecm\artour.ini" $R0

The above code snippet does not work,
whereas when written explicitly like this
CopyFiles "C:\PROGRAM FILES\capwin\wecm\artour.ini" "C:\PROGRAM FILES\IBM\Wireless Client\"

it works .

Any help is greatly appreciated.


Afrow UK have already answered your first question in the last thread. You need to quote the program path so Windows knows how to fine it.

As for the second question, use $INSTDIR, not {INSTDIR} nor ${INSTDIR}. $INSTDIR is a variable, not a define.


Hi Kichik,
I am using
Exec "$\"$INSTDIR\wecm\setup$\" $\" -s -f1$INSTDIR\wecm\setup.iss$\""
as pointed out by Afrow.

But whats happening is that the -s and -f1 options are not being recognized and only setup.exe is being executed.

Any ideas ?

Tilak


Try
Exec "$\"$INSTDIR\wecm\setup$\" -s $\"-f1$INSTDIR\wecm\setup.iss$\""

-Stu


And if that doesn't work either try:

Exec '"$INSTDIR\wecm\setup.exe" -s -f1"$INSTDIR\wecm\setup.iss"'

or

Exec '"$INSTDIR\wecm\setup.exe" -s -f1$INSTDIR\wecm\setup.iss'


Hello Afrow,
That does work !!!
Thanks a lot.

I am so very new to NullSoft but I have to create a real professional looking InstallShield for our product with it (probably using MUI)

I will definitely need your help as I go forward.
Do you have a email ID of your that u can share with me.

Thanks once again.
Regards
Tilak


I'm on MSN via afrowuk@tiscali.co.uk

-Stu