+ Reply to Thread
Results 1 to 5 of 5

Thread: Users listing for a windows machine

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Users listing for a windows machine

    I would like to get a "list" of all users who can login to the machine (that I am installing my software at).

    For example: a typical list would be on a Windows machine might be:

    Administrator
    arun.shah
    kathy.bates

    This list could be seen by running Start->Run->Control->User Accounts

    Can this list be obtained in Setupbuilder? (I am using 7.1)

    Is this available in the registry?

    I know that you are supporting 7.5 currently...but would like to know if its available in 7.1 also.

    I would ultimately like to use this list and construct paths to these users' folders (using string appending by calling Handle String Operation) and do some cleanup operations there...

    Thanks for your help,
    -Arun

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Users listing for a windows machine

    Arun,

    Here is an interesting link to a TechNet article on how to list all the User Profiles on a computer:

    http://blogs.technet.com/b/heyscript...-computer.aspx

    You can use this technique in SetupBuilder to retrieve the ProfileImagePath.

    Hope this helps.

    Friedrich

  3. #3
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Users listing for a windows machine

    BTW, just a quick note: the "profile folders" might be hidden and write protected. I am not sure what you are trying to do but it is not a good idea <g>.

    Hope this helps.

    Friedrich

  4. #4

    Default Re: Users listing for a windows machine

    HI,

    The situation is as follows:

    1. Our application creates a specific folder "X" in the C:\Documents and Settings\[user_profile_name]\App_Name folder

    during its launch and uses it for caching etc.

    That means any user who launches the app would find folder X created in the above mentioned location


    2. Application will always be installed with Admin privileges, thats a guarantee.

    3. During a re-installation, I would like to dispose the folder tree App_Name\X
    from every user's profile directory who has ever used my application on this system

    4. The reason we want to dispose the folder tree in step 3 is because the old cache interferes with the cache files that will be created by the newly installed version of the application

    5. This allows the newly installed application to re-create the cache and start afresh

    6. Thats why I would like to include finding all user profiles and doing the job of deleting cache folders inside Setupbuilder

    Given the link that you have suggested, it looks easier to write a custom DLL to get this job done...a dll that reads the C:\Documents and Settings dir and deletes App_Name\X whereever it finds it...what is your opinion?

    That way I can keep my sb7 script clean and leave all the dirty work to the dll....

    please let me know your suggestions/thoughts!

    Thanks,
    -Arun

  5. #5
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Users listing for a windows machine

    Arun,

    In three words: DON'T DO THIS!

    This is not how Windows works and will definitely result in a complete support nightmare.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •