Skip to content
⌘ NSIS Forum Archive

Runnig files

6 posts

ViperInc#

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#
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#
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#
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#
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#
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...