8,965 questions
252
votes
12
answers
144k
views
How to implement WiX installer upgrade?
At work we use WiX for building installation packages. We want that installation of product X would result in uninstall of the previous version of that product on that machine.
I've read on several ...
187
votes
9
answers
148k
views
How to add a WiX custom action that happens only on uninstall (via MSI)?
I would like to modify an MSI installer (created through WiX) to delete an entire directory on uninstall.
I understand the RemoveFile and RemoveFolder options in WiX, but these are not robust enough ...
184
votes
4
answers
45k
views
Wix: single MSI instead of msi + cab
My Wix project creates install.msi and cab1.cab. How can I have it bundle everything into the msi? I will likely use 7-zip SFX to work around this but I have seen other apps with only a single msi.
154
votes
15
answers
489k
views
How can I uninstall an application using PowerShell?
Is there a simple way to hook into the standard 'Add or Remove Programs' functionality using PowerShell to uninstall an existing application? Or to check if the application is installed?
130
votes
8
answers
263k
views
Create MSI or setup project with Visual Studio 2012
I create a small application and I would like to create one MSI file.
In Visual Studio 2010 you have this project type under:
Other Project Types -> Setup and Deployment -> Visual studio ...
114
votes
3
answers
447k
views
Silent installation of an MSI package
I have a MSI package that I need to install if the package is not already installed. Also I need to install it silently. The package prompts user for:
Installation location (C:\Program Files\Foobar)
...
105
votes
10
answers
119k
views
Installing multiple instances of the same windows service on a server
So we've produced a windows service to feed data to our client application and everything is going great. The client has come up with a fun configuration request that requires two instances of this ...
92
votes
5
answers
66k
views
What installation product to use? InstallShield, WiX, Wise, Advanced Installer, etc [closed]
I'm currently doing some investigation on moving off of the installation package we currently use (Wise Installer 9) and moving to something that will handle things like Windows Vista, Windows 7 ...
90
votes
9
answers
226k
views
How can I create an MSI setup?
I've created setups for all my Delphi tools with Inno Setup for years. Now some users rather want an MSI installation package, so they can deploy the setups from a central server to all workstations.
...
90
votes
11
answers
46k
views
Good resources for learning how to create MSI installers from WiX [closed]
I've given up trying to apply lipstick to the pigs of installers that come out of Visual Studio and have decided to look at WiX.
What resources would you recommend to learn and reference?
(Note - ...
80
votes
8
answers
35k
views
Free software for Windows installers: NSIS vs. WiX? [closed]
I'm need to choose a software package for installing software. NSIS and WiX seem promising. Which one would you recommend over the other and why?
Feel free to offer something else if you think it's ...
75
votes
3
answers
44k
views
How does one auto update a windows application the way Google Chrome does? [closed]
Google Chrome auto updates itself every five hours. I want to clone this exact functionality in my own application. What is a way to implement this functionality on Windows?
74
votes
3
answers
42k
views
How to pass CustomActionData to a CustomAction using WiX?
How are properties set on CustomActionData to be retrieved by a deferred custom action?
70
votes
6
answers
67k
views
Create shortcut to desktop using WiX
How do I create a shortcut on the desktop from a wix setup project?
69
votes
8
answers
315k
views
Extract MSI from EXE
I want to extract the MSI of an EXE setup to publish over a network.
For example, using Universal Extractor, but it doesn't work for Java Runtime Environment.
63
votes
7
answers
75k
views
How do I bundle a Python application including dependencies into a Windows Installer package for distribution? [duplicate]
I need to package my Python application, its dependencies, and Python itself into a single MSI installer for distribution to users. The end result should desirably be:
Python is installed in the ...
62
votes
9
answers
73k
views
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment
I have Win 10
When running:
conda update conda
I encountered this error:
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.
Nothing seems ...
58
votes
2
answers
131k
views
Create an MSI log file
I have been trying to create a log file for an issue with our installer with the following commands:
msiexec /i "installer.msi" /l*v "log.log"
msiexec /i "installer.msi" /l*v
msiexec /l*v /i "...
56
votes
8
answers
70k
views
Run exe after msi installation?
Using Visual Studio 2008 to create an msi to deploy my program with a setup project. I need to know how to make the msi run the exe it just installed. A custom action? If so please explain where/how. ...
51
votes
5
answers
84k
views
Using InstallUtil and silently setting a windows service logon username/password
I need to use InstallUtil to install a C# windows service. I need to set the service logon credentials (username and password). All of this needs to be done silently.
Is there are way to do something ...
50
votes
2
answers
20k
views
Why does my WiX installer need an empty CreateFolder to conditionally update an Xml file?
TL;DR: Why do I need an empty <CreateFolder/> element in this conditional component in order to make it work?
I'm putting together a simple WiX based installer for an in-house application. This ...
48
votes
1
answer
26k
views
Image size for BannerBitmap property in Windows Installer
I'm working on a quick setup program in Visual Studio and wanted to change the banner bitmap. Anyone know off-hand what the ideal (or the required) dimensions are for the new banner image? Thanks.
45
votes
3
answers
39k
views
Wix: How to set permissions for folder and all sub folders
I know how to set the permissions for a folder:
<DirectoryRef Id="ProgramFilesFolder">
<Directory Id="PHPFolder" Name="PHP">
<Component Id="PHP_comp" DiskId="1" Guid="*">
...
44
votes
11
answers
207k
views
How to find the UpgradeCode and ProductCode of an installed application in Windows 7
I have an application installed on my machine. I also have its source code but somehow the ProductCode and UpgradeCode of this application were changed.
Now I want to get the UpgradeCode and ...
41
votes
4
answers
48k
views
How do I do a silent install and uninstall with WiX and MSI?
How can a silent installer be created in WiX that does not display any UI dialogs to the user and installs, upgrades and uninstalls with default settings?