msi

MSI creation with Visual Studio 2008 - how to create a subdirectory?

Hello, I am using Visual Studio 2008 to create an MSI installer. I currently have all the files installed in the main directory. Is there a way to select some files to go in a subdirectory? I can find an option in Visual Studio to do that. Thanks Tony ...

C# .NET Application Crashes Immediately After Starting

I was experimenting with the Assembly and File version number. Though my program runs well from the IDE, but after creating a Setup file and installing the application crashes with InvalidDeploymentException. What should I do to resolve the matter? ...

How to package an off the shelf .net application that ships with custom code

We have an off the shelf application with hooks built in to handle customer specific needs. The custom code uses the same core libraries as our standard application. Our current process is ship the standard app via an MSI and then separately send along the custom dll. How is this typically handled? create a setup project for each ...

Based on CheckBox value show the WIX Dialog.

I have instakllation i have to show the Dialog based on the checkbox value. I have set the checkbox property as true initially. <Property Id="CHECKBOX_1_PROP" Value="TRUE" /> And show the dialog based on the check box values. If it is true i have to show the Newdoalog_1 if it is false i have to show the Setup dialog <Control Id="Next...

Show the Dialog Wizard based on the Check box value

I have to show the Dialog based on the checkbox value. Intially i have set the checkbox property=True like below <Property Id="CHECKBOX_1_PROP" Value="TRUE" /> And show the dialog based on the check box values. If it is true i have to show the Newdoalog_1 if it is false i have to show the Setup dialog <Control Id="Next" Type="PushBut...

WiX, how to prevent files from uninstalling though we forgot to set Permanent="yes"

We have a product installer created with Wix, containing a program package ("V1") and some configuration files. Now, we are going to make a major upgrade with a new product code, where the old version of the product is uninstalled and "V2" is installed. What we want is to save one of the configuration files from uninstalling, since it is...

Deploying 32 and 64 bit COM objects on 64 bit machine from one VS setup project MSI.

I have a Shell Namespace Extension C++ COM DLL that must have both a 32 bit and 64 bit version installed on a 64 bit machine, because when 32 bit applications perform a file-> open the dialog that is presented is a 32 bit shell. The problem is that both my 32 bit and 64 bit COM objects have the same progid and the VS setup project will t...

WIX - Conditions For Actions/Components depending on First Install or Upgrade

Hi, i am relatively new to Wix. I created a Setup where we can define a connection string on the first install. Now i wanted to upgrade, and have the possibility to skip some Dialogs that are only used in the first install (like the one that asks for the server and database), and i didn't want to remove some XML files that were configure...

How to export an application and its SHIM in a MSI package...?

Hi, I have an application(.exe) and its SDB file, and now I want to bundle it into an MSI package for deployment as a installer. How can I create the msi package? Are there any tools? can it be done in Visual studio? ...

WiX 3.0 Merge Module: meaning of Source attribute

What is the purpose of the Source attribute? Have a look at this snippet: <Component Id="MyComponent" Guid="123456789-abcd-defa-1234-DCEA-01234567890A"> <File Id="myFile" Name="myFile.dll" Source="myFile.dll"/> </Component> Since Name and Source have the same value, what does Source add? The code does not compile without it....

Visual Studio Set-up Project

I have created a set-up project for my solution. I have a new assembly version and have flagged it to remove previous versions. However, when I distribute the software, if a machine currently has a previous version installed it simply brings up a message saying they should manually remove any other versions. If I change the remove pre...

Web setup project removes files after upgrade from VS2008 to VS2010

I have a web setup project built using VS2008. I've converted my solution to VS2010 and now when I build my new installer and run the install from the MSI it installs fine, then at the last step, removes all the files it's just installed. I have RemovePreviousVersions set to true. If I turn this off the files remain in place (but I get ...

WiX major upgrade refuses to replace existing file!

EDIT! It's rough how a question on here seems to get seen when first posted, but when a question is asked, and then answered, for me it seems abandoned. I am still having this problem, and not sure what to do. Hello! I have inherited this project with a WiX installer, and am required to make this version usefully upgrade the previous...

How can I remove .NET isolated storage setting folders during WiX uninstallation?

I would like to remove the isolated storage folders that are created by a .NET application when using My.Settings etc. The setting files are stored in a location like C:\Users\%Username%\AppData\Roaming\App\App.exe_Url_r0q1rvlnrqsgjkcosowa0vckbjarici4 As per this question StackOverflow: Removing files when uninstalling Wix I can unin...

How can I edit an exe's resources (File Description, Icon, etc.) using a command line utility?

The whole story: I have created a fancy .NET program which has an installer created by the Visual Studio Installer (VSI). The VSI creates 2 files (setup.exe and MyProgramSetup.msi). I understand the reasons for both files being needed, however, I only want to distribute a SINGLE executable installer to users. I do not want them to see 2 ...

How can I setup a .NET Custom Action within WiX 3.0?

I need to setup a custom action within WiX 3.0. I have the following setup in my Windows application exe. I have viewed the question at StackOverflow: Removing files when uninstalling Wix however I can't get this working with WiX 3.0. This seems to deal with InstallUtilLib.dll, however I can't work out how I call the custom action wi...

MSI patch - file creation date

I want to patch an msi install. If the time stamp of an otherwise identical file is different in the baseline msi vs the current msi, will that be detected as a changed file and consequently be included in the resulting msp file? If yes, is there a way to avoid this? The specific scenario is the following: Suppose baseline msi has dlls...

How to find, whether the certificate is a private certificate or a public certificate

I have to write a MSI, where in i have to give only the public certicate. In case the user gives a private certificate, it should pop up an error message. ...

How to do a silent install and uninstall with Wix and MSI?

How can a silent installer that does not display any UI Dialogs to the user and installs, upgrades and uninstalls with default settings be created in Wix? ...

Suppress missing assembly error in Setup and Deployment Project (msi)

Hello, To install windows services on our client's site I'm using msi setup files created with Setup and Deoployment Project (VS2008). I'm using loose installation so assemblies are not packed but rather visible in the folder structure. The problem is that our solution contains projects specific to particular clients (in other words th...