Hi,
I am creating few users using my installer. I want to put some thing by default in every user's profile and HKEY_CURRENT_USER reg paths. How can I do that?
Thanks
To achieve this you could:How about the USERPROFILE. Again I want to add files to all the users' USERPROFILE I am creating from my installer.
If I do the above, Windows creates another directory with the name <username>.<machinename> and make it as the %USERPROFILE% for the user and never touches the directory created by the installer.To achieve this you could:
- extract the value of the [%USERPROFILE] environment variable. This would evaluate to the folder of the current user (say: c:\documents and settings\alfred)
- obtain the parent directory of the above path (this would be c:\documents and settings)
- use the usernames of the users you are creating to append them to this directory. If the username you are creating is testuser then append it to the above path, thus obtaining c:\documents and settings\testuser
- write your files here
- repeat the above steps for each user you are creating
FOLLOW US
Get the latest news in Application Packaging