/build/static/layout/Breadcrumb_cap_w.png

Naming of Duplicate files using a property

Hi all,

I'm using the duplicate file table to copy a file into %APPDATA%\Folder\file.xml

The only problem is that the 'file.xml' needs to be the username of the logged in user. E.g Username 'Mike' is logged in, the file needs to be 'mike.xml'

I've tried using the Property [LogonUser] in the duplicatefile table (e.g. [LogonUser].xml ) but it appears that properties can't be used in this table. Am I right in assuming this?

If I can't use properties this way, can anyone else suggest a workaround? I'm thinking of using a custom action calling a command prompt/batch file to do this, but would prefer to keep it within the functionality of Windows Installer.

Cheers.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: Inabus 16 years ago
Second Degree Green Belt
0
When I have done something like this before I have used a vbscript to rename the files once they have been deployed using a generic name. This vbscript will read in the username of the logged in user and then do a wmi rename.

Obviously the files should NOT be key files as they would self repair and once they are renamed you will need to use the RemoveFile table to get rid of em again.

P
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ