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.

0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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.

Answered 02/07/2008 by: Inabus
Second Degree Green Belt

Please log in to comment