windows-installer

How to prevent from Installer.Commit() from running?

I need to prevent of running Installer.Commit method in my CustomActions managed code. If I just do nothing inside overrided Commit method, it still commits (it creates an element in Programs and Features list) and I don't want that. If I say base.Commit(null) it stops, but popups an error. How can I do this silently without any message...

Combine Windows in Win-7 style

Is it possible to combine two dialogs on taskbar in windows 7 fashion, if one of them is an unmanaged window. For example - I have a setup project and CustomActions library written on managed code. I'm opening a form in my CustomInstaller class. I know it's sounds crazy, but I suppose there is a way to combine them together on the taskb...

Starting an uninstaller from code

I would like to add an "Uninstall" button to my program that will start the uninstaller to remove the program and then immediately quit. What's the best way to a) determine if there is an uninstaller present, and b) find the correct uninstaller and launch it? Can I use the registry in a reliable manner? I recall using the registry befor...

Cancel an MSI without showing the "installation interrupted" dialog.

I am wondering if it is possible to have the "Cancel" button on my welcome screen completely quit the installer without showing the final "Installation interrupted" dialog. I consider this redundant when the user hasn't even begun the installation yet. I still want the dialog to be shown if the user cancels an installation that has alre...

WiX Installer: How to switch to repair-mode if already installed?

I am new to WiX 3.0 and writing my first installer based on WiX (coming from Wise). If the product is already installed (in the current version), I want the installer to switch to "repair"-mode automatically. It should behave exactly like as if I would have clicked "repair" in the Windows software dialog. It must behave like this to f...

How can I make the SourcePath property of a file in a Visual Studio Setup and Deployment project (Windows Installer) relative rather than absolute?

I've got a relatively simple project that is under source control (svn), and I wanted to create an installer. I know that I could (should) use WiX, but as I'm new to creating installers I thought it'd be easier to just use the built-in Visual Studio (2010) Setup and Deployment Wizard. Unfortunately, it seems that files including externa...

How to properly add file associations to the Windows Registry?

What data and where, should I add to the Windows registry to properly create a file association? I ask this question primarily because of some old applications that I wrote years ago, which used Visual Studio .NET's Windows Installer packager to create the file associations. The extensions I installed were .whr and .encxml. Now, on the...

Installer Running When Application Launched As Different User

I have an installer built using WIX 3.0 and have a problem when trying to run the installed application as a different user than the user that ran the installer. When I try to run the installed application as a different user than the user that ran the installer, the installer tries to run again (it's already installed at this point) an...

How do I write an installer for a Windows SDK in Python?

I understand that NSIS supports plugins, but I can't find an NsPython tutorial. Maybe first I should ask: if I can run Python code from NSIS, is it a good idea to script my installer in Python (instead of explicitly managing a stack in an NSIS script)? And secondly: are there any good tutorials? Alternatively: Is there another appro...

Silent Administrative Install - Specifying an installation directory

Hi, I'm currently trying to add some testing functionality into our builds, and in order to do this I need to be able to perform an administrative install, silently. However, I need to be able to specify the location that it installs too, as the default is on the company-wide network which is no use. I was wondering if there was a way ...

MSI: Start service unless user choses to reboot machine

I am working on MSI installer which installs and starts the service. It may or may not replace files in use. When it does, there is a prompt to reboot machine at the end of install. Service runs lengthy initialization on the first startup, which is undesirable to interrupt by shutdown. What I am trying to do is to prevent service from s...

Install builder for Java application

I am looking for a framework to create an install kit for my Java web application. I need something that would install JBoss, a Database Server, Java, and of course the application itself with all the dependencies and settings on a Windows platform. I prefer free tools. What do you recommend and why? ...

Windows mobile msi installation file fails

I have a Windows Mobile Professional 6.1 CF 2.0 application, I created a windows installation package with this link below: http://msdn.microsoft.com/en-us/library/bb158529.aspx My .ini file is: [CEAppManager] Version = 1.0 Component = netcf.core.ppc3.armv4.cab [netcf.core.ppc3.armv4.cab] Description = installation module CabFiles = ...

NSIS decompiler

Anyone familiar with NSIS decompiler (google wasn't :-) ) Thanks, E ...

How can I capture if a dialog box is on screen in Powershell?

I am writing a script to automate an installation package. Annoyingly, there is no "silent" installation mode. (Actually it's "half silent" - it runs in the background and then pops up with a dialog box telling the user to reboot.) I want to automate this, by detecting the dialog box has appeared and then either terminating the process ...

Are Distributed Transactions a good idea for enabling rollback of database upgrades in Windows Installer Custom Actions?

I've outgrown the Sql Server custom actions available in WiX, so I'm taking the bold step of creating my own using Deployment Tools Foundation. I want to be a good citizen and make sure that mine support rollback. But what's the best way of doing it? I need to support SQL Server 2005 and later, all editions. The problem, as I see it, i...

How can I insert the greater- and less-than characters into an XML file modified by WiX during install?

I'm using WiX to author a Windows Installation database for my application. I've got an XML file that is installed along with my app, which needs to be filled with information obtained during installation. The WiXUtilExtension tags util:XmlFile and util:XmlConfig are great ways to do this, in principle, but they don't quite solve my prob...

What would cause a Windows Installer package to lose its progress status?

I have a WiX installer project which has recently been producing installers that don't show any file installation progress. That stage takes around 30 seconds to complete, and users may think that the install has hung since the progress bar remains empty until the install suddenly completes. I know there used to be a progress bar for th...

Are there any caveats to using ClickOnce in VS 2010 to deploy "real" applications?

It always seemed to me that ClickOnce was a handy way to deploy .NET applications in an intranet environment. I was thinking of using it as the deployment method for a desktop application that's distributed over the internet to general users. (The alternative would be a regular installation package.) Does anyone have experience with t...

Close running version of program before installing update (Inno Setup)

This should be simple, I need to stop any previous version of my program from running when the installer starts. Most people suggested making an exe which does this and calling it before Inno Setup starts. I careated an exe using AutoIt which kills all processes of my program. The problem is I don't know how to get InnoSetup to call ...