windows-installer

Setup project with managed custom actions. Big heck of a headache

I'm trying to create a setup project and I can't believe how painful it could be. Non of the tools that I've tried to use, haven't satisfy me. How come? Well, let's see: First and easiest option: Setup project built in Visual Studio. Easy and fast. you can easily implement custom actions, even if you're code was written in c# or vb.net...

Visual Studio Installer > How To Launch App at End of Installer

This is probably a stupid question and my Googling just is not functioning today. I have an application I added a Visual Studio Installer > Setup Wizard project to. I am wondering how to add a button or check box that would launch the application after successful install. This would be located on the last page of the MSI Installer Packa...

Setup Project CustomAction. How to access file

I created setup project. And then a custom actions managed code dll. Now, how can I access files in setup project or in merge module from inside of my custom actions library code? Thank you UPD: I guess there is no way to access to the files from inside of a custom action's code. So I'm thinking about embedding those files inside my d...

What does the PatchBaseline element affect in WiX patching?

In the WiX help documentation, Using Purely WiX for patching, the sample patch includes this section: <Media Id="5000" Cabinet="RTM.cab"> <PatchBaseline Id="RTM"/> </Media> and the command to build the patch references 'RTM' as well: pyro.exe patch\patch.wixmsp -out patch\patch.msp -t RTM patch\diff.wixmst The docs say the P...

Issue with Custom Action to Start Program After Update. Installer Stays Open Until Program Exit

Thanks to StackOverflow I found out yesterday how to add a custom action to the Visual Studio Installer to start my program after an update. The problem I now face is that at the end of the installer the program does open but the installer never finishes until I exit my app. Is there a way to ensure the app starts only after the user cl...

install a windows 7 .msi for all present and future users

If I create a .msi installer and install at the command line with: msiexec /i foo.msi ALLUSERS=1 I've installed foo for all users. If I then create a new user on the system then I try to run foo from the start menu, Windows 7 will try to install the foo package for that user. If the .msi file isn't around. it fails. Is there a way ...

Is it possible to mix 32bit and 64bit components with different languages in a single MSI?

Is it possible to mix 32bit and 64bit components with different languages in a single MSI? I need to Mix 32bit English, 32bit German 64bit English, 64bit German components in a single MSI. I am able to create separate 4 MSI's using Visual Studio(Setup and Deployment). Using NSIS, I can really mix 32bit English, 32bit German 64bit En...

Visual Studio Setup and Deployment - Changing installation for Single User and All Users

Hi, I have a Visual C++ Setup which I created using Visual Studio Setup Wizard. I'm trying to give the user option of selecting to install for himself only or everyone. How do I do this?? Even though I can select a radio button saying Install for All Users at install time, it did not work. I need this to work in Windows 7. I have some f...

Should the App.Config be a companion file to the application or go in its own component?

When I create a Windows Installer package (say using WiX) and I install the application App.exe as well as the App.exe.config should the config file have its own component or should it be a companion file to the application executable? <Component Id="C.App.exe"> <File Source="App.exe"/> </Component> <Component Id="C.App.exe.config"> ...

Detecting if Adobe Acrobat 9.3+ is already installed

I am using .NET Installer as a bootstrapper and I need to detect if Adobe Acrobat 9.3 or above is installed as a prerequisite. Currently I am using this registry to detect the installation: HKEY_CURRENT_USER\SOFTWARE\Adobe\Acrobat Reader\9.0\AdobeViewer\ELUA I simply check to see if the key exists. This has the following problems: ...

outlook 2007 css > remove @media all ?

good day. a consultant offered us to remove @media all declaration as a alternative to rewrite html+css to fit outlook 2007. it seems to work on initial tests. will it cause future edge-state bugs or did we really find a quick fix? thanks in advance for your time ...

How to deploy a Office 2010 add-in with Visual Studio 2010 setup & deployment?

We have an error during the installation after running our installation: Component Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64) has failed to install with the following error message: "A failure occurred attempting to install the Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)." T...

How do I do whatever it was that the Windows Installer CleanUp Utility did?

Microsoft's "Windows Installer CleanUp Utility" could be used to help fix broken installations of MSI-installer based products. When the installer failed in some strange way and left corrupt data behind, so bad that even Add/Remove Programs couldn't help, you could often fix things by running this utility and then running the applicatio...

WiX service installer and custom install events...

I have an existing (C# based) windows service that is derived from the Installer class and I currently use the MS supplied, command line InstallUtil to install it and uninstall it. This works fine and as part of my system I have attached event handlers to the AfterUninstallEventHandler and CommittedEventHandler events. In my case I sim...

Setup project Window Handler in CustomActions class

I have a CustomInstaller class (System.Configuration.Install.Installer) and basically I'm opening a dialog form at Install method. I wonder if it's possible somehow to say that 'Parent' property of that form would be the setup process window? How can I do that? ...

Setup project custom actions. How to get the info that an app is already isntalled?

Well. I have a setup project with CustomActions library from where I open a WPF Form. I know this sounds crazy, but that's what it is. And Of course I removed all crappy Setup project dialogs at Start, Progress and at the End. Now. Installation goes alright. But. When I try to use my installation for the second time, It says... nothing...

How to add publisher stuff into setup project

I've got a setup project. When It runs it says something like that As I understand I suppose to add some kind certificate or something into it. Could you tell me how? I'd rather like not to see this dialog or at least it suppose to say something about publisher. Not 'Unknown' thing. I exactlty know who the publisher is :) ...

How to interrupt installation from manage CustomActions code?

How can I SILENTLY, without any messages can interrupt an installation from its CustomActions dll written on c#? ...

Why isn't my Registry Launch Condition working in my Windows Installer file?

I'm trying to check for SharePoint 2010 being installed before permitting the installer to continue. In order for this to happen, I added the following "Search Target Machine" property: Name = "Search for MOSS2010" Property = SHAREPOINT2010INSTALLED RegKey = SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0 Root = vsdrrHKLM Val...

How to install WinPCAP from within my MSI installer ?

I am developing a product that will use WinPCAP for ethernet packet capturing. Is it possible to install WinPCAP from my own MSI or it must be installed seperately ? If it is possible to install it from my own MSI, can someone let me know how ? I also have to support silent installation. ...