lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Jun 13, 2008 at 5:18 PM, Ross Berteig <Ross@cheshireeng.com> wrote:
The classic InnoSetup trick uses a tiny exe called EditPath to do
this. It was (and may still be) widely available for download in
late 2004. A quick google didn't turn it up from a (IMHO)
"reliable" source today. I have a copy of v1.0 dated November 30,
2004 I can send you if you want it.  It was licensed "free", but
the ZIP I have didn't include the source, which was allegedly
some Pascal dialect I wouldn't have been able to recompile in any
case.

Yup, I used to use modify_path.exe and I didn't like it. I just did searches and found a ModifyPath, with source, but none of them allow for non-administrator environment changes. So.... I still have to write something. I found the source (AutoIT) for the ModifyPath executable, I can update that pretty easy. Oh well now I have options.
 
This is one of those tools that one occasionally needs (and often
needs in an installer) that is unfortunately not really available
in stock Windows. InnoSetup can create the required registry keys
directly, but it is not easy to  edit the content of an existing key.

A nice feature of EditPath is that it can delete a folder from
PATH so that uninstall can remove itself from the path, and a
later update could move the folder to the front or back as needed.

I will gladly take a copy. I will probably just write the logic in the INNO scripting. I already wrote the check to not duplicate the key twice, so I will just add the function to uninstall the keys. But I would not mind having a second solution.
 
Now if InnoSetup could just be rebuilt to use Lua as its
scripting language instead of that bizarre dialect of interpreted
Pascal it has now...

I vote for this too. :)
--
Regards,
Ryan
RJP Computing