Questions tagged [windows-installer]

Windows Installer is the installation service provided with Windows, based on the creation and installation of MSI files. In practice there will be a tool you're using to generate the MSI files, and you should tag your question with Windows Installer and that tool (WiX, Visual Studio Setup Project, InstallShield, Advanced Installer etc). Your issue may be with building, designing, or installing MSI files.

From the MSDN documentation:

Microsoft Windows Installer is an installation and configuration service provided with Windows. The installer service enables customers to provide better corporate deployment and provides a standard format for component management. The installer also enables the advertisement of applications and features according to the operating system.

Installer also handles registry related changes.

8835 questions
29
votes
6 answers

How to replace a file in a msi installer?

I want to replace a single file inside a msi. How to do it?
luntain
  • 4,560
  • 6
  • 37
  • 48
29
votes
3 answers

Visual Studio 2012 Windows service .vdproj project migration

I'm trying to move a solution I have over to Visual Studio 2012 and one of the project types is .vdproj. According to this link this project type is not supported in Visual Studio 2012: MSDN says they recommend that you use InstallShield Limited…
28
votes
4 answers

What is the purpose of administrative installation initiated using msiexec /a?

Windows Installer technology supports administrative installation. The command line for initiating administrative installation is: 'msiexec /a setup.msi'. I want to understand the purpose of this type of installation and in what scenarios are they…
Anand Patel
  • 6,031
  • 11
  • 48
  • 67
28
votes
3 answers

Run MsiExec from PowerShell and get Return Code

With BAT/CMD script I can simply use "msiexec /i /quiet /norestart" and then check %errorlevel% for the result. With VBScript, using the Wscript.Shell object Run() method, I can get the result like this: "result = oShell.Run("msiexec…
Skatterbrainz
  • 1,077
  • 5
  • 23
  • 31
28
votes
4 answers

How do I make a WIX MSI always remove a previous version?

I have CI build system builds an MSI whenever a developer checks in a change. We run automated acceptance tests on the installed MSI. Basically every MSI is a complete install of the product, so we don't have any versioning (ala Windows installer)…
grillp
  • 1,273
  • 1
  • 11
  • 13
27
votes
5 answers

How do I pass msiexec properties to a WiX C# custom action?

I have an MSI file being created with Wxs 3.0. My MSI references a C# custom action, written using the new C# Custom Action project. I want to pass an argument to msiexec that gets routed to my custom action - for example: msiexec /i MyApp.msi…
David Laing
  • 7,605
  • 10
  • 33
  • 44
27
votes
3 answers

Typelib Generation and Installation with WiX

After asking about what Visual Studio does to register a COM Library, it became clear that VS did two things for COM registration: Registered the COM Library Creates and registers a Type Library Visual Studio seems to do this registration using…
Robert P
  • 15,707
  • 10
  • 68
  • 112
27
votes
3 answers

What does the EXE do in the Visual Studio setup project output

We are working on a winforms app in Visual Studio 2005 and the setup project we created output both an MSI and an EXE. We aren't sure what the EXE file is used for because we are able to install without the EXE.
Scott Keck-Warren
  • 1,894
  • 3
  • 18
  • 33
27
votes
2 answers

WiX script with only Welcome and Completed screens

I need a WiX 3 script to display to display only 2 dialogs: Welcome & Completed. Thats it no need for EULA, folder selection etc. All help appreciated.
Tim Murphy
  • 4,892
  • 4
  • 40
  • 48
27
votes
3 answers

WiX: How to register application to start when Windows launches?

I'm exploring distribution of .NET desktop applications with MSI generated by WiX. So far it works great. But I've got a few questions, googling can't help out with. What's the advised way of registering application to start when windows launches…
Rinat Abdullin
  • 23,036
  • 8
  • 57
  • 80
26
votes
7 answers

Is there any definitive documentation on writing software installers?

I've read a bunch of documentation on installers and haven't come across anything good that explains the underlying concepts. Most of the installer software I've come across is based on the same "database" like structure that I just don't…
BobTheBuilder
  • 2,455
  • 2
  • 27
  • 39
26
votes
1 answer

How do I set the default install path with a windows installer?

How do I set the default install path when deploying a program using a windows installer.
user589195
  • 4,180
  • 13
  • 53
  • 81
26
votes
2 answers

Windows Installer and the creation of WiX

We currently use WiX for building our MSI files, and as such it is the only MSI builder I have had experience using. I know you can build installers natively in Visual Studio though. What are the differences between using WiX and Windows Installer,…
codewario
  • 19,553
  • 20
  • 90
  • 159
26
votes
2 answers

WiX ServiceControl Stop a service on uninstall, but don't start it on install

I need the service to stop and be removed on its uninstall, but I don't want it to start on install. The problem is, the start attribute on the ServiceControl element does not provide an option to disable starting. Or am I just missing it? I'm using…
Jonn
  • 4,599
  • 9
  • 48
  • 68
26
votes
5 answers

Installing/Uninstalling Services in Windows 7: "Error 1001. The specified service has been marked for deletion"

I am currently developing a Windows Service in .NET 4.0, Visual Studio 2010, Windows 7-32bit. I have an installer project that does the installation for me. When I install the service, uninstall it, and try to install again, I get the following…
Mas
  • 4,546
  • 5
  • 39
  • 56