custom-action

Getting location of setup.exe in custom action

Hello, C# 2005 I am using a installer class as I need a custom action that will read in a xml config file. So when the user double clicks the setup, there will be a config.xml file in the same folder. I would like to read in this config.xml file on install event. The folder will contain setup.exe and config.xml However, it can't fi...

How do I pass msiexec properties to a Wix C# custom action

I have an MSI being created with Wxs 3.0. My MSI references a C# custom action, written using the new C# Custom Action project (http://blogs.msdn.com/jasongin/archive/2008/05/23/custom-action-project-templates.aspx) I want to pass an argument to msiexec that gets routed to my custom action - eg: msiexec /i MyApp.msi ENVIRONMENT=TEST# ...

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...

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...

Wix: How can I set the property after CustomAction? Do I need CustomAction??

Hi, I want to install a plugin with the Wix Setup. On the computer, there could be installed more versions of the application, so the user has to decide, which version should be used. The applications are written in the registry in this way: HKLM\Software\Company\Application\Version .... That meas that the key HKLM\Software\Company\Ap...

Custom action handler for plugged in camera on Windows

My application needs to detect that a camera is plugged in and automatically import all photos. I have been googling for quite sometime with no luck. a. How do I list my app in the list of actions for camera devices? I guess this is about setting my app with some registry key. b. Once my app is launched, how do I read from the camera d...

VS setup projects custom parameters

Hi I've created a Visual Studio Setup project which generates a .msi file that installs a windows service. That worked perfectly fine. It also asks for the user/pwd for the windows service identity during the installation process. My problem came up later. I was modifying the setup project to ask for more information to the user so I ca...

Force GAC installation before running .NET custom action?

Hi, I'm using a VS 2008 Setup and Deployment project to deploy a mixed managed / unmanaged application. I've had trouble registering mixed-mode DLL's using the built-in registration property ("vsdraCOM" enumerated value of the "Register" property.) As a workaround, I've added a .NET custom install assembly (with a class that derives f...

Custom action on uninstall (clickonce) - in .NET

For a .NET application installed using ClickOnce, is there any way to run a custom action during the uninstall process. Specifically, I need to delete a few app related files (which I created on first run) and call a web service during the uninstall process. Any ideas? ...

Force Reboot from Custom Action in Msi in C#

How can we prompt for a computer restart after install from within a C# custom action? We are using VS 2005's setup project for our setup, and we need to programmatically decide to prompt for a restart (so it will not happen on every install, just on some). UPDATE: We're looking for something that is already built into the MSI custom a...

How to return a value from custom action script in a VS2008 setup project

Hi all, I'm creating a setup project and I need to execute a VBScript file as a custom action, but I don't know how to return a value from the script to the installation. I need to do this, because I want to decide in the script whether the installation should continue or fail. thanks in advance. ...

C# custom action in Wix

When my application is uninstalled, the server needs to be notified so that it can free up the license key assigned to the client. This is done via a web service call. I created a C# custom action that does this. The problem is, the uninstaller is quitting saying that it couldnt find a dll. The error log for the msi contains the foll...

setup project with windows service installing more then one to different directories

I am writing a service that will run on a machine to push and pull files from one location to another. I want to create an installer that will allow the user to name the service during setup (and description later.) I found this post (http://stackoverflow.com/questions/1070885/specify-windows-service-name-on-install-with-setup-project)...

Prepare a 64bit setup.exe from basic msi project Installshield 2009 premier

I'm deploying 64bit dlls, exes by setting each component's 64bit component = yes and setting "General Information->Summary INformation Stream->Template Summary = x64;1033". All things are ok, but the produced setup.exe when i run it, from task manager i notice its a 32 bit exe. How to make it a 64bit exe? Why I wanna do it: In custom a...

How to test custom django-admin commands

I created custom django-admin commands But, I don't know how to test it in standard django tests ...

WiX VC++ Redist SourceFile [CommonFilesFolder]

I'm trying to add the Microsoft_VC90_CRT_x86 merge module to my WiX installer but am having an issue specifying SourceFile. Rather than copying the .msm file within the scope of my build in my make script I would like to access the .msm where it lives on the build system (C:\Program Files\Common Files\Merge Modules). Despite [CommonFiles...

Installing a certificate in a .MSI Custom Action doesn't work properly.

I'm trying to install a certificate in the Local Machine Store in a custom action. The certificate is installed, but when I use it to query AWS, I get this error: Object contains only the public half of a key pair. A private key must also be provided. The installer is running elevated, the target is Windows Vista. If I use a s...

Custom action location and group ID, SharePoint

I'm working with MOSS 2007 and want to install a list feature that will be accessible on the list tool bar as a link next to "Actions" instead of placing it within one of the standard dropdown menus. Apparently, since the location of my feature will be outside of the standard Microsoft.SharePoint.StandardMenu, i'm not sure what group id...

.NET Deployment project: Custom Action that cancels uninstaller

I have a .NET deployment project. I would like to add a custom uninstall action that checks certain conditions and optionally cancels the uninstallation. Is that possible? As far as I figured out, it's only possible to define custom actions that cannot influence the main installer itself. ...

How do you add custom menu actions programmatically in SharePoint?

I need to add a custom menu action to a custom content type programmatically in c#. This is because I will not know the URL I need to link to beforehand. The URL to link to will be pulled from configuration when the feature is activated. I have tried the following: Added the CustomAction in my Element.xml file as: <CustomAction I...