ViperInc
30th October 2001 07:02 UTC
Runnig files
yo..
um having trouble running a file under the path were the installer is located
i want to run a .dun file from the location of the installer
the code is
ExecShell "open" "Windows XP\ECKnet.dun"
only thing is it wont run
i think its because the execwait needs a full path were the
execshell doesnt. but i can only use the execshell command to run the file.
anyone hav any idea???
DuaneJeffers
30th October 2001 17:27 UTC
You can't just specify a folder. The "Windows XP" folder you mentioned could be in C:\program files\my app\myappplugins\Windows XP or it could be C:\Windows XP. You need to specify an actual path. Be it $INSTDIR or $SYSDIR. You have to have an actual path. So try this:
ExecShell "open" "$INSTDIR\Windows XP\ECKnet.dun"
Try that.
-Duane
ViperInc
31st October 2001 05:45 UTC
i know that...
but these will be on a cd, and therfor with different cd-rom letters, i can make it a constant...
but i could copy all the files accross, then run them from there...
hmm...
rainwater
31st October 2001 15:26 UTC
Are these files that are in your setup or what? If they are in your setup, you should extract them to the temp directory then execute them.
DuaneJeffers
31st October 2001 18:20 UTC
Well, if it is on a CD-ROM, try this:
ExecShell "open" "$EXEDIR\Windows XP\ECKnet.dun"
Or if you want to place it on the Hard Drive, Try:
CopyFiles /SILENT "$EXEDIR\Windows XP\ECKnet.dun" "$WINDIR\AnyFolder\ECKnet.dun"
ExecShell "open" "$WINDIR\AnyFolder\ECKnet.dun"
Now, keep in mind that the $WINDIR variable and the Folder "AnyFolder" can be changed as well.
-Duane
ViperInc
1st November 2001 00:45 UTC
yeah,
i've decided to copy it to a diretory, as i hav to make some changes to the.dun file befour installation.
thanks for all ya help...