installer

Visual Studio setup and deployment: create package with optional components?

Let's say, for example, my application supports Epson printers and Canon printers. I would like to have an option during installation, maybe radio buttons or, better, checkboxes (to have an option to choose both) that would say 'Install Epson drivers' and 'Install Canon drivers'. Then, based on user selection, the setup package would ...

InstallAware database rollback

Does anyone know how to make InstallAware do a rollback of a database when the user clicks 'Cancel'? Unlike InstallShield I'm not seeing any way to specify when individual scripts run. ...

Batch Script to Install or Uninstall a .NET Windows Service

I have no experience writing batch scripts, but I was wondering if there was a way to install a .NET Windows service using installutil.exe using such a script, or uninstall the service if it is already installed, ideally with some kind of confirmation that I actually would like to perform the uninstall (e.g. press y to uninstall). Here ...

Recommended .NET app installer?

I need to create an install for my app that executes the following actions: Copies files Writes registry settings Registers a windows service Writes an XML app.config file (based on user supplied info during install--a connection string) Executes SQL scripts against a remote database (connection info obtained in #4) Installs and regist...

Equivalent of double-clickable .sh and .bat on Mac?

I am distributing a Java program where I want a double-clickable file to run java -cp MyProgram.jar;MyLib.jar my.program.Main On Windows I simply distribute a .bat file, for *nix an executable .sh file. Problem is, double-clicking the .sh file just opens it up in a text editor on Mac. What should I do for Mac? ...

MSI Launch Conditions Custom Actions

I have been able to trigger C# custom actions to overrride install and committ stages of an MSI. However, when deploying an ASP.NET app I wish to be able to perform checks before the install even begins. I know that there are launch conditions, however, I would like to be able to plug in my own code here to handle checks upon launch mys...

How do you make Inno Setup not look frozen while performing a long Exec?

The long Exec is installing .NET 3.5, and out script is based off this one: http://www.blackhillsoftware.com/blog/2006/06/26/using-innosetup-with-the-dotnet-framework/ The problem is that it's using "ewWaitUntilTerminated" because we need to capture the exit code. It's made a little worse by the fact that we're running it /passive /nor...

Compact-Framework: Windows Installer Question

Hi all, I've finally finished my killer app and now I've got a bit of an issue. I've created my cab file (builds fine and installs perfectly/runs perfectly on the PDA device) and now I'm trying to create my windows installer. I've followed an MSDN article of how to create the installer (see here), however it seems to be missing some in...

Normally should it be ok to install 1.86 with the one-click installer and then overwrite the install directory with 1.9? Or should I not have done that?

I used the one-click installer to install 1.86 a while back. I wanted to upgrade to 1.9 but since there's no one-click installer for 1.9 I just downloaded the 1.91 binary and overwrote my 1.86 install. Didn't work so well. I got errors all over the place afterwards. What's the proper way to upgrade (for a dummy, i.e. me)? The downloa...

How to build a Minimal WIX Installer UI without a license page?

I would like to use the WixUI_Minimal installer, but I don't want the license page. How would you do this? ...

In my WPF project installer, how do I bundle the .NET3.5 installer?

I developed some WPF projects, but I met a very serious issue. As you know, the .Net 3.5 installation is a pain (huge and relying on internet access). This is a problem on when we ship my product. Is there a way to bundle the redistribution part only? ...

Wix Major Upgrade, what am I doing wrong?

Upgrades work fine if no components have changed, but any time a component changes the upgrade fails and it requires the user to manually uninstall and reinstall. Some snippets: <Product Id="*" Name="My Application" Language="1033" Version="!(bind.FileVersion.ClientEXE)" Manufacturer="My Company" UpgradeCode="MYGUID-b94a-44eb-8e92-9286...

Setup Project COM Registration

I have an IE BHO (a toolbar) written in C#/.NET 2.0 using COM Interop. I'm using Visual Studio 2005 to generate an MSI installer for my toolbar using the Setup Project. In my assembly, I have COM register/unregister methods using the ComRegisterFunctionAttribute, which set the registry keys that give IE some key information about my to...

how-to: programmatic install on windows?

Can anyone list the steps needed to programatically install an application on Windows. Aside from copying the files where they need to be, what are the additional steps needed so that your app will be a first-class citizen in Windows (i.e. show up in the programs list, uninstall list...etc.) I tried to google this, but had no luck. BTW...

Configuring Installer before Distribution

We develop a product which is distributed by our clients to their customers. We need to allow the administrator at the client company to make configuration changes to the installer before he sends it out to the end-user. Configuration changes in this case means a couple of registry entries to be made on the end-users computer. How do I d...

Wix Local Settings\App Data Shortcut

How can I create a shortcut using Wix with a target of "%UserProfile%\Local Settings\Application Data\Foo\Logs"? <Shortcut Id="LogsStartMenuShortcut" Name="Logs" Target="%UserProfile%\Local Settings\Application Data\FalconMobileServer\" Icon="icon.ico"/> It doesn't like the % signs in the target. ...

Installing a merge module as well as "consuming"

I've got a couple of solutions that represent a framework of code that I've built up at work. One solution called 'Framework' and another called 'Extensions'. The reason I split them is that the 'Extensions' solution contain projects that consist of extension methods, and the projects are organized so that the resulting assemblies mi...

Add a summary information to WiX generated MSI

How to add (or change a default values) a summary page information to a WiX-generated MSI file? Summary page is the tab page which is visible if you right click on the MSI file in the Windows Explorer and includes following text fields: Title, Subject, Author, Category, Keywords, Comments ...

Using WiX to create an IIS virtual directory

I'd ask this on the WiX mailing list, but it seems to be down. I have an application which is both a desktop app and a web app which runs locally. I've created a couple of basic WiX installers, but haven't yet used the IIS extension to create a virtual directory under IIS. I haven't been able to find a simple example of how to do this. ...

Canceling a programatically started SQL Server Express Install

During my application setup, the user has the option of installing a new SQL Server Express 2005 instance in the local machine if they don't want to use an already existing SQL Server 2005 in their network for whatever reason. As the SQL Server installation is optional, I don't have it as a prerequisite of my installer. Instead, I just ...