windows-installer

Does custom action dll-s for msi installer have to be created with Visual Studio only?

I have created setup project with Visual Studio. I also need some custom actions - created DLL with Visual c++ and it works just fine but i don't want to include visual c++ runtime files to my project. So is it possible to build this dll with some other c++ compiler? I have tried to make make it with Dev-c++ but when compiling i get few...

Starting services that depend on side-by-side assemblies using Windows Installer

Hi, We are in the process of updating the construction of our product's .msi package for Windows Server 2008. The main component of our install is an application that is run as a Windows service. There is also a configuration application that gets run during install to set up registry entries for use by the service. The service and t...

How do I run a custom action AFTER files have been deleted during MSI uninstallation?

During uninstallation of the Visual Studio Integration Package that I am writing, I need to run "devenv.exe /setup" to update the VS UI and remove the package info from the splash/help screen. However, it must run after all the add-in and package files have been deleted. My current setup (using an Installer class custom action called du...

Add user group to another user group with wix v3

I need to add group within a group e.g. COMPUTER\Users group to the "Backup Operators" group. Wix provides a way to add a user to a group using the GroupRef Element but does not seem to provide an obvious way to add a group Can this be done? If so how? ...

How do you make an update installer with NSIS?

I currently have a project with an installer I made with NSIS, but I would like to have an update to new versions that only has the changed files and will show a changelog. The target platform is windows. What methods/suggestions do you have to do this? ...

How to include Uninstall MyProgram.exe in visual studio while creating package in c#

I have developed a wpf application and created setup for that. I am using windows installer for creating setup package. Now I want to include uninstall MyProgram.exe in start menu after installing my package. I am able to add the exe to run my program after installation. I want to include uninstall MyProgram.exe, ReadMe file, Help File i...

Run batch file in Windows Installer Commit

I am having no success in modifying a Windows Installer MSI to run a batch file after the primary output has been installed. I have searched for this and found many suggestions, but nothing that works. Add a Custom Action Custom actions can only be executable files. A batch file is not executable. Create a Windows Scripting Host execu...

Why doesn't my new Windows Installer file (MSI) install properly over an older version of the MSI?

Symptoms I have newly created setup package (MSI) that installs a new version of my application. I have a new ProductCode for my installation but I have left the UpgradeCode the same. So when I execute the new MSI it first uninstalls the old version correctly. Even the Program Files\MyProduct directory is removed. But after uninstall...

How can I configure ASP.Net membership providers through code?

We're using ASP.Net membership providers (the SQL Server provider), and I want to be able to set up an Admin user account as part of our installer. To do this, I need the ASP.Net membership provider configured so that my installer can use it - but I don't want to have to set up a config file for the installer. So is there a way of confi...

C# Deployement retaining files over an installation

Hi All, I have created a Setup and deployment project using the Visual studio and install the setup. After i install the setup it copies a few files(XML) which on using of the application are configured programmatically . Now , If the user is reinstalling this setup again i need to ask the user whether these configured files need to be...

Application Deployment

I deployed an application using this method and it worked very good. However, there are 2 missing things that I been trying to find but can't: 1) How do I include resource files in the installation? I have a folder with files that have some user data, and those need to be there after the installation so the application can run, this is ...

Wix UI conditionals best practices

I have a fairly complicated installer that I'm writing in Wix that has a lot of custom dialog options based on which components you're installing. Generally, defaults are fine, and thus an unattended install would succeed, but having this customization helps things. What I'm wondering is, what are best practices in Wix for doing UI con...

Install Shield 2009 Premier : Install Windows Installer 3.1 or 2.0 (best fit for system) with any sysem restart

Basic MSI project, from release wizard I chose Install Windows Installer 3.1 or 2.0 (best fit for system), extract from setup.exe. When in installation, after installing Windows installer system restarts. Can this restart be stopped anyway? ...

WiX: How to register application to start when Windows launches?

I'm exploring distribution of .NET desktop applications with MSI generated by WiX. So far it works great. But I've got a few questions, googling can't help out with. What's the advised way of registering application to start when windows launches (in WiX)? What WixUI could I use and how? Notes: The application is not a Windows Ser...

WIX - Creating Shortcut to desktop for an existing file on the filesystem

I've been tasked with creating some shortcuts to the desktop when our app installs. Most of these shortcuts belong to our own app and its deployed files but a couple belong to other executables that already exist on the target system (such as Sharepoint Central Admin). For the shortcuts I need to deply for our own app I think an unadver...

Problem with "...may require additional dependencies..." during patch (MSP) installation

Symptons I have a newly created patch. It installs over the RTM installation without problems. But it displays the following message, "This installation may require additional dependencies. Without its dependencies, [My App] may not work correctly. Would you like to find the original [My App.exe]?" Since my original setup is a single f...

Capturing all changes during an application install on Windows

Hi, I need to monitor and report on all changes (folders and directories added, permissions changed, registry entries added) that are made during the installation of a software program. Can anyone suggest a tool that is capable of doing this? Thanks, MagicAndi. ...

Detecting and suppressing REINSTALLMODE=v switch

Summary:: is it possible to detect REINSTALLMODE=v switch (passed to the msiexec) from within the WiX script code and disable it? Story. Our software has been using auto-updates delivered with MSI minor upgrades (downloaded automatically and invoked as REINSTALL=ALL REINSTALLMODE=vomus). This was version 1.x. Obviously, minor upgrades...

How can one programmatically reorder Handler Mappings in IIS7?

We have an installation that creates a handler mapping for a website. Using the IIS7 Admin pack, I've come up with some jscript that sets this up successfully. However, our developers have the requirement that this particular handler mapping be at the top of the ordered list of handler mappings. I discovered that you get to this view ...

how to install dotnet framework+Windows installer 3.0 using VS2005 setup project?

i have included DotnetFramework, Windows installer in VS Setup Project through Setup Project ->properties but while run setup.msi it ask me to download dotnet framework from online i would like to eliminate the process, it should be run from local folder ...