Deployment - reading inputs into file system

Unanswered Deployment - reading inputs into file system

  • Tuesday, August 01, 2006 12:46 AM
     
     

    VB.NET

    .NET Framework 2.0

    Visual Studio 2005

     

    Please Help!

     

    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?

     

All Replies

  • Monday, September 25, 2006 6:13 PM
     
     
     

    VB.NET

    .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 PM
     
     
    there is nice implementation; take 5 mins to look into it:

    http://www.csharpque.com/2012/04/process-dll-information-for-storage-sql.html