windows-installer

How do I modify machine.config via an .msi package

I'm trying to create an installer that will deploy a .NET Managed data provider. In order for the data provider to appear as a provider in application drop-downs, I have to add the provider in the machine.config's section: <system.data> <DbProviderFactories> <add name="My Data Provider" invariant="Sample.MyDataPro...

Running an installer on Vista without turning UAC off

My msi installer cannot be installed on a Vista machine without turning UAC off. As my application is going to be distributed to my clients, around 20 machines, and they do not want to turn UAC off, is there a way that I can set some property which would allow my installer to run silent without any user interaction when UAC, which is ena...

Software Versioning: Difference in Windows Installer and .Net Version

Microsoft is promoting .Net for over 8 years now. .Net assemblies are versioned using 4# versioning like major.minor[.build[.revision]]. Ref here While, Windows Installer still suggests 3# versioning like major.minor.build. Ref here With the difference in versioning in two systems. It is not straight to map .Net assemblies version to...

How to upgrade an MSI install using Inno Setup installer?

We recently moved from a Visual Studio setup msi-based installer to Inno Setup but we're having issues with upgrading existing installs using this new installer. I know that the upgrade code remains static even as the product code changes every update, so I initially tried to set that as the AppId in the Inno Setup project, but that doe...

How should I ensure that my Visual Studio installer updates DLLs when installing an older version?

I recently noticed that my installer (VS 2008) does not remove the DLLs during uninstall. This is not too much of a concern to me but the following is a concern: when I install an older version of my software, it does not overwrite the DLLs -- it keeps the newer version. When I am rolling back my system to an older version, I would li...

Permissions in Vista

I am making a call to: config.Save(ConfigurationSaveMode.Modified); and this call works fine in Windows XP. When I run it in Vista I get: Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Configuration.ConfigurationErrorsException: An error occurred loading...

How do I configure the name of a Windows service upon installation (or easily at compile time)?

I've created a Windows service in C#, installed it on a server and it is running fine. Now I want to install the same service again, but running from a different working directory, having a different config file etc. Thus, I would like to have two (or more) instances of the same service running simultaneously. Initially, this isn't pos...

How do I determine if a computer is running XP Service pack 3

Using either the registry or the file system. The reason for the restriction is that I am doing this as an MSI conditional statement. Cheers! ...

How to run application after installation completed

I have created msi package.Before installation completed only my application is running.I want to launch my application whenever i check the checkbox. After checking the checkbox only my application has to start. any suggestions plzz.. ...

How to prevent "This program might not have installed correctly" messages on Vista

I have a product setup executable that copies some files to the user's hard drive. It's not a typical installer in the normal sense (it doesn't add anything to the Start Menu or Program Files folders). Each time the setup program is run on Vista, after the exe terminates, Vista produces a task dialog: This program might not have inst...

How Do I ensure that my MSI project is built into a package that is compatible with a specific msiexec version?

I have a windows installer (MSI) project. I want to ensure that when i build it , it will be compatible with msiexec version 4.5. ...

How to have a URL Icon in a Visual Studio Setup Project?

I have a winforms application which is deployed with a standard windows installer (MSI), created in visual studio. I would like to create a custom shortcut which launches a specific URL. The shortcut needs to have a custom icon associated with it too. All I can find is the ability to add a shortcut to an item in the project files (out...

Multiple .NET Configuration Files and Setup Project Problem

In order to handle settings for different deployment targets, I moved application settings from app.config to its own file and included that file in app.config via configSource. I also created a settings file for each target.Here is an illustration: Project A app.config (references settings.config) settings.config settings.Rel...

Updating <appname>.config file from an Custom Installer Class Action.

I've tried updating my application's .config file during installer (via a .NET Installer Class Action). But, I can't seem to get ConfigurationManager to list any properties or be able to set anything. I learned of this approach from several stackoverflow posts that pointed me to this guide: http://raquila.com/software/configure-app-con...

Is there any definitive documentation on writing software installers?

I've read a bunch of documentation on installers and haven't come across anything good that explains the underlying concepts. Most of the installer software I've come across is based on the same "database" like structure that I just don't understand at all. All of the documentation that comes with the various products - i.e. WiX, Ins...

What directory should my installer install an app on Vista?

I've nearly completed developing a game for Windows and I'm curious where I should have the installer install it. I know it used to be in "Program Files" but has that changed under Vista? I know that World of Warcraft now installs under Users/Public/Games... what is the Microsoft-recommended location for games? ...

Always update files in minor upgrade (how to)

I am creating an install package using InstallShield Pro X. The upgrade works properly. However, the product manager wants the upgrade to replace all files on an upgrade even if the create date != modify date on the file. I see that to do this I need to set REINSTALLMODE=vamus rather than vomus. However, I don't see how to tell InstallS...

msi installer for wcf service

Is it possible to create a msi installer to host WCF service on IIS? ...

msiexec quiet installation when the package is already installed

I have the following problematic scenario: Problematic Scenrio Description Begin--------------------------- I use msiexec to install a package in quiet mode in the following way: msiexec /i c:\mypackage.msi /quiet Now I have the package installed. Let's say I entered the command above again: msiexec /i c:\mypackage.msi /quiet Pro...

Is it possible to monitor installations by the Windows Installer Service?

I would like to monitor what applications get installed by the windows installer service. The idea is to monitor the windows installer service to find out what applications/utilities are being installed, this includes the installation source and settings provided by the user. I would like to keep track of installations the user does so ...