Ed,
Malcolm provides good advice below. On the USAF's SDC (Standard
Desktop Configuration) versions 1.2 and higher, you can't write to the
C: partition, only to the user's profile if you are running under the
user's security context. If the program is installed under the local
Admin security context making appropriate changes to the ALLUSERS area
is most helpful.
These days it hard to design a single solution for what you want to
do because many large and medium size companies are going to some type
of SDC type of scheme.
v/r
//SIGNED//
Stephen S. Wolfe, YA2, DAF
6th MDG Data Services Manager
6th MDG Information System Security Officer
Comm (813) 827-9994 DSN 651-9994
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Malcolm Greene
Sent: Monday, November 12, 2007 10:05 AM
To: [email protected]
Subject: Re: [NF] How do I make a program name generally executable?
Ed,
> Next question: how can I do that programmatically? IOW, I want to give
the user the option of adding the "c:\Program Files\Some Directory\Some
Other Directory" to the path. If they say yes, how can I do that in a
batch file?
I'm not a fan of making changes to the registry and you may find that
many customer workstations are locked down where you can't make the type
of change you are considering.
As an alternative: Why not have your setup program generate a *.BAT (or
*.CMD) file with the path to your app and store this BAT/CMD file in a
writeable folder in the path. This will have the same effect as altering
the path. Note that I said writeable path. On locked down workstations,
not all folders will be updatable.
Another idea: If you're committed to updating the path via its registry
setting, use Inno Setup to create your install and have your Inno Setup
script make the appropriate changes to the path. This will be easier and
may be more reliable than trying to make changes to your path in your
code.
BTW: Looking forward to viewing your new Dabo screencast tonight.
Malcolm
[excessive quoting removed by server]
_______________________________________________
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.