VISTA and Power Users?

S

Superfreak3

Standard users generally cannot create/modify/start tasks. You can
create tasks programmatically from your main install using the COM
interface to the task scheduler.

http://msdn2.microsoft.com/en-us/library/aa384006.aspx


Yes, a task follows its triggers regardless of which user is logged on.
Note that a task running inside of a system account can run even if no
user is logged in (depending on your specific triggers, of course), and
will never be visible on the screen.


Yes, services are similar for what you are doing, except they require
the .exe to be created differently than a normal program (different
entry point, and it must handle messages from the service control
manager, e.g. start, stop, etc).

Services can never be visible on the screen.


You're welcome.

--
-JB
Microsoft MVP - Windows Shell/User
Windows Vista Support FAQ -http://www.jimmah.com/vista/- Hide quoted text -

- Show quoted text -

I have a few more questions about using a task or service, which
regard specific user data written during our initial installs. If a
Standard User installs (after elevating processing), information is
written to the users profile in the form of an .ini file. How would
this information be updated correctly if run via the task or service
(run as SYSTEM account)? Or, is this not really possible or easily do-
able?

The reason I ask is because, for a Standard User, our updating
mechanism is failing. During the initial install, version information
is written to that user's roaming profile area in MyApp.ini. Now,
when our update fires off, Vista prompts for Admin credentials. After
providing the credentials, the Admin's profile is searched for
the .ini. Of course, it's not there as the initial install was done
as a Standard User.

Saying this, I wonder how/if running our update installs silently
under the System, will function properly in that it looks to and
writes to the correct .ini file of the initially installing user.

Any further information GREATLY appreciated!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top