Usinf a message box in the [Code] script of inno? function MessageBox(hWnd: Integer; lpText, lpCaption: String; uType: Cardinal): Integer; external '[EMAIL PROTECTED] stdcall';
(or maybe messagebox is integrated in newer inno versions?) Frédéric Steczycki > -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > De la part de Ed Leafe > Envoyé : 12 novembre 2007 18:12 > À : [EMAIL PROTECTED] > Objet : Re: [NF] How do I make a program name generally executable? > > 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 > > > > > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: http://leafe.com/mailman/listinfo/profox > OT-free version of this list: > http://leafe.com/mailman/listinfo/profoxtech > Searchable Archive: http://leafe.com/archives/search/profox > This message: http://leafe.com/archives/byMID/profox/658AFCB1-FA01- > [EMAIL PROTECTED] > ** All postings, unless explicitly stated otherwise, are the opinions > of the author, and do not constitute legal or medical advice. This > statement is added to the messages for those lawyers who are too stupid > to see the obvious. > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

