Hello,
In order to achieve this, to install some files on the current location: "C:\users\<user directory>" where "C" is the windows volume you need to the the followings:
-
Create a property in the
Install parameters page.
-Then, you can go in the
Files and Folders page and add a
property based folder and select the previos defined property. Property based folders will be resolved at install time to the values from the respective property. Here you can add the files you need to deploy the related location: "C:\users\<user directory>".
-In order to assign the right value for this property, you can go in the
Custom Actions page and add the predefined
Set installer property custom action
with sequence. Edit the custom action properties like that:
- Property: MY_PROP
Value: [WindowsVolume]\Users\[%username]
Please keep in mind that this scenario is working for the operating system above Vista because on a XP machine there isn't this structure, so you should condition the execution of this custom action through its
Condition field. (e.g.
VersionNT >= 600). Please take a look on the
Operating System Property Values article which may be useful to you.
If you have other questions, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging