Use productversion proeprty as Folder name

i want to set a folder name to the property [ProductVersion]
so, in the files and folders view i have a folder called [ProductVersion]

when i install the app the folder is created but called [ProductVersion] including the brackets.
Am i missing something? why is it not resolving to the property value?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: captain_planet 13 years ago
Black Belt
Why don't you try using a Type 35 Custom Action (CA)?

For example, let's say you create a folder called 'C:\Program Files\FolderHolder', and this directory path resolves to 'INSTALLDIR'.

(In Wise) You should create a type 35 CA, set the name of the CA to whatever you want (say, 'setDirName'), set the directory to 'INSTALLDIR' and set the directory value to '[ProgramFilesFolder][ProductVersion]'. This should execute in an immediate context before the InstallInitialize standard action.

Your CustomAction table would look something like this:
Action Type Source Target
setDirName 35 INSTALLDIR [ProgramFilesFolder][ProductVersion]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


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