Archive: SetPath for Command Prompt


SetPath for Command Prompt
i need to set path from command prompt to execute it from the command line by passing some parameters.
someone please help me out if they have done this from NSIS installer package.

thanks in advancs

vignesh


As far as I know there is no way to do this directly with NSIS :(

But maybe this will help ;):
you create a temporary batch file (.bat) directly in your code or you add it via the Filecommander in the installer (Depends on what you want to achieve)
There you can do all the stuff you need and you only need to "ExecShell" or "ExecWait" this script.

Example for a bat File:

@echo off
pushd <the_new_path>
<My_Shell_Command> <my_command_parameters>
popd


popd & pushd are builtin Win commands. See Windows help for more Information.

The working directory can be set using SetOutPath.