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
- :
- Re: Where to put some files...
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
‎Dec 29, 2009
09:23 AM
Where to put some files...
In the past, our application has always created a folder off of the c:\ drive called c:\marketware. This was convenient because the software was usually installed by an administrator and we set the installation as an "all users" install, so the user could easily see form letters, etc. after the installation was completed, c:\marketware\form_letters.
However, with this version, and now that we have upgraded to Installshield Professional I want to install the program files into a "Program Files" Folder, the database into a folder underneath that, But I still want the form letters, etc. to be installed in a folder easily accessable and with read-write priviledges. I was hoping to install them into a sub folder under Documents, like: \\Documents\MarketWare\Form Letters, however my problem is this: Most of the time the application is installed by an Administrator so now my question is: what is the appropriate "all users" approach to installing files into the Documents Folder? My goal is for the files to be easily marked read-write and to be easily accessible via My Computer, etc.
I would really appreciate some guidance from those of you how have experience in this area. Thanks!!
bob
However, with this version, and now that we have upgraded to Installshield Professional I want to install the program files into a "Program Files" Folder, the database into a folder underneath that, But I still want the form letters, etc. to be installed in a folder easily accessable and with read-write priviledges. I was hoping to install them into a sub folder under Documents, like: \\Documents\MarketWare\Form Letters, however my problem is this: Most of the time the application is installed by an Administrator so now my question is: what is the appropriate "all users" approach to installing files into the Documents Folder? My goal is for the files to be easily marked read-write and to be easily accessible via My Computer, etc.
I would really appreciate some guidance from those of you how have experience in this area. Thanks!!
bob
3 Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 30, 2009
06:07 AM
Can you mention your OS, because all users common areas in XP and Vista/Windows 7 are different.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 31, 2009
10:32 AM
That's the challenge isn't it? My install will need to work the same for all OS's. So the big question is...is there a "generic" MyDocuments location?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 05, 2010
04:59 PM
perhaps the [CommonAppData] property or the [CommonFilesFolder] property could be useful. Also, the %AllUsersProfile% environment variable might be what you're looking for. You would think that windows would be consistent about the logical purposes for these properties and env vars....but this is what you get when you apply logic and thought to MS design practices.
I just noticed that %AllUsersProfile" on xp is "C:\documents and settings\AllUsers" which makes perfect sense since %UserProfile% is "C:\documents and settings\User" on vista, however, the values are "C:\ProgramData" and "C:\Users\User".
Perhaps you'll have to author some logic to initialize this value. start by using the SHGetKnownFolderPath( FOLDERID_PublicDocuments,...) for VersionNT>=600, otherwise use %AllUsersProfile%.
I just noticed that %AllUsersProfile" on xp is "C:\documents and settings\AllUsers" which makes perfect sense since %UserProfile% is "C:\documents and settings\User" on vista, however, the values are "C:\ProgramData" and "C:\Users\User".
Perhaps you'll have to author some logic to initialize this value. start by using the SHGetKnownFolderPath( FOLDERID_PublicDocuments,...) for VersionNT>=600, otherwise use %AllUsersProfile%.
