windows-installer

Registering a COM server with WiX

I have been trying to determine a best case solution for registering a COM server using WiX to create a Windows Installer package and am struggling. In this post http://blog.deploymentengineering.com/2008/09/howto-use-regsvr32exe-with-wix.html there is an open request for the "Setup police" to crack down on using regsvr32 through an exe...

Add/Remove for my application showing up in roaming user account.

I've built an installer for my application by hand (don't ask why). And I set up the registry keys for its entry in the add/remove control panel under "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall". And it works fine. I need it to be under HKCU so my installer will run on Vista without asking to be elevated. The issue I h...

How do I add the interactive user to a directory in a localized Windows using WiX?

How do I add the Swedish interactive user, NT INSTANS\INTERAKTIV or the English interactive user, NT AUTHORITY\INTERACTIVE or any other localised user group with write permissions to a program folder's ACL? Is this question actually "How do I use secureObject"? I cannot use the LockPermissions Table because I undestand inherit...

How to run a script in WiX with a custom action - simplest possible example?

Newbie WiX question: How do I 1. Copy a single-use shell script to temp along with the installer e.g. <Binary Id='permissions.cmd' src='permissions.cmd'/> 2. Find and run that script at the end of the install. e.g. <CustomAction Id='SetFolderPermissions' BinaryKey='permissions.cmd' ExeCommand='permissions.cmd' Return='igno...

Best Windows Installation file Creator?

I'm not the best programmer so I found it was much easier to write a program as several separate executables, which occasionally call each other. But now I need an easy way to actually run them without writing detailed instructions like Run file one, wait until its completed and no longer in process manager before running file two, file...

Is there a way to change the name of a Start menu link name using a Custom Action

Hello, We are localizing our application and need to change the name displayed in the Start menu based on the current UI culture. We would like to do this using a Custom Action during the installation. We are using Windows Installer deployment projects and do not plan on using any third party deployment tools. Thank you! ...

VS Setup Project: Uninstall other component on install

I am Creating a Visual Studio Setup project. I want to un-install another component from the system on the install of my component. And the another component is installed from my own setup created using Visual Studio. Currently when I am doing calling the un-insatll of the other component from the install action of the component. But th...

Stopping installer inbetween.

Hi, I want to stop my installer inbetween programeticaly through my installer class.I want to do this in beforeinstall event handler.However when i call Rollback(),i donot know the IDictionary SavedState to pass as parameter.I am passing it as null due to which the rollback is throwing an exception.Does anyone know how to halt the insta...

Forcibly rollback an installer in c# setup projects.

Hi, I have created a custom action dll.I just want to check if a product with same name exists(Done).If yes tell the user to uninstall the product by throwing a InstallException.However if the products are installed in same directory the Install state of the prev product is removed & the install state of new product is copied in the bas...

VS 2005 Setup Projects: Deploy Many Projects With One MSI

I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an overarching setup ...

How do I update an Environment Variable in a Visual Studio Deployment Project

I would like to append a path to the PATH environment variable in a Visual Studio 2005 deployment project. How does one do this? ...

Installer Dialog comes up with Scroll bars on 800x480 resolution

I am building an msi using WISE. The Dialogs appear fine when run on a 1280x800 resolution screen. But when I run the same msi on a 800x480 resolution screen, the installer dialog appears really huge and you cannot see the whole dialog on the screen.However, the dialog now comes up with a vertical and horizontal scrollbar allowing you to...

What is the meaning of CHECKDB=FALSE in MSI?

When running an MSI through the command line what does passing the arguement "CHECKDB=FALSE" really do? The MSI of course can be anything from Microsoft, to Compuware DevPartner, to a programmer compiled MSI from .NET. ...

How to stop a running process during an MSI based un-install?

Hey all, I'm using Wise Package Studio 7.0 SP2 on Windows XP. I've got an MSI Wrapped EXE installation that goes about happily installing some files and then running one of the files from the installation which we can refer to as app.exe. So on the "Execute Deferred" tab of the MSI Editor, I had to add the lines: If Not Installed the...

Make UAC optional in Windows Installer on Vista

I'm have written an msi file that offers a choice of "per-user" or "for all" installation in the UI phase, and now find that the installer fails on Vista: if I just reuse the installer that works for XP, Vista will trigger a UAC prompt even for the "per-user" installation, making that installation pointless if I turn off UAC in bit 3 o...

How to get the installation directory?

The MSI stores the installation directory for the future uninstall tasks. Using the INSTALLPROPERTY_INSTALLLOCATION property (that is "InstallLocation") works only the installer has set the ARPINSTALLLOCATION property during the installation. But this property is optional and almost nobody uses it. How could I retrieve the installation...

MSI Installation Issues

I've got an MSI based install that I've wrapped in an EXE file as per my installation packaging software (which is Wise Package Studio 7.0 SP2). I've made many changes to the install, and every time I've tested them, they've worked just fine... up until now. I changed some text on a dialog box for when the installation finishes and now...

WIX: How can the registry key be changed based on the OS on which the installer is running ?

I want to set registry keys in following way if OS is Vista then HKLM\MyKey1\MyValue=1 else HKLM\MyKey2\MyValue=1 I know how to set Registry keys in WIX but it seems the condition cannot be set on element. ...

Setting the manufacturer in a VS 2008 Setup Project

I have a windows setup project that installs a service. All works well except for one thing: The default directory offered to the user during install is of the form "C:\Program Files\Microsoft\ProgramName". I am trying to modify this so that instead of "Microsoft" we would have our company's name. I found the application folder property...

Click Once - All Users

How to I configure click-once to install apps for all users. On another forum I got to 'use MSI' - thanks - but how. Also, the first installing user may not be admin - which may be a problem. And I want all users to trigger an update check. No local storage, it's a WPF client to a WCF service. We're XP, internal. ...