Link to home
Start Free TrialLog in
Avatar of jongrossex
jongrossexFlag for United States of America

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of jmcmunn
jmcmunn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jongrossex

ASKER


Thanks for the link...

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


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.