Creating a custom installation in C #

can you help me find a solution for my problem I mentioned below?

Actually, I created a custom installer for my application. In which I have included a form to request an installation location. How to transfer this location to the installer. I have set the value in context.paramenter ["targetdir"] = text1.text. but the installer always uses the default location like c: \ programefiles \ manufacturename \ productname. I like to ask the user about this installation location and then hand it over to the installer.

Can anyone help me?

+1


source to share


2 answers


If you are willing to spend some time learning, then there is a free and customizable build / installer tool available under the name Windows Installer XML (WIX) at http://wix.sourceforge.net/



+2


source


If you created a standard Visual Studio deployment project, the project will already contain a form that asks for an install location and will install any files you put in the Application Folder in the Filesystem pane to that folder. This folder path is available for scripts or conditions as the TARGETDIR property. All of this is done automatically, if it doesn't work, you've changed something.



0


source







All Articles