Use productversion proeprty as Folder name
hi,
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?
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)
Please log in to answer
Posted by:
captain_planet
13 years ago
Frodo,
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:
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]

so that the conversation will remain readable.