>Justme wrote:
> Dodgy,
> The problems are the normal user's permissions.
> A normal user (in NT and XP) only has "read-only" access to the "program
> files" and the windows directory, therefor it
> cannot write to any files inthere. (I assume the file system is NTFS).
> The poweruser group does have modify (write) acces to these dirs.
> The registry is probably the same problem, as a normal user only has write
> access to the "HKEY_Current_User" tree, while you are probably attempting to
> write to HKLocalMachine.
> As 98 and ME do not have NTFS (read file system security, or actually any
> security :-) you don't encounter these problems
> Try to write only to the current user registry tree, put the settings you
> want to write to the inifile also inthere.
> Otherwise, you will need to make a workarround starting a process as a
> different user with sufficient rights.
> For this you need a user and password, which will need to be the same on all
> workstations, and write a rather complicated program, which is a pain in the
> *ss.
> Another "Dirty" workarround is granting the "users" group write (modify)
> access to those directorys, but this is something you don't want to do, as
> any system administrator will probably shoot you.
> Greetings,
> JJ
> "Dodgy" <Do...@earth.planet.universe> wrote in message
> news:lapf3ug77rd6qsa838t2ujfaahdq7tg2kp@4ax.com...
> > I wonder if anyone can help me with this...
> > I have an app, which works perfectly under 95/98 and ME.
> > It works fine under 2000 and XP, but only is the user has admin level
> > access. I haven't been able to try it with NT4 yet.
> > If they are a normal user I get two problems.
> > 1) My program tries to associate itself with it's own filetype. This
> > errors.
> > 2) My program tries to create/update it's ini file held in c:\program
> > files\myappdir, this errors with cannot create file.
> > If I log in as a power user, the ini file is fine, but the file
> > association is still a problem, which is daft because a power user can
> > even do this manually from the windows explorer!
> > I guess I'm doing something wrong.... Can anyone tell me how I
> > *should* associate my app with a filetype, and how it can perform the
> > heinous crime of writing an ini file into it's own folder under
> > c:\program files.
> > Many thanks,
> > Dodgy.