msi

install a windows 7 .msi for all present and future users

If I create a .msi installer and install at the command line with: msiexec /i foo.msi ALLUSERS=1 I've installed foo for all users. If I then create a new user on the system then I try to run foo from the start menu, Windows 7 will try to install the foo package for that user. If the .msi file isn't around. it fails. Is there a way ...

ERROR: General packaging failure -- When packaging an MSI using devenv.com

Hi, I have a Visual studio C# solution for deploying a regression test setup. The solution contains class library, Console Application and deployment (.vdproj) projects. The output of Class Library and Console Application projects are added as files to be packaged in the deployment project. There is one project (lets call it content.csp...

Setup Project Custom Action in C++ "[TARGETDIR]"

I am trying to copy file into the setup target directory. I am using this: TCHAR destPath[ MAX_PATH ] = &L"[TARGETDIR]"; wcscat_s(destPath, L"[email protected]\\Capture.png"); CopyFile(L"C:\\Users\\waldek\\Desktop\\Capture.png", destPath, 0); if I use this: CopyFile(L"C:\\Users\\waldek\\Desktop\\Capture.png", L"C:\\Program Files (...

Should the App.Config be a companion file to the application or go in its own component?

When I create a Windows Installer package (say using WiX) and I install the application App.exe as well as the App.exe.config should the config file have its own component or should it be a companion file to the application executable? <Component Id="C.App.exe"> <File Source="App.exe"/> </Component> <Component Id="C.App.exe.config"> ...

MsiTran Error 110

I'm trying to apply a transform to my msi file. I've created the transform using Orca (new transform->generate transform) and when I run it with MsiTrans I get Error 110. Error Opening Database. Does anyone know what this is or how to fix it? Thanks ...

WIX: persist session data between C# CustomActions and subsequently displayed WIX Dialog

I am new to WIX and have been tasked with creating an installer that does the following: *Deploys a build of our application without overwriting the App.Config file for the application *Loads the key/values in the App.Config file and prompts the user with the "defaults" (existing values) and allows them to modify them before finishing ...

How to deploy a Office 2010 add-in with Visual Studio 2010 setup & deployment?

We have an error during the installation after running our installation: Component Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64) has failed to install with the following error message: "A failure occurred attempting to install the Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)." T...

How do I do whatever it was that the Windows Installer CleanUp Utility did?

Microsoft's "Windows Installer CleanUp Utility" could be used to help fix broken installations of MSI-installer based products. When the installer failed in some strange way and left corrupt data behind, so bad that even Add/Remove Programs couldn't help, you could often fix things by running this utility and then running the applicatio...

Setting Public Property in msi Custom Action

Is it possible to set a public property (say MYPROPERTY) from a C# custom action? I can read properties with Context.Parameters["MYPROPERTY"] that I pass into the custom action data but is there a way to set them too? Thanks. ...

MSI Desparation. MSI WILL NOT REGISTER DLL

My MSI installer will NOT register DLL on XP. On Vista it won't register unless I am an administrator. and on Win7 it will RANDOMLY register the DLL or not. After the MSI won't register the DLL, Users are forced to go to the install folder, type "regsvr32 mydllname.dll" - and then everything works (which proves the DLL is healthy and fi...

Command line option to tell msi installation to a specific location

Is there anyway to install the msi at specific location through the command line. ...

access Error table in msi

Hi All, Basically I am trying to make a localized copy of an existing English msi file. If I rebuild the MSI with proper wxl file n code page it takes a long time, and I need my installer in more than 25 languages. I am able to access all other local strings like text on controls n all but I couldn't find the way to change the error tabl...

Multiple Python Installations of the same python version on a single computer

I want to install the new Python 2.7 on my Windows XP 32bit PC. having CDO (thats OCD with initials sorted in alphabetical order) I want to install it multiple times on the same computer (to different TARGETDIRs). how do i do that ? double clicking on the installer, or running msiexec multiple times did not work for me Coincidentally,...

32bit MSI: Converting shortcut target path of 64bit app to 32 bit Path

Hi I'm working on a deployment project (Wix based) which is used to deploy an application to run with AutoCAD and create shortcuts of AutoCAD's acad.exe while passing its own argument. To achieve this, there is a Custom Action dll (C++) which iterate through Autocad's registry keys and get the "acad.exe" location and create/update the ...

Why isn't my Registry Launch Condition working in my Windows Installer file?

I'm trying to check for SharePoint 2010 being installed before permitting the installer to continue. In order for this to happen, I added the following "Search Target Machine" property: Name = "Search for MOSS2010" Property = SHAREPOINT2010INSTALLED RegKey = SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0 Root = vsdrrHKLM Val...

WiX installer remove files on uninstall but not on upgrade.

I have a program that installs with a WiX installer. The program itself creates a number of files in the [CommonAppDataFolder]\[MyAppName]\ directory. These files all have the same extension (lets call it .dat). On upgrading, I want to retain these files. On uninstalling, I want to remove these files. I am currently deleting the fil...

Exe version in MSI installer file name (VS 2010)

Hi, is it possible to make Visual Studio 2010 installer output file name, containing exe version, something like "setup[MajorExeVersion][MinorExeVersion].msi"? Thanks! ...

Cancel an MSI without showing the "installation interrupted" dialog.

I am wondering if it is possible to have the "Cancel" button on my welcome screen completely quit the installer without showing the final "Installation interrupted" dialog. I consider this redundant when the user hasn't even begun the installation yet. I still want the dialog to be shown if the user cancels an installation that has alre...

MsiSetProperty from C# custom action

action1How do I set a MSI property from within a C# custom action, so far I have this but how do I get the handle? [DllImport("msi.dll", CharSet = CharSet.Unicode)] static extern int MsiSetProperty(IntPtr hInstall, string szName, string szValue); public void SetProperty(string propertyName, string propertyValue) { MsiSetProperty(ha...

WiX doesn't remove registrykey on uninstall

I've created an Component with an Condition DISABLEMSIUPGRADE, which get's set when I install the MSI using our ExternalUI. However, MSI doesn't remove the entry on UnInstall. I think the problem is caused by the Condition, but I can't fix it. <Component Id="compMSI" Guid="5f18af6a-b839-4b4d-9d4f-79cf7826f749"> <Condition>DISABLEMSIUP...