To install the files in the userhome folder you need to change in the "Install Parameters" tab the "Application folder" text field to the string "[WindowsVolume]Documents and Settings\[LogonUser]".
To generate this string do the following:
- First empty the text field.
- Click the <Edit> button beside the text field. Click the <Folder> button and select the "Windows Volume" branch. Click OK. DON'T close the "Edit Application Folder" dialog.
- type "Documents and Settings\" after the value that has appeared.
- click the "Property" button. Select the "User Information"->"Logon User" branch. Click OK.
The danger is that this works only for the versions of Windows that store the user informations in the "Documents and Settings" folder.
In order to install your application in the "UserHome" folder you have
to take the following steps:
1) In the "Install Parameters" tab create a new property, say "userHome".
2) In the "Files and Folders" tab right click "Target Computer" and select "New Folder"->"Property Based". In window that appears select the "userHome" property and click <OK>.
3) Add in this new folder the files that you want to be installed in the userhome directory.
4) Create a new custom action. On the "Custom Action" tab right click on
"Target Computer" and select "Show Standard Action"->"Before Initialization"->"Begin". A new section named "Begin" appears in the
tree. Right click this branch and select "New Custom Action"->"Script
Inline".
5) In the "Custom Action Properties" window select as "Source Type" "Visual Basic Script" and in the "Script Text" field write:
6) In the "Dialogs" tab right click "Select Location" branch and select
"Delete", to remove the "Select Location" dialog, since the custom
action will overwrite any chosen path.
FOLLOW US
Get the latest news in Application Packaging