Click here to Skip to main content
15,915,019 members
Everything / Setup

Setup

setup

Great Reads

by Yvan Rodrigues
How to install the WTL Wizard for Visual Studio 2010.
by zajo1969
InnoSetup script to download and install MySQL ODBC driver
by IPI Paul
Use iPhone to install Windows software.
by meraydin
A custom dialog that has a password textbox for your VS2012 projects

Latest Articles

by JakeG
WIX template for wrapping EXE with a MSI installer for easier deployment with group policy
by zajo1969
InnoSetup script to download and install MySQL ODBC driver
by Alexandros Pappas
This article proposes a way to check the correctness of setup projects.
by Eduardo Antonio Cecilio Fernandes
Learn how to configure NHibernate on your ASP.NET application

All Articles

Sort by Score

Setup 

19 Sep 2011 by Yvan Rodrigues
How to install the WTL Wizard for Visual Studio 2010.
7 Dec 2023 by Dave Kreskowiak
Quote: I would want to run the installer on both 32-bit and 64-bit target machine, as far as I know x86 option should work for both, or maybe I am wrong, The 32-bit installer will install on both 32 and 64-bit Windows, but on 64-bit Windows,...
9 Apr 2012 by pietvredeveld
You're database file is in %ProgramFiles%. It should be in %AppData%Piet
19 Jun 2012 by Manas Bhardwaj
I don't think that this is unfortunate. It's just that you haven't handled it.You have to use Custom Actions for that: 1.Add a new library ("CustomActions") to the setup project2.Add => New Item => Installer class3.Switch to code view and override the Uninstall methodpublic...
25 Oct 2013 by Sergey Alexandrovich Kryukov
As far as I was able to figure out, more or less recently, in this year, the Windows Installer itself is not capable of targeting Any CPU model. It's looks like it is not designed to cover this feature specific to .NET. So, in practice, you need to provide two or three MSIs for two or three...
18 Nov 2015 by zajo1969
InnoSetup script to download and install MySQL ODBC driver
9 Nov 2018 by Dirk Bahle
I am trying to create a setup project with the Visual Studio Setup Project - my problem is that I want to install everything that is inside an output directory that I have defined in an MS Build file as ApplicationTargetDir:
2 Dec 2010 by subhash04573
Hi,While installing set up project, back button of installation folder dialog is disabled.How to enable back button for the installation folder dialog in set up?Thanks!
14 Dec 2010 by senguptaamlan
try the following code public override void Install(IDictionary stateSaver) { //Get the install folder and save it in the stateSaver string installFolder = Context.Parameters["TARGETDIR"]; stateSaver.Add(INSTALLPATH, installFolder); ...
9 Feb 2011 by JF2015
You need to check the registry for the following key:"HKEY_CLASSES_ROOT\Access.Application\CurVer"The key will give you the following values:Access.Application.8: means: "Access 97"Access.Application.9: means: "Access 2000"Access.Application.10 means: "Access...
19 Mar 2011 by OriginalGriff
No.If the client needs Word to use your software, then it must be installed - and paid for! :laugh:
7 Jun 2011 by ambarishtv
this links may help youhttp://msdn.microsoft.com/en-us/library/bb264562%28v=sql.90%29.aspx[^]Deploy your Application and Database[^]A Setup and Deployment project that passes parameters to the configuration file[^]Extending Visual Studio Setup Project[^]How to: Install SQL Server 2008...
27 Nov 2011 by #realJSOP
That's because your application is compiled with .Net 3.5. Presentation framework is a WPF namespace, and that means the machine has to have .net 3.5 to run it. Yes, your setup project will run on a machine with 2.0 on it, but the app will not.Just configure the setup app to install 3.5 as...
27 Nov 2011 by Sergey Alexandrovich Kryukov
In Project Properties, there is an option: "Target platform". Select v.2.0.The compilation will be successful if you are not using new features of the .NET introduced after .NET Framework v.2.0.[EDIT]Thanks to the note by Philippe below, I noticed that this is exactly the case, as you...
10 Dec 2011 by Monjurul Habib
Try the following:Fixed: "Windows Process Activation Service (WAS) is stopping because it encountered an error." Tips and tricks: ASP.NET, IIS and .NET development...IIS Windows Process Activation Service (WAS)
26 Dec 2011 by Lakhan Aanjana
http://msdn.microsoft.com/en-us/library/ms953320.aspx[^]
26 Dec 2011 by Аslam Iqbal
You need to export .NET framework, sqlserver2005. TO do this follow my steps:1. click on project>Project property menu2. Select publish Tab3. Now Click on prerequisites button4. Now Check your framework you used.(TO know what is your framework: Click Compile tab>Advance compile option...
20 Feb 2012 by Sergey Alexandrovich Kryukov
Start with learning the parts of the system Registry responsible for associations between file types and default applications registered to work with those file type. This is a pretty easy...
10 Jul 2012 by Dave Kreskowiak
The quick solution is to NOT seperate your .DLL files from the .EXE. Put them all in the same folder.When a .DLL is needed the assembly resolver will look in the same folder as the .EXE calling for it (by default, it will NOT look in subfolders!) If it is not there, it'll start walking the...
17 Jul 2012 by Christian Graus
WPF is part of .NET. Therefore your question makes no sense. There is no way to make your app work without .NET installed, you need to install it. There is no WPF setup apart from .NET.
17 Sep 2012 by OriginalGriff
Do not try to store any data in the Program location, or any folder below that! It worked in XP and below, but since Vista, you require admin privileges in order to modify anything under Program Files.There are loads of places you can store program data, which are much more sensible (if only...
16 Feb 2013 by OriginalGriff
Setup and deployment was never a part of VS2010 Express - it is part of the full (paid for) version, so if you need it, you should consider upgrading.It does however have ClickOnce[^] which may be enough for you.
13 Mar 2013 by Marco Bertschi
The setup can possibly fail if you are not executing it with admin rights but try to do something which would require administrative rights.As another approach (which is IMO better) you can use the MSI log file[^] which show you every step which happens while installing and should display you...
8 Apr 2013 by Nasir M@hmood
Paste your setup.exe in same folder where your form is running and use this p.StartInfo.FileName = Path.Combine(Application.StartupPath, "setup.exe")
17 Jul 2013 by Sergey Alexandrovich Kryukov
If you are using MSI-based technology (based on Microsoft Installer and its API), you obtain MSI which is marked by its target instruction-set architecture, one 32-bit and at least two incompatible 64-bit ones. A 32-bit MSI can be installed on any platform, but a 32-bit system won't be able to...
26 Dec 2013 by Tejas Vaishnav
How to create setup project vs2010Creating an MSI Package for C# Windows Application Using a Visual Studio Setup Project[^]How to create custom dialog boxes using the Web Setup Project in Visual Studio 2010[^]Regarding system requirement..the client system need to updated...
27 Dec 2013 by OriginalGriff
If your setup file is correct, then it should install all the files your application needs, except external applications. The latter includes SQL Server itself, for a number of reasons:0) You can only distribute SQL Server Express for copyright reasons - not SQL Server full version.1) They...
12 Mar 2015 by OriginalGriff
No, the image won't save.When you install an application in production, it is installed in a folder below the "Program Files" or "Program Files (x86)" folded - and by default these folders are all write protected to help reduce the impact of Trojans, viruses, and so forth.So when you try...
7 Dec 2010 by Abhinav S
You can include the framework in your setup. See here[^] (the link is for .Net 3.5 but .Net 4.0 should be similar).
10 Jan 2011 by daltonrs@hotmail.com
Just change the file web.config or app.config, there a session called connections, is possible change settings in this part :laugh:
31 Jan 2011 by Umair Feroze
I am breaking your question into two parts:1. Custom SQL Dialog into install shield. To answer this part please clarify it.2. Want to change config files and sql connection at run time. To do this you need to create forms on which you will get the inputs from user at installation...
5 Mar 2011 by Sandeep Mewara
Have a look at these similar discussions here:Link 1[^]Link 2[^]Link 3[^]If needed, do have other links here[^].
18 Jun 2011 by Sergey Alexandrovich Kryukov
You can delete executable modules of some application only if the application is not running, so you need to abort the execution first.You can do it by using the method System.Diagnostics.Process.Kill. See...
23 Aug 2011 by XTAL256
Basically, what the title says.When the uninstaller is run, i want the UI to have a checkbox somewhere which says:[X] Keep existing settingsOr something like that.I have seen a similar question asked on stackoverflow.com. The "optional task" answer was sort of what i am looking for,...
17 Oct 2011 by Prerak Patel
http://stackoverflow.com/questions/1117866/how-to-delete-folder-at-uninstallation-in-c-net-application[^]
4 Nov 2011 by Prerak Patel
Here it is.http://www.codeproject.com/script/Membership/Modify.aspx[^]
12 Nov 2011 by OriginalGriff
Probably you can't - and certainly not reliably..NET applications need the .NET framework, which is checked and if necessary installed by the installer package. If it is not installed, then your application cannot run. So you need to run the installer first. However, you could run your...
11 Dec 2011 by zhanhuolian
Thanks very much.I search the Event ID 5188 from here and found that the %SystemDrive%\inetpub\temp\appPools directory not exsit,and I copy the directory from other to here,and then do IISReset ,the appcation pools are started.
19 Dec 2011 by Sergey Alexandrovich Kryukov
I think "organizer" is the spelling in U.S. English; "organiser" is considered to be "alternative spelling" according to Wikidictionary: http://en.wiktionary.org/wiki/organiser[^].—SA
25 Dec 2011 by Rajesh Anuhya
May be some supported Assemblies are missed while you generating the Setup of your project. Check your deployment project properly, is there any thing missing..
26 Dec 2011 by NandaKumer
check this bloghttp://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/[^]--NDK
3 Nov 2020 by lilian87
I have an exe of my c# project.I am using crystal reports for reporting And included Crystal report runtime as one of my prerequisites. i've installed crystal report runtime for VS2008.ButWhen I wants to view my reports in another computer, shows...
28 Dec 2011 by amit28august
U can have the current execution directory form this string directory = AppDomain.CurrentDomain.BaseDirectory;then u have to modify Load path accordingly to access ur .rpt files also after publishing the project u also had got the compiled .rpt file, use them also along with ur exe.
29 Dec 2011 by #realJSOP
0) Right-click the setup project in the solution explorer, and select View | User interface in the context menu.1) Right-click the Start item in the tree, and select Add Dialog in the context menu.2) Select the appropriate dialog.At this point, you'll have to rely on google because...
16 Jan 2012 by Kschuler
What have you tried so far? I suggest you start researching here.[^] When you have a more specific question come back and ask it with details about what isn't working and what code or settings you are using.
30 Jan 2012 by Christian Graus
It's a web app, so you'd use the web.config, but the correct answer is 'yes, but I don't think that answers your question'. How does an FTP address allow you to connect to a hardware device ? If the device is on the client side, and you want your web page to connect to it, ASP.NET will not do...
3 Feb 2012 by thatraja
Check this articleDeploy SQL Server databases easily with an Installer class[^]
20 Feb 2012 by AmitGajjar
Hi,Through registry entry you can do this.Here is the link to change Open With option.Given example is for .pdc extension. you can do the same for .jpeg file extension.And hope you know how to modify registry value through C# code.hope this may help you.Thanks-Amit.
22 Mar 2012 by dharshanamax
Hi,Can anyone let me know if there is a way to modify a .NET Setup Project to allow multiple installations in one machine.Thanks and RegardsDharshana
6 Apr 2012 by Reza Ahmadi
Hi,One powerful solution is to use Installer class which is in System.Configuration. Using this class you can run various codes during different phases of the installation. Take a look at this for more...
10 Apr 2012 by Ed Nutting
Go through the options under the Tools -> Options section (or Tools -> Customise). I remember it being under the title "Projects and Solutions". Could you really not have done this for yourself...?Anyway, hope this helps,Ed
22 Jun 2012 by Vani Kulkarni
Hello, Please go through below link in CP. It has same discussion.how can i calculate the trial period of the license without using system...
22 Jun 2012 by Tim Corey
There are a lot of different ways you could tackle this problem. It all depends on how badly you want to secure your software. For instance, what you have now is good first-level protection. It stops the person who is basically honest. Your big issue really isn't that the person will change...
28 Jun 2012 by Jαved
Hi,You need to find all installed app from "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall"Here is the sample code-private string FindByDisplayName(RegistryKey parentKey, string name) { string[] nameList = parentKey.GetSubKeyNames(); for (int...
14 Jul 2012 by Zoltán Zörgő
As I understood, you want the client and the server on the same machine. In this case: 1) Deploying a full-blown FB on a client makes not much sense. There is an embedded (ServerType=1) edition of FB (read this little bit outdated article to get an overview).2) How exactly do you perform the...
17 Jul 2012 by Sergey Alexandrovich Kryukov
You need to install .NET framework 3.0 or later, 4.0 recommended. I would install full version of the framework, even though .NET Framework Client Profile is supposed to include WPF, according to Microsoft documentation:http://msdn.microsoft.com/en-us/library/cc656912.aspx[^].To me, this...
9 Aug 2012 by Christian Amado
In your project, go to Properties --> Publish and click the Application files... button.Search for your dlls files and select Include from the DropDownList. Click Ok. Publish again. And everything going to work perfectly =)Hope you can find it useful.
19 Nov 2012 by skydger
Hello!Try to switch this option from 'Uninstall entire key' to 'Install if absent, Uninstall if present' or to 'Automatic'.Good luck.upd.Some files were left during uninstallation process and unintsllation script stopped before registry cleanup.
10 Dec 2012 by yaser shadmehr
Unfortunately, setup projects (vdproj) don't have an ideal experience for source control integration. WIX (Windows Installer XML) is better than.And for your problem , you should convert both of vdproj to wix and compare them.How to convert vdproj file to wix format[^]Automate...
24 Dec 2012 by Orcun Iyigun
Have a look at these two links:*Click Once Deployment[^] *Inno setup[^]--OR--You can add a bat file to run these two project simultaneously.For example: 1.In application folder, add two primary output files: x and y. 2.New a text document, and write: @echo off start...
23 Feb 2013 by Raul Iloc
There should be no problem. In step 3, (when you "Add->"Project Output") you should have "Content File" (of your "Web Site" project) selected, so you have to press on OK.The "Content File" is the "Output" of the "Web Site" so everthing should be OK.
28 Mar 2013 by IPI Paul
Use iPhone to install Windows software.
6 May 2013 by Sergey Alexandrovich Kryukov
If you generate GUID during run time, the problem is not clear, as not only the values will be different for different instruction-set architectures, but they will be different even for different instanced of a process.If you want to generate GUID just one and have the data at compile time,...
6 May 2013 by «_Superman_»
Try this -#ifdef _WIN64const GUID CLSID_BCRSlave = { 0x617a3262, 0x19a3, 0x44b4, { 0xae, 0x38, 0xd2, 0x51, 0xe2, 0x63, 0x02, 0x64 } };#elseconst GUID CLSID_BCRSlave = { 0x617a3262, 0x19a3, 0x44b4, { 0xae, 0x38, 0xd2, 0x51, 0xe2, 0x63, 0x02, 0x32 } };#endif
6 Jun 2013 by Surendra Adhikari SA
This Error is due to static file path given on the code reportDocument.Load("FBCReport.rpt");you can change your declaretion //creating an object of Report Document class ReportDocument reportDocument = new ReportDocument();to //creating a new Report...
25 Jun 2013 by Nelek
First of all, I would suggest you to think about what you really want, use the "improve question" widget and add more information. "What" and "How" has to be done depends a lot on your needs and can be very, very different. I'll give you some points to be clarified.If you want to do that,...
2 Jul 2013 by Denis Shemenko
Try using search better :)Look at solution[^]
17 Oct 2013 by Nelek
It depends, as far as I know there is an option in the VS2012.What I do recommend you is to use dependency walker[^] (freeware) to know all what your project needs and is installed in your computer. Then you can do the Install package.Time ago I used the Innosetup[^] (freeware as well)...
24 Oct 2013 by Andrew797
I need to create a MSI package for a client, where with each release they can just download the latest version of the application.I am not entirely sure how this works.Is there a tutorial that will show how to accomplish this?I want the user to just be able to check for updates, and...
25 Oct 2013 by Ian A Davidson
The problem is a known issue in Visual Studio:The setup project, even if you set it to be x64 only(!), always inserts the 32 bit version of InstallUtilLib.dll into the msi (we had the problem even when building the setup project on x64 machines!)InstallUtilLib.dll is used to run the C#...
25 Feb 2014 by Herbisaurus
Can I create a custom form on Inno Setup installer, to show a custom logo, additional text info, ask a custom question etc. Tnx, H
25 Feb 2014 by Kornfeld Eliyahu Peter
Read here - http://www.jrsoftware.org/ishelp/index.php?topic=scriptpages[^]
24 Jun 2014 by Jafarinejadvazifehkhorani
here is the walkthrough for doing thathttp://msdn.microsoft.com/en-us/library/aa983340%28v=vs.110%29.aspx[^]
26 Aug 2014 by Philippe Mori
In Visual Studio 2013, you can install Microsoft Visual Studio Installer Projects[^]Otherwise, there are many alternatives but it really depends on your needs, your experience, your budget, your requirement (for exemple based on MSI or being able to upgrade existing installation) your time...
10 Sep 2014 by Dave Kreskowiak
You're saying that you wrote your app against .NET 4.5.1, but that's not what the exception message says.It's saying the code is running on CLR2.0, which can be .NET 2.0, 3.0 or 3.5.Make sure you're project what written against .NET 4.5.1 in your Project properties, Application tab,...
5 Nov 2014 by Sergey Alexandrovich Kryukov
Unfortunately, that's right, this is how it works: 32-bit installer installs on 64-bit Windows, because it has WoW64 allowing to run a 32-bit application. What to do about it? Say, you can make an external (32-bit) application which asks the OS ("what are you?") and then chooses correct version...
27 Apr 2015 by Sergey Alexandrovich Kryukov
These days, I strongly recommend the only legitimate and really good setup tool, first Microsoft Open-Source project: WiX Toolset:http://en.wikipedia.org/wiki/WiX[^],http://wixtoolset.org/[^].Not only it is open-source, this is the project fully compliant with MSBuild project standard....
11 Sep 2015 by Eduilha
Hi, I have no idea about to insert a condition by IISExpress on my Setup Project in C#. Someone has an idea? Regards!!
20 Sep 2015 by Richard MacCutchan
Type "man set" and "man sh/csh/ksh/bash*" and read the help information.*select whichever shell you are using (most likely bash).
8 Jun 2016 by RickZeeland
I would not recommend adding the .NET framework to your setup, but if you must two types of redistributable installations for .NET framework are available: 1. Web installer (requires internet connection) 2. Offline installer These can be found on: Installing the .NET...
25 Oct 2018 by Richard Deeming
Use the NuGet package to reference the report viewer control in your application. All of the required files will then be copied to your bin folder, and can simply be copied to the target machine. NuGet Gallery | Microsoft.ReportingServices.ReportViewerControl.WebForms 150.900.148[^]
17 Dec 2018 by CHill60
A simple search found me this … How to include Access 2007 as a prerequisite[^]
18 Dec 2018 by OriginalGriff
You can't just go giving away Access as part of your installation - it's part of Office! See here: How to include Access 2007 as a prerequisite[^] - it explains what to do.
4 Jan 2019 by Dave Kreskowiak
You wrote the path to the directory your app is in instead of the full path to the executable to launch into the registry Run key. Get this code out of the call to SetValue and actually get the value into a variable so you can see the string that's in there: key.SetValue("Automated",...
12 Feb 2020 by Maciej Los
Quote: I want to host it locally on my client's system. (On local IIS. No internet is required for application to run.) Now I want to create an executable file for the setup on the client system. My question is, How can I create an executable...
10 Sep 2021 by RickZeeland
Don't know about the VS installer, but a dual 32/64 bits installer can be made with Inno Setup using the IsWin64 option. See: inno setup - how to detect 64bit platform by script[^] You might also be interested in InnoDependencyInstaller:...
3 Oct 2022 by OriginalGriff
Depends on what you are trying to do: PHP: Strings - Manual[^] Basically, single quoted strings are that double quoted strings expand variable names and make special sequences work, and single quoted ones don't. So this code:echo "Hello...
6 Jun 2023 by PIEBALDconsult
I recommend something along these lines: string server = null ; // Fetch from configuration string database = null ; // Fetch from configuration System.Data.SqlClient.SqlConnectionStringBuilder constr = new...
18 Jun 2023 by Richard MacCutchan
The folder you need to find is named OBSHOME/Itunes, as clearly shown in the error message, and (presumably) located on the old HDD. If the location has now changed then you need to change it in the Sonos application: select "Manage" -> Music...
26 Jun 2023 by Richard MacCutchan
You are suppressing all error messages. You need to replace /qs with /INDICATEPROGRESS in the command line, so you can see what is happening.
7 Dec 2023 by Maciej Los
It is not recommended to embed over 2 GB data in a single installer file. I'd suggest using technique known as a bootstrapping. As you probably know, while installing Visual Studio, you get a small version of installer (network installer) which...
6 Dec 2010 by irfanansari
Hello!How can I merge phonetic keyboard and windows regional language installation into my VB.net setup file?I have a project and I installed a URDU language and I am also using a phonetic keyboard as well. I want to create a setup that contains installation of phonetic keyboard as well as...
6 Dec 2010 by Uwe Keim
I would go for a bootstrapper for your setup. Personally I successfully used dotNetInstaller[^] in the past.The bootstrapper first checks and installs the prerequisited like your keyboard installation (whatever this is, I do not understand) and then your actual VB.NET application...
7 Dec 2010 by Member 4008353
Hi all,I have a setup project of C# 4.0 but it requires .net framework 4.0 when we install on client side.Client wants that when we run the setup then it should run the .net framework first if not present in system then it should continue with the installation of the package.So I m not...
14 Dec 2010 by Sebastien T.
Hello,I have a C# solution with a setup project. When I install or install on a another computer, the installation path is not takeing. The setup install is always on C:\eg: if the user selects c:\tools\MyProgam, the setup installs the package on c:\For information, in my solution I...
30 Dec 2010 by ali.umair
Can anyone share the installer script ? and the method to use it with the setup project in Visual studio 2008.I am using C#.Net with SQL Server 2005, i have done with setup(My setup detects and install SqlServer 2005 Express Edition, dotnet framework and windows Installer 3.1) but when...
30 Dec 2010 by _Erik_
Add a new Installer[^] class to your project and make the operations you need there.Then add the required custom actions [^]to your setup project, build and test.
31 Dec 2010 by ali.umair
Thanks Erik for you quick response, this installer class was unknown to me , i have to study it a bit in order to implement it , i think it will solve my problem.
1 Jan 2011 by Marcel Vogt
Hi,I have a Visual Studio Setup Project, with a Custom Dialog with one Textbox. The default-content of this textbox should be the hostname of the PC, where the Setup was startet. How can I do this? Is this possible, if I override the Install-Method or do I need another way?Thanks