PDA

View Full Version : Trouble with Exec


tilak
1st October 2003, 19:42
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.

kichik
1st October 2003, 19:45
Afrow UK have already answered your first question in the last thread (http://forums.winamp.com/showthread.php?s=&threadid=151143). 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.

tilak
1st October 2003, 20:05
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

Afrow UK
1st October 2003, 20:07
Try
Exec "$\"$INSTDIR\wecm\setup$\" -s $\"-f1$INSTDIR\wecm\setup.iss$\""

-Stu

kichik
1st October 2003, 20:09
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'

tilak
1st October 2003, 20:11
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

Afrow UK
1st October 2003, 20:15
I'm on MSN via afrowuk@tiscali.co.uk

-Stu