Page 1 of 1
Express Install Program Files and Data Files
Posted: Mon Apr 01, 2013 8:26 am
by worksimp
I'm a long time IS Express user and I'm really looking forward to my switch to IA Express. My program is in its 23rd year...and still pretty simple. I install all the app files into a program files folder and data files in a folder in the users mydocuments. I've been struggling now for several days with a couple of things I expect are easily handled. How do I install into mydocuments as well as programfiles...the TARGETDIR concept has me puzzled. Also, my program is often installed for users by admins - how do I set it up so the admin can install the data files to the users mydocuments. Sorry for the basic questions...I searched about 4 hours with no luck. Thanks for your help.
Re: Express Install Program Files and Data Files
Posted: Tue Apr 02, 2013 8:39 am
by FrancescoT
Dear User,
if you create a new project from scratch, you can verify that by default the TARGETDIR folder points to "Program Files\<Project Name>".
This value can be verified under "Project Properties (Application Information)" page in IA IDE (design view).
You can modify the TARGETDIR project folder by entering a different target path in the above page ( ... as I suppose you have already done) .
To add additional target folders to your project, use the "Files" page in IA IDE (Left tree pane > Setup Architecture -> File node).
You may add pre-defined system folders to the Target Folders structure, or create your own custom folders.
(For more info on how to add a target folder, just press F1 from IA IDE while "Files" page is active).
Once you defined a folder (as for example "$MYDOCUMENT$" Folder) add under that folder, any file you want to be installed in that location on target system.
Unfortunately, with IA Express is not possible to control if the running user is an Admin user and then, to define at runtime if some files can be installed or not. This possibility requires script code capability.
Hope this helps you.
Regards
Re: Express Install Program Files and Data Files
Posted: Thu Apr 04, 2013 8:11 am
by worksimp
Thanks Francesco. I finally got it worked out. Somehow I had the MYDOCUMENTS folder and files installing into the PROGRAMFILES folder, but with your guidance, I got it corrected.
Regarding my question about the admin install, I'm going to ask that question again, hopefully more clearly. The users of my software typically don't have install privileges (BTW, this word is spelled wrong on the Application Requirements page). They call IT to have the software installed for them. When IT installs (for anyone who uses this computer), the application is available to the user, but the sample files and temp files (ini and other editable support files) that need to be in the users personal workspace are in the IT persons workspace. How can I provide capability to enable IT to install for the user? Thanks.
Re: Express Install Program Files and Data Files
Posted: Thu Apr 04, 2013 9:42 am
by FrancescoT
Dear User,
when the package installation is elevated, as in your case by the system admin, the install process will be executed under the user account where the package has been elevated. This is the default behaviour and this is the reason why, you found those documents installed under the IT account context.
The only possible alternative that you have, it is to install those documents under the all users document folder.
Regards.