Tuesday, August 01, 2006 12:46 AM
.NET Framework 2.0
Visual Studio 2005
In the deployment project of a VB.NET solution I have added a 'Textboxes (A)' component, straight after the Welcome box. To this I have set the Edit1Property to COMMONREPOSITORY and the Edit1Value to C:\MyRepository. I then use [COMMONREPOSITORY] as the DefaultLocation of a Custom Folder in the file system. On installation the folder C:\MyRepository is created as expected. However, if I change the value in the textbox (at install time) the folder C:\MyRepository is still created, instead of the new value.
How can I update the created folder name from the user’s input?
(As a test I used [COMMONREPOSITORY] to create a registry key, and this worked perfectly).
Where am I going wrong? Is this possible without having to create custom actions?
Monday, September 25, 2006 6:13 PM
.NET Framework 1.1
Visual Studio 2003
I have the same problem!
Can somebody help us?
Tuesday, June 12, 2007 4:54 PM
For anyone still wrestling with this the answer seems to be that you don't put [COMMONREPOSITORY] in the DefaultLocation of a Custom Folder.
Instead you put COMMONREPOSITORY as the value of the "Property" property of the Custom Folder (without any square brackets). It then seems to pick up the value at install time correctly.
(Actually I haven't tested with the name COMMONREPOSITORY, but it works ok with the default EDITA1 on vs2005 ).
Friday, April 27, 2012 10:03 PMthere is nice implementation; take 5 mins to look into it: