This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Dynamic Registry Entry / Folders
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 15, 2010
12:03 PM
Dynamic Registry Entry / Folders
With multi user environments, how do you go about having dynamic directory paths in your registry and creating folders based on the user.
Eample Registry:
Key: DefaultDir
Value: C:\Users\Bob.HomePC\Documents\NewApplciation
The Documents Folder is not a static path, but is off of the current user.
How do you actully create that folder and put sample files into it?
Thanks in adavance
JJ
Eample Registry:
Key: DefaultDir
Value: C:\Users\Bob.HomePC\Documents\NewApplciation
The Documents Folder is not a static path, but is off of the current user.
How do you actully create that folder and put sample files into it?
Thanks in adavance
JJ
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 15, 2010
03:52 PM
Hi JJ,
You will want to rely on Windows Installer system folder properties:
http://msdn.microsoft.com/en-us/library/aa370905(v=VS.85).aspx#system_folder_properties
For example, you can use the predefined folder location PersonalFolder, or PersonalFolder property to refer to the current user's Documents folder.
You can also reference environment variables in a MSI package if necessary:
[%environmentvariable]
Reference:
Formatted
http://msdn.microsoft.com/en-us/library/aa368609(v=VS.85).aspx
-Ajay
You will want to rely on Windows Installer system folder properties:
http://msdn.microsoft.com/en-us/library/aa370905(v=VS.85).aspx#system_folder_properties
For example, you can use the predefined folder location PersonalFolder, or PersonalFolder property to refer to the current user's Documents folder.
You can also reference environment variables in a MSI package if necessary:
[%environmentvariable]
Reference:
Formatted
http://msdn.microsoft.com/en-us/library/aa368609(v=VS.85).aspx
-Ajay
