windows-installer

Forcing an upgrade of a file that is modified during its initial installation

I'm working on the upgrade feature for my WiX-based installer. As part of the instalation, we are installing a web.config file and then using a custom action to update the connection strings inside the file. But this causes a problem when we run our upgrade. We would like to have the RemoveExistingProducts scheduled for after InstallF...

What is an easy deployment approach for Windows Form app that facilitates online updates and entry into StartUpMenu?

Hello: I'm developing a Windows Form application that will typically minimize to the system tray. Being new to .net, what would the easiest approach be for packaging/deplopyment that allows: The application ensure it puts itself into the startup menu, or something equivalent to this. Easy updates—like those apps that periodically che...

Is there any way to create a windows installer package in vb.net using tools from microsoft?

I want to create a windows installer package using visual studio. It is my understanding that there was a simple way to do this in vb6, you could add an installer like you can add a new form. How can I do this in vb.net? I downloaded and installed the Windows SDK from http://www.microsoft.com/downloads/details.aspx?FamilyID=c17ba869-967...

How can I upgrade Windows Installer from inside an MSI (using WiX)? Is it possible?

I've currently got an .exe that bootstraps a bunch of prerequisites (NET3.5, hotfixes, ...), including upgrades to Windows Installer (I need 3.1), and then finally runs my msi. I'd like switch this to have an .msi that does everything, and calls an embedded binary for each prereq. Hopefully this'll be less error-prone plus I can integr...

How to prevent msi error 2335 when modifying installed product?

I'm creating a msi based installer (using InstallShield) that has a custom action to start a nested install. The custom action is of type 23, the Source field refers to the second msi that is located on the source media, and the Target field contains "ALLUSERS=[ALLUSERS] ADDLOCAL=ALL". The custom action is started in InstallExecuteSequen...

Replacing DLL in Windows Installer Project

Hi, I have a Windows Installer project built for my VSTO add-in. However, I have to run one of my DLLs through an obfuscator at the end, but if I try to build the setup project with the modified DLL, it just rebuilds my original DLL and overwrites the modified one. Is there a way I can build the setup project and use my modified DLL? ...

Wix: Merge Module with multiple wxs files

So, I am trying to create a merge module where I have multiple wxs files. I thought that everything was OK since the build of my project succeeded. Later, I realized that the path used in Source attribute for one of the secondary wxs files was completely wrong but the compiler didn't give the following error: *The system cannot find the...

How do I call a batch file from an MSI

I have an msi installer that needs to call a few batch files to finish the install procedure. The batch file copies extra files from the installer to a few directories and then modifies permissions on several of those directories. We want to continue using the batch files because there is not a lot of time left in our development schedul...

How does one stop a Windows service to do an upgrade install?

I have developed a Windows service along with a setup project using Visual Studio 2008. When I do an upgrade install I get the following warning: The following applications are using files which the installer must update. You can either close the applications and click "Try Again", or click "Continue" so that the installer continues the...

How to apply a Msi transform at uninstall?

I'm trying to fix a Windows Installer based setup that is already released. The fix is for an error that occurs when uninstalling the package. For this I'd like to provide a .mst transform file that is applied before uninstalling. Is it possible to use a transform after the product was installed? Or can the transform be applied to an alr...

MsiDatabaseOpenView returning 1615 (ERROR_BAD_QUERY_SYNTAX) with seemingly valid query

I'm trying to use MsiDatabaseOpenView to manipulate an .msi installer and I am receiving an error that I cannot diagnose. When invoking MixDatabaseOpenView, the method is returning the error code 1615. The method documentation indicates ERROR_BAD_QUERY_SYNTAX as a possible error result, and 1615 maps to ERROR_BAD_QUERY_SYNTAX according...

How do I add an environmental variable, but not remove it if it already existed with WiX?

Right now, I can add an environmental variable on install with the Environment tag in WiX. Here's an example: <Environment Id="LibPath" Action="set" Name="PATH" Part="last" Separator=";" System="yes" Value="[INSTALLDIR]" /> However, sometimes, the envi...

dos command in visual studio installer project

i want to execute a command say "net start "servicename" from within installer, i can't use custom actions any ideas? ...

Create Installers for Add-ins using Visual Studio?

I need help building a customized Installer using visual studio 2008 to install Office 2007 (add-in) tool bars that I have made. How can I create installers for Add-ins I've made? ...

Microsoft Setup Projects for services and automated removal previous versions.

I have an application that runs as a service. I have altered the services installer object so that I can pass setup data to it from a user input screen on the installation/setup project. This all appears to work well apart from the following points: Installation is error free UNLESS there is a copy of my service already installed on ...

Visual Studio: Conditionally Create Shortcuts in Setup Project?

I am working on a Setup Project in Visual Studio, and I would like the user to be able to specify whether to create a Desktop Shortcut and/or a Start Menu shortcut to the program by using checkboxes. I am able to have the installer to create working shortcuts in the appropriate locations, and I added a dialog containing checkboxes to th...

Need To create MSI for SourceForge PDFCreator

Hi, I am using sourceforge PDFCreator source code & made some changes, now I want to create a installer of the same. What is the best solution suggested as I am not getting any clue/help from any forum on how to deploy the same. Thanks. ...

install visual studio 2008 TS when I cant install windows installer?

Hi all, I needed to Add/Remove some things from my Visual Studio 2008 TS installation. I ran the setup but then I got the following error: "A problem has been encountered while loading the setup components. Cancelling setup." This error is handled in the VS2008Readme.htm where they say: To resolve this issue: 1. Go to Windows Instal...

WiX "Major Upgrade" doesn't completely install app on downgrade

Currently all upgrades work fine whenever updating to a newer version number, however I'm getting an odd behavior when downgrading. It seems that it'll uninstall the existing version and then partially install the version that I'm trying to install, the main exe doesn't exist in the target location yet, but advertised shortcuts are crea...

TrustedInstaller is preventing registry writes to HKCR\DirectShow\MediaObjects\Categories

Hi, I'm trying to install a DMO which requires me to write to HKCR\DirectShow\MediaObjects\Categories\57f2db8b-e6bb-4513-9d43-dcd2a6593125, this registry path is protected by TrustedInstaller and it seems that this protection is new in Windows 7 (it work on previous platforms). How am I suppose to install DMOs? There are plenty of p...