Click here to Skip to main content
15,891,607 members
Everything / msi

Msi

msi

Great Reads

by Zhuyun Dai
To resolve a WIX issue: XmlConfig fails in modifying ApplicationHost.Config because site is not created yet.
by CodingCoyote
This is Part 2 of "Creating a Wix# Installer That Includes Prerequisites"
by Petr Pechovic
Example of creating a WIX installer for an ASP.NET Web application.
by Petr Pechovic
Creating Custom Action for WIX written in managed code without Votive

Latest Articles

by CodingCoyote
Learn to use Wix# to create an installer for your application that bundles multiple MSIs, runtimes, and other dependencies
by CodingCoyote
This is Part 2 of "Creating a Wix# Installer That Includes Prerequisites"
by Jaime Olivares
How to introduce custom dialogs in an Setup project (aka vdproj) for generating MSI installers
by Akhil Mittal
In this article I would like to explain a step by step process to create a windows application and a setup installer for the same in a very simple manner, that is easy to understand and follow knowing that there are a number of other ways to do the same thing.

All Articles

Sort by Score

msi 

8 May 2014 by Dave Kreskowiak
Pete's answer is probably better as you have greater flexibility in creating an installer than using InterDev.But, another option is to build an XP virtual machine (VMware has a "Player" version that's free) or Microsoft's VirutalPC, or VirtualBox, or any other) and just install your DEV...
8 May 2014 by Pete O'Hanlon
Do you have a MSI file from the old machine? If you do, you can use the AdvancedInstaller repackager[^] to capture the changes that the VB6 installer makes, and create your new MSI from that.
10 Oct 2012 by Sergey Alexandrovich Kryukov
You need to go to the properties of each project and choose the property "Target Framework". It's usually goes under "Application" tab of "Properties" window.—SA
2 Aug 2013 by Zhuyun Dai
To resolve a WIX issue: XmlConfig fails in modifying ApplicationHost.Config because site is not created yet.
10 Aug 2011 by DannyStaten
I have a new product that I have recently launched. I haven't figured out what I need to do to get my installer digitally signed. I am just using an installer project in visual studio. I had tried other installer tools, but nothing seemed significantly better than the built in installer...
10 Aug 2011 by JOAT-MON
This MSDN page should get you started: http://msdn.microsoft.com/en-us/library/0k50fs3b.aspx[^]
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...
12 Jan 2012 by Member 7684075
Hi,I am calling custom action window form during MSI installer. How to identify user clicked "Cancel" button in window form. If user clicks "Cancel" I should rollback the installation. So how to acheive?Thanks.
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...
21 Jan 2014 by Bernhard Hiller
You mix up installing a software (that's where you need the msi package) and installing it as a service (here you use the sc tool). Consequently, you removed only the service from the service list, but not the software from the list of installed software.Well, now the registry is in an...
8 May 2014 by Slow Eddie
I have been going crazy looking for a solution to the following problem.I am a developer who has worked happily on my windows XP machine for the past 10 years or so. I use Visual Studio6 and VB6.0. I create an ".MSI" installer for my software using Visual InterDev 6I am trying to move my...
8 May 2014 by Maciej Los
I've heard about ExeToMsi converter[^]. If you are able create setup (*.exe) file, you can try to convert it to *.msi.
16 May 2014 by fred edison
First question the Copy Custom action you have made is it deferred and impersonate = false ?If no, on google you will find that only Custom Action deffered can have full right natively (because it's assume only deffered action can change your PC state/transaction and not Immediate action)....
25 Sep 2014 by Sergey Alexandrovich Kryukov
If something is silent, it's also supposedly death. How to give some instructions to something which does not give you any prompt? This is beyond the purpose of silent installation.—SA
9 Dec 2014 by barneyman
you CAN - i've done it - but it's poorly documented - our msicreator has probably taken a couple of man-years to get to its current stateMSI Database sdk[^]Some direction :)1. understand WHAT an MSI is - a bunch of tables (accessed thru sql'ish commands) and some compressed file...
18 Jun 2021 by Dave Kreskowiak
Typically, you would not do this. Besides, what's to stop someone from just copying the key file and giving it to their friends? NOTHING! Your site could build the .MSI "on the fly", inserting the key.txt into the File table, making sure...
20 Nov 2009 by elajua
I've an application that executes any kind of file with parameters but today I added support for creating Administrative Install Points for MSI files.I would like to run the AIP with /qb and hide the status window from the user and instead display it inside my program. Later I would like to make it
5 Jan 2010 by Lagarino
Hi!I have created an activeX and a MSI file to install it, and it works perfectly in Internet Explorer 8 if I install it manually.I have also created a CAB file with an INF like this:[version] signature="$CHICAGO$" AdvancedINF=2.0[Setup...
18 Jan 2010 by Mr. Su
I had done the same thing few years back with little success.You can do run the setup from the active X itself.From the source code of Active X, run the MSI installation.Else you can do one thing, run the MSI after active X is loaded.Put the installer srcipt in the later section of the...
18 Jan 2010 by Lagarino
Sure, but what I am trying to do is to install the ActiveX, so I cannot run the MSI suppossed to install the ActiveX from the ActiveX itself if it is not installed.
1 Jul 2010 by Juub
Hi I'm making a web setup in VS2005 and I'm new on this kind of projects.I am thinking in using a serial code in the setup.This app is customized for each customer for their needs, (such deparments, names, etc).So I was thinking to use a Serial Number for each customer, so let's say for...
1 Jul 2010 by Hristo-Bojilov
Here[^] is possible solution of your problem. :)
12 Oct 2010 by KeithAMS
HiI have several C# deployed applications that I have to build every few months to create the msi installers. I do this in either Dev Studio.NET or Dev Studio 2005 professional.Quite often we find problems with some of the xml files I use as config files for various projects where one...
12 Oct 2010 by Rhuros
For this kind of thing you'll have to write a DLL to provide a custom action for the extra functionality you want. Take a look at:This[^]And This[^]There are loads of others to have a look at too....
14 Oct 2010 by deinth
Hi,I've a project with a .msi file. That file puts all necessary files on computer target. But then, i need to execute one of that new files placed. I'm doing some addins for office, and when installing, i've looked i need to execute the .vsto file in target computer to install it...
15 Oct 2010 by Pawel Zawadzki
21 Oct 2010 by Jothiprasad
Hi,I am using a batch file to install a msi package in windows vista. I have used both the below commands.msiexec.exe -i "ObjectiveNavigator7.4.4.msi" /q /norestart msiexec.exe /i "ObjectiveNavigator7.4.4.msi" /q /norestartNothing get installed, but if i install manually,...
2 Nov 2010 by M_Amin
I want write a program with c#.net that it can install a file .msi on more remote computer using WMI in workgroup and domain.I haven't care information of it.I know wmi but don't know how use in program.Please, Help me. :rose::rose::rose:
26 Dec 2010 by Ognjen2
You can do this by using Visual Studio Setup and deployment projects.
2 May 2011 by avi_dadi2002
While installing MSI in Windows server 2008 and sql server 2005 env. Virtual directory is creating in the path and rolling back all operations. In eventlog i found error 1603. My application at the time of installation it creates virtual directory and it maps to installed folder and also it...
4 May 2011 by fjdiewornncalwe
I found this information on AppDeploy.com that may be of help to you.The source is found here.The content of relevance is this:This error is a pain, because you see little to no detail in the event log. This error is telling you that the local system (or current account) does not...
26 May 2011 by fjdiewornncalwe
If you are using an msi, just add a Custom Action to the msi.
26 May 2011 by Valery Possoz
Hi,You can do this using an installer class.public partial class Installer1 : Installer....public override void Commit(IDictionary savedState){ Registry.LocalMachine.DeleteSubKey(@"HKEY_LOCAL_MACHINE\Software\Oracle\NLS_LANG"); base.Commit(savedState);}You then...
7 Jun 2011 by tharunvs
Hi,Am trying to create a patch using msimsp.Getting Error "Failed to create patch. Error code: 0xC00E5201".Am using windows 7, have applied the hot fix for "Failed to create patch. Error code: 0xC00E5201".Even after applying hot fix getting same error.Have verified the DiskimageID and...
7 Jun 2011 by fjdiewornncalwe
If you are using Win7 then this article may be of use to you.In case you haven't seen this article: How to create installation patches for VS.NET deployment projects[^]
8 Jun 2011 by All Time Programming
Hello Experts, I have a C# application for which I have developed a SEtup & Deployment project to generate the installer. My application needs other application (OtherApp) to be installed prior installing my application. OtherApp is an exe file generated using NSIS installer. I added the...
15 Jun 2011 by SCraw2855
TRY THIS MSIEXEC /QN /I ".msi" REBOOT=REALLYSUPPRESSYou can also run msiexec ObjectiveNavigator7.4.4.msi /? for supported commands, but the creator of the .msi had to add support for it.
28 Jul 2011 by amitsavant
Hello Friends,I have created a MSI. It is working fine if i double click the MSI and do start installation.However, if i start executing the same MSI through command prompt it throws an error "2203". I am using msiexec /a sample.msi command to run the MSI. Will you please tell me...
28 Jul 2011 by Richard MacCutchan
No idea what you may have done wrong but you may find some help here[^].
3 Aug 2011 by vikky08
I am using InstallShield 11 and creating a basic MSI project for a 64 Bit machine.When I run my setup on a 32 Bit machine, the Windows installer shows a message that"This installation package is not supported by the processor."Now the problem is that I want the InstallShield setup to show...
9 Sep 2011 by Rakesh Meel
This message is shown automatically by Windows Installer and cannot be customized.If you really want a custom message, you can try this approach: create a custom EXE bootstrapper which determines if the target platform is 32-bit or 64-bit if it's 32-bit show your custom message...
16 Nov 2011 by Manoj Pandey1
Hi, I am creating a dll custom action which is showing a message box taking the values from the property (stored in szBuffer1) table as below:MessageBox(NULL, "This is a message box", szBuffer1, MB_OK); I have attached this custom action to Next button of a dialog. This will pop a message box...
30 Nov 2011 by Mohibur Rashid
Ok,The thing is your msi builder cannot find the specific file.it mean your file is not exists.Another issue, do not build your msi with debug version of the executable. make sure it is a release vesion
1 Dec 2011 by sesha Fan
Try this msiexec.exe /a .msi /qn
15 Dec 2011 by nicoleta.cristian
Hi all,I develop a Basic MSI Project with Installshield 2010.I have 3 sql connections, each of them has specific properties assigned to connect to the server.Using the steps from this link, I customized 3 SQLLogin dialogs.So, my controls have customized properties which are...
17 Dec 2011 by labshasanbd
Can anyone guide me with the steps required for creating msi installer for C# desktop based projects? Which will be able to keep version tracking and will have option 'all user' or 'just me' and then also upgrade / fresh installlation.Found some possible solution from...
17 Dec 2011 by Philippe Mori
MSI properly support upgrading provide you update the appropriate GUID code.As far as I know, the option "All users" vs "Just Me" is available on a new installation. If you want to change it afterwards, you have to first uninstall existing application.You don't really have the option to...
20 Dec 2011 by nishantcomp2512
while creating and installer of same project the version of your application automatically detected by installer and installer itself check for older version.Regards,
22 Dec 2011 by girirajshah
hi, I m Searching for source code or help for REMOTELY APPLICATION INSTALLER that is able to intall any software remotly over connected machine in LAN as its remotly installer i need to add silently features for installing any software by this application that remote machine doesn't know abt...
22 Dec 2011 by jerfypowell
Here is what I googled for SCCM and C#.I know its not exactly what you are looking for, but maybe it will lead you in the direction you want.http://social.technet.microsoft.com/Forums/en-US/configmgrsdk/thread/f4d23b91-4bc2-45ac-a943-391e28ff7a25/[^]SCCM is a Microsoft Product...
29 Dec 2011 by Sanju Sanju
Hi Experts,i have developed one application and i need to deploy the same using set up project in VS2008.my application has two exe files 1) Normal.exe 2) Professional.exe.while installing, i need to have an option like Normal or Professional (just like existing Installation mode...
29 Dec 2011 by RaviRanjanKr
Chcek Visual Studio Installer Deployment[^]conditions can be placed on any file or folder using the Condition property. This allows you to customize the installation of files based on conditions that exist on a target computer during installation. For example, you might choose to install...
29 Dec 2011 by RaviRanjanKr
Try Deployment (How Do I in C#) [^]I hope this link-[How to: Specify Which Files Are Published via ClickOnce ][^] meet your requirement.
30 Dec 2011 by Espen Harlinn
If you've got a delphi license you can try Jordan Russels Inno Setup[^].It very flexible and easy to use.Best regardsEspen Harlinn
12 Jan 2012 by Member 7684075
hai,I am using web setup project. I want to rollback the installation from custom action (here i mean custom action is windows application. During installation time i am calling windows application) how to rollback the installation in web setup project?I added throw new...
12 Jan 2012 by Member 7684075
Hai,I am working on Web Setup project. Here I am using custom action. In Installer classI am using protected override Install(IDictionary savedServer) { base.Install(savedServer);frmShow f=new frmShow();f.ShowDialog();}.So here i am calling my frmShow windows form from my...
24 Jan 2012 by nicoleta.cristian
I use Installshield 2010, a Basic MSI Project.Is there a way to use RemoveFiles action to remove files from RemoveFile table after InstallFinalize?I have some files included in installer's components. I use those files to configure other files and after InstallFinalize I want to remove...
24 Jan 2012 by nicoleta.cristian
RemoveFiles action cannot be moved after InstallFinalize.There are two posible solutions to solve this problem:1) create a custom action to perform the cleanup2) create temporary files that are only needed during the execution of the installer. Their place are in Support Files view, not in...
15 Feb 2012 by girlprogrammer
Desperately need a solution. I am trying to include an help file with software installer. So that after the software is successfully installed, the user will find the help file under the "Start" menu. I am not able to achieve this. I am using VS2010 setup project. Can anyone help me?Thanks...
16 Mar 2012 by PeerMohamedMydeen
Hi All,I would like to do a web installation using silent install. I want to give site, app pool, virtual directories as a command line switch.Can this be possible?The idea is to create site, virtual directory and app pool in a winforms application to immitate as an installer...
16 Mar 2012 by PeerMohamedMydeen
Hi Ganesan, Thanks for your immediate response. I have implemented the idea with WIX installer and tools such as Paraffin.I would like to know, whether this can be possible with msi and msiexec switches.ThanksPMM.
22 Mar 2012 by Charlie Matherne
Our company has an application, let's call it MainApp, that gets deployed containing a number of "library" dlls. The library dlls are used by MainApp and "plug-ins" for MainApp. That is to say, the plug-ins also reference and use the library dlls.Due to changes made in the library dlls,...
14 May 2012 by chaiein
I want to know the complete method of msi installation because The msi file created when installed is not displaying the pictures that are of .png type why does this happen and how to solve this problem? Before creating msi when I execute the program in the vc++2008 its showing pictures. why...
14 May 2012 by barneyman
have you run it under a debugger after it's been installed? I assume you're building release for install - have you tried running the release build to see its behaviourCompile it under release with no code optimisations, program database (/od and /Zi respectively)Link with /DEBUGYou...
14 May 2012 by M_Mogharrabi
Hi all,I am new in installshield.I have written a class library project with visual studio that creates a sql database with sql commands.Now i want to call a method of this dll in my installshield setup project.but i do not know how can i call my method in a specific location in user interface...
15 May 2012 by krmed
If I read your problem correctly, you're using an .msi file to install your application on another (or even your own) system.Your code tries to load your .png file from a directory called "res", which is a subdirectory of the folder containing your .exe file.Does your .msi also include...
22 May 2012 by ♥…ЯҠ…♥
I created one VB project. I need to deploy it in web server. Earlier i've done directly deploying the .dll file in web server. But for this alone i need to create MSI package and cab file. 1) Need to create MSI package for my project using VB6.0 2) Need to create a cab file for the...
28 May 2012 by Danny Mosquito
Hi... I am creating a basic Deployment Project using Visual Studio 2008 Pro to create an installer for the C# application I have written. All it does is basically install the exe and some supporting libraries (dlls). I am currently testing under xp and everything works as expected until...
28 May 2012 by muqtdeer Muqtdeer
actually we install some .msi to call some class lybraries which not access directly. suppose that in your project some crystal report after having installed on your PC and when you want to acess crystal report then it gives an error for could not load assembly class library so we install...
5 Jul 2012 by ryan cepeda
Why is it not possible to make a single build of my WIX project to create multiple msi for different locales?..Why do i need to create a separate installer for each localized version of my application?..
9 Aug 2012 by sunder.tinwar
I have an MSI installer, which have my custom installer project output and I added an exe file to run while installation.So my MSI setup file will copy or remove files from source location and my custom GUI will install my window server call some server api's and updated its logon...
8 Dec 2012 by ilostmyid2
hiwe use SVN in a team work. in the solution there's a project for building MSI file called Setup. the project is indeed a vdproj file.i've changed Setup.vdproj and found that someone else also changed it and committed the changes before me. so i've to Update, but the SVN itself can't merge...
10 Dec 2012 by ilostmyid2
به این میگن یه جواب مختصر و مفیدممنون
10 Jan 2013 by Arun Kumar K S
I am creating an MSI installer to my application. For running my application I need to install some another libraries. How I can include the another executable setup with my MSI setup
10 Jan 2013 by Abhinav S
The Visual Studio MSI Installer[^] should help you out.
11 Jan 2013 by Marco Bertschi
Hi thereI suggest you might need to use the post install actions (in Install Shield Limited Edition which comes with the VS 2010). Ask the +The mighty Mister G.+.
11 Jan 2013 by Marco Bertschi
You can try to create a custom Installer by using the Install Shield Limited Edition which comes with Visual Studio 2010...cheers,Marco Alessandro Bertschi
15 Jan 2013 by shivanand3291
hi, i have created a batch file for restoring database in sql server management studio. i have a problem wherein i need to have a screen in installer or a .net form that will ask for database server, username and password from user and once the user clicks a button in the form after entering...
15 Jan 2013 by Sandeep Mewara
Sounds like you need to learn about custom dialogs, go through this CP article: Create custom dialogs for use in your Visual Studio Setup projects[^]
6 Mar 2013 by Vandana M J
I have 3 projects in my VS 2005 single solution (1 Web Project, 2 other C# projects). I create the setup for deploying the website using Setup Project Templates available in Setup and Deployment category. Now I have .sql file needed for the website. Currently I need to run this setup to...
11 May 2013 by DEB4u
Hi,I have a simple application in vb.net and a setup application in the same solution. If I want to obfuscate the application and make a installer package, the what are the steps? I mean where to add the setup project, after obfuscation, it generates the obfuscated output in a separate...
11 May 2013 by Idle_Force
You can add the setup project to the same solution if you want. The location does not matter that much since you tell it where it lives. Your setup project has the place where you add the exe of your choice - select the obfuscated one.
11 May 2013 by Dave Kreskowiak
You package it up the exact same way to do any other .EXE. You compile your solution, then obfuscate the binaries, then package them up.Oh, please don't use the Setup and Deployment project in VS2010 and below. It's deprecated and no longer supported in VS2012 and above.Use a 3rd party...
18 Jul 2013 by kvamshik89
Hi,I made a project msi, which is dependent on 3rd party activex, which is available in .cab file.Now I want to make MSI setup file, that installs this 3rd party cab file , while installing my setup.Somebody suggest me a right way to do.....
26 Jul 2013 by ksrdhilip
I'm getting this error while executing a sql query via ExecuteNonQuery (Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery) at the first attempt.Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8Faulting module name: MSVCR80.dll,...
26 Jul 2013 by Dave Kreskowiak
With the information you provided its impossible to tell you what's going wrong. Deploy the debug build of your choice and attach the debugger to your server before it crashes. When it does, you can see where the code bombs out.
5 Aug 2013 by Code-Hunt
http://msdn.microsoft.com/en-u...
5 Aug 2013 by Maarten Kools
I'm sure you've tried to Google it. But here you go: Creating a WiX setup for Office add-in: Outlook, Excel, Word, PowerPoint[^]WiX installer for VSTO projects[^]Creating WiX setup project for Office add-ins on Visual Studio 2012 using Add-in Express[^]
22 Sep 2013 by adi jeevan sagar
I am using VS 2010, setup and deployment project to create MSI. It is per user installtion.I am having custom action to run on commit. It is working fine on installation. I have to support Upgrade as well.At the time of upgradation, I have to check for running process and...
23 Sep 2013 by D-Kishore
Hi Try below links, you may get some ideahttp://stackoverflow.com/questions/251218/how-to-stop-a-running-process-during-an-msi-based-un-install[^]http://social.msdn.microsoft.com/Forums/windows/en-US/15e03c16-e9c5-4b84-83d4-2156afdf4541/killing-a-process-before-msi-installation[^]See...
24 Sep 2013 by adi jeevan sagar
Script to remove the 'Disk Cost' button from the 'Select Installation Folder' window on msi installation visual studio 2010.
24 Sep 2013 by Sergey Alexandrovich Kryukov
Just an alternative advice: as Visual Studio "Setup project" template is about to be deprecated, consider switching to better installation project framework. I would strongly advise open-source WiX, where you have a lot of freedom (and, by default, the button you don't like is...
8 Oct 2013 by Purushotham Agaraharam
Heloo,I am looking for an demo sample to create Custom installer using Install Shield using VS2012.I have created custom installer using Windows installer but install shield is bit confusing..If some one familiar with installer shield need an sample demo with custom actions.Waiting for...
15 Oct 2013 by cyanceenu
Hi..I have a desktop application developed in VS2008,I have created a setup (msi/exe) for that application in a setup project..everything is fine.. installation successful.I have another application of same kind and created setup for that application also.But When I try to...
15 Oct 2013 by Madhu Nair
Check the Properties of the Setup Project & make sure that you have not specified same product details to both the setup. PS: While checking on the Setup Project Properties don't right click and select Properties. Just select the Setup project and click on the properties button
21 Nov 2013 by Radzhab
How remotely install msi package with c#. I use this code, but this return code "1603" ManagementScope scope; ConnectionOptions connectionOptions = new ConnectionOptions { Authentication = AuthenticationLevel.PacketPrivacy, ...
6 Dec 2013 by Member 10397519
I am trying to implement "Standard" and "Custom" installation options in setup project. I have following UI sequence: welcome form, Radio Buttons ( 2 buttons), Installation Folder, Confirm Installation. The two radio buttons are for "Standard" installation and " Custom" installation.When...
9 Dec 2013 by Goel Himanshu
I am getting a weird error while i build a WIX project in Visual Studio 2012. It is working fine with Visual Studio 2010.So does anybody has any idea why it is throwing such type of error?Error 2 The system cannot find the file...
9 Dec 2013 by Sergey Alexandrovich Kryukov
The naming of the path you show suggests that you are trying to use the file from the temporary directory created by MSBuild during the build of your project for Debug configuration. What you show is the default naming schema for such directory.You should never do such things, you should...