Re: [NF] How do I make a program name generally executable?

Author: Ed Leafe

Posted: 2007-11-12 at 12:12:06

On Nov 12, 2007, at 11:20 AM, Chris Davis wrote:

> Erm something like this in your inno script

>

> [Code]

> procedure DoPostInstall();

>

> var

> ResultCode: Integer;

> begin

> Exec(ExpandConstant('path'), '%path%;c:\myapppath', '', SW_HIDE,

> ewWaitUntilTerminated, ResultCode);

>

> end;

What does this 'Exec' function do? Does it add it permanently, or

just for the current session?

> procedure CurStepChanged(CurStep: TSetupStep);

> begin

> if CurStep = ssPostInstall then begin

> DoPostInstall();

> end;

Do you know how to make this conditional? I want to be able to

either ask the user if they want to have their path modified, or

create a batch file that will do that for them.

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

©2007 Ed Leafe