• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1799
  • Last Modified:

Adding files to the All Users folder from InstallShield


I need to deploy data files to c:\ProgramData\MyAppName but I can not find an easy way to do that in installshield.  I am using an installScript project in installshield 2008. I am sure it is possible but I do not see how.

Thanks

0
jongrossex
Asked:
jongrossex
1 Solution
 
jmcmunnCommented:

Instrallshield has properties that point to all of these special folders...if I am understanding properly, this link is the same discussion.  Please let me know if you need more details, or if I have misunderstood the question.

http://community.flexerasoftware.com/showthread.php?t=184991
0
 
jongrossexAuthor Commented:

Thanks for the link...

I did not realize that I could use  <FOLDER_APPDATA> in the Destination attribute of the component.


0
 
Pit ZCommented:
I have seen some quirks in the behavior of setup builds around this same requirement.

When in the "Specify Application Data -> Files" area of Designer, right click on the "Destination Computer" label and select "Show Predefined Folder". Click on [AllUsersProfile] in the list. Once it is in the Destination Computer tree, right click on [ALLUSERPROFILE] and select Add. Rename the folder "Start Menu", right click on Start Menu and Add "Programs", right click on Programs and add the folder name of your choice. After the tree is created you can drag the desired menu files into that folder.

There should be a more friendly way to do this, for one there is a predefined folder for StartMenuFolder and DesktopFolder that should have the ability to nest them in the [ALLUSERPROFILE], but I haven't found a way to do that. And in addition to that, when I execute the created setup, it insists on still creating a folder in the UserProfile specific to who is logged on. It kicks out an error at install time that the shortcuts can not be written to this folder. There is no place that I have told it to write to this folder. This has been most frustrating and time consuming...

If anyone has a more elegant solution, please let us know.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now