FAQ Database Discussion Community


C# How to install Windows Service as part of application installation

c#,visual-studio-2013,windows-services,windows-installer
I have created an installer that takes the primary output from a selection of sub-projects, one of the sub-projects that make up my application is a Windows Service. This service needs to be installed as part of the main application. So far I have tried adding an installer to the...

How can I change the component of a registry key in Installshield?

windows-installer,install,components,installshield
I have to put a registry key in another component from it's original. How can I make this step without exporting it an importing back in the other component? ...

Check for .NET 4.5.2 in WiX

.net,visual-studio,wix,windows-installer,installer
I'm trying to make use of the WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED property. I've read the How-To. Specifically, I have: Added a reference to WixNetFxExtension.dll (located at C:\Program Files (x86)\WiX Toolset v3.9\bin\\WixNetFxExtension.dll) Added xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" to my <Wix> tag. Referenced my property: <PropertyRef Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED"/> But I get the following error when I try to compile:...

How to create .msi installer with WiX

wix,windows-installer,installer
Can someone help me understand how WiX works? I have a directory structure which I would like to create an installer for. I have generated the for the directory structure with heat.exe and when I build the setup project it generates an .msi file but I don't think it installs...

MySQL silent install fails

mysql,batch-file,windows-installer
I am trying to install mysql-installer-community-5.6.20.0.msi through batch file. In the first step I try to unpack the manifest which gives me access to installer console. Passive install works alright however, if I try to install it quietly the batch file exits without unpacking the manifest. Here is the 1st...

How can I get rid of a “zombie” MSI entry in “Programs and Features”?

command-line,windows-installer,uninstall,msiexec
In Win7, an old version of Acrobat XI is still showing, but there is no matching MSI file for it to execute, so it can't "uninstall" and I can't delete the entry because MS makes it intentionally difficult. Normally such things just pile up over time. But Acrobat insists on...

Having an issue with WIX upgrade

wix,windows-installer,installer,custom-action
Having an issue with WIX installer upgrade. Previously we had 2 version of installers 1 for per-machine and another for per-user. Currently we have developed a dual mode MSI. The dual mode MSI upgrades the PerUser version (on PC 1) of previous installer when install for yourself option is selected...

Repair of application (msi) fails but normal installation is successfull

asp.net,windows-installer,iis-6,repair
have web setup project created by VS 2010, when i setup this project all works fine, but when i check "repair" option i get error during installation. MSI log file Running process 'c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe' with parameters ' -norestart -sn ""' silently... Process Call Result Code: '0' Process Exit Code: '1'. The...

Evaluate conditions before custom actions

.net,visual-studio,wix,windows-installer,installer
I have this action under InstallUISequence: <Custom Action="WarnIfOutlookNotInstalled" Sequence="1"><![CDATA[NOT Installed]]></Custom> I also have this condition: <PropertyRef Id="NETFRAMEWORK45"/> <Condition Message="This product requires .NET Framework 4.5 or later."><![CDATA[Installed OR NETFRAMEWORK45]]></Condition> The custom action named WarnIfOutlookNotInstalled is defined in a custom action DLL which targets .NET 4.0. The problem I have is that,...

MSI WIX: Creating minor upgrade patch by using 2 MSI's

wix,windows-installer,patch,wix3.5,msiexec
Is there any way to create minor upgrade (patch file i.e. .msp) or msi based on the old MSI installer and new MSi installer. we want to give the customer to minor upgraded patch (.msp or .msi0, which contains the changes only. 1) I have created (old) Test.msi, based on...

Setting up Property via CustomAction

.net,wix,windows-installer
I have the following snippet from our wxs file. I need to understand why we need the CustomAction SetInstallType? I assume that the INSTALLATIONTYPE property will be set from the Registrykey.Since it is a public property i suppose i could also pass it from the command line while running msiexec....

Wix- Unable to write to XML file when using Property Name as Value

wix,windows-installer,wix3.7
I am trying to write a value into an XML file during the installation, this value comes from a text field which user fills it during the installation stage. In my GUI file for the installer I have the following EditField: <Control Id="LogEdit" Type="Edit" X="45" Y="155" Width="100" Height="18" Property="LOGVALUE" Text="{80}"...

How can I change the text in the Wix installer dialog?

wix,windows-installer,wix3
My text message is stuck to "Install My Product to:" How can I change this? ("My Product" is the name of my product and the string above is resolved based on the Name attribute in my Product.wxs). I have 2 dialogs and the second requires a different message....

Uninstaller doesn't delete copied library to System Folder in VS2010 installer project.

c++,visual-studio-2010,windows-installer,uninstaller
I have a windows desktop application. I am preparing msi using microsoft visual studio 2010 installer project. For my purpose I need to copy a certain DLL into System Folder during installation. When I run my uninstaller after installation is done, it doesn't delete that library from system folder. Is...

Pack .EXE in Wix Installer and execute after installation

wix,windows-installer,custom-action
I'm creating an installer for my application using the wix toolset. I need to include an .EXE file and execute it during/after the installation process (the .EXE shall not be installed to the application folder). The .EXE also has a dependency on a .DLL file, which came with the .EXE...

pulling information from MSI files

powershell,windows-installer
I'm working on pulling information from MSI files with Powershell, I have found examples of doing this but they are all value specific E,G if you know the name of the property you can find the value of the property where as I want to find all the properties in...

WiX MSI upgrade disallows installation of some components

xml,wix,windows-installer,installer,upgrade
When I try to do an upgrade of my project, I get the following logs for about eight or so components: MSI (c) (24:EC) [11:50:17:422]: Disallowing installation of component: {290E89A8-6BA7-59F2-B350-BE657C2823BC} since the same component with higher versioned keyfile exists The uninstall portion of the upgrade seems to remove all of...

install msi with a product code through msiexec

installation,windows-installer,installer,msiexec
I am a new to msi installations through command prompt.Can anyone show me how to install an application with product code through msiexec. Currently I am using the command : msiexec /i "D:\msiexec\Calculator\CalculatorInstaller\CalculatorInstaller\Express\DVD-5\DiskImages\DISK1\CalculatorInstaller.msi" ProductCode="42F48712-5C2E-41D1-83CC-2D28C91C889A" but though it's getting installed, I am not able to verify that at HKEY_LOCAL_MACHINE>Software>Microsoft>Wow6432nodeMicrosoft>windows>Uninstall . Please...

Upgrade ClickOnce Application using Windows Installer. Is this possible?

deployment,installation,windows-installer,clickonce
Few machines have 'MyApp.exe' installed using ClickOnce. And I have created a new MSI Windows Installer for 'MyApp.exe' using MS Visual Studio 2013 Setup and Deployment. I have a requirement that when my new MSI Installer runs it has to automatically remove/uninstall all previous 'MyApp.exe' (installed using ClickOnce) and install...

wix installers with common component

wix,windows-installer
I have web app, which I want to install on IIS. This app supports plugins architecture. It consists of: Core Part Plugin A Plugin B I want to have 2 installers (msi). One for plugin A and other for plugin B. Each installer should also install Core Part. So if...

How to change Install button display text conditionally

wix,windows-installer,wix3.8
Is it possible to change the "Install" button display text based on some condition i.e if fresh install then "Install" if upgrade then "Update"? Basically, on major upgrade i am skipping some of my custom dialogs (which are shown on fresh installation) so on InstallReady dialog i want to show...

Remove “Installation successful” Dialog

wix,windows-installer
I'm having a problem with the wix installer. I want to remove the last dialog window when installing my application. The last dialog only shows the message "installation successful" and the user has to click finish. I want the installation to close automatically after the progress bar reaches 100%. I...

Wix installer does not overwrite previous version of an executable

wix,windows-installer
I have a very simple installer - copy a single dll to a Program Files subfolder and register it with regsvr32.exe. Works great, but if an older version of the dll is installed, "Repair" does not overwrite the existing dll. The dll is signed and its version (build) number is...

WiX: VS2013 How to change output directory

visual-studio-2013,wix,windows-installer
I have a WiX project in VS2013. The output directory in wixproj is: bin\$(Platform)\$(Configuration)\ by fact it is \bin\x64\Release\en-us How and where I can change the real output to \bin\x64\Release\ ?...

Create a new user with an underscore in the name

xml,wix,windows-installer
I am trying to create a user in WiX, using the following XML: <Component Id="cmp_MyNewFolder" Guid="*"> <util:User Id="MyNewUser" CreateUser="yes" Name="DUMMY&#95;USER" Domain="[ComputerName]" Password="" PasswordNeverExpires="yes" RemoveOnUninstall="yes" UpdateIfExists="yes" /> <CreateFolder> <util:PermissionEx GenericAll="yes" User="DUMMY&#95;USER"/> </CreateFolder> </Component> I've removed the GUID and password for this post, so the issue isn't with those. The problem is...

WIndows Installer Putting shortcuts into a custom folder with a property

windows-installer,installshield
I am building an installer with InstallShield. It is a basic MSI project (I'd rather not have any dependencies on InstallShield that might make it more difficult to move to WiX in the future). I am attempting to put some shortcuts into a custom folder that I'd like to locate...

Error on Downloading .msi File from my Website

c#,asp.net,.net,https,windows-installer
I have an .msi file on my website for download, but the issue is when we downloads the file following error occurs: On Chrome: On Internet Explorer: After executing the file following Error Occurs: Same Errors occurs on every other browser. So kindly tell me how do i fix it?...

how to skip dialog based on selected feature

wix,windows-installer,installer,msi-gui
I want to add a custom dialog in the UI sequence after the Feature selection (Customize) dialog. The feature selection is done through a Feature tree. How can I figure out if a particular feature was selected and launch the custom dialog? Right now I am having the following codes...

WiX - Set MSI's Program name

wix,windows-installer,manifest,properties-file,details
in my WiX installer, if I right-click my MSI, hit Properties, go to Details, and browse the details of my MSI package, I see that under Origin, the default Program name is set to Windows Installer XML Toolset (3.9..... How can I change the Program name that appears in the...

is there a way to silently rollback installation upon failure of new update?

installation,windows-installer,installer,rollback,installaware
is there a way to silently rollback installation upon failure of new update (using installaware or independent of installaware). I want the installer to run and only if everything is installed correctly (and running properly if possible) is the old version removed.

Duplicate symbol error when Adding InstallExecuteSequence “RemoveExistingProducts” to WIX

wix,windows-installer
<InstallExecuteSequence> <RemoveExistingProducts Before='InstallInitialize' /> </InstallExecuteSequence> I added this xml in order to force my application to uninstall previous versions as per this question but get the following error. Is there somewhere this could have been declared thats not in my product.wxs file? Error 34 Duplicate symbol 'WixAction:InstallExecuteSequence/RemoveExistingProducts' found. This typically...

msiOpenDataBaseModes != 0 causes exception

c#,windows-installer
I don't understand this at all. When I try to open an MSI file in anything else than read only mode, I get an exception: System.Runtime.InteropServices.COMException was unhandled by user code HelpLink=Msi.chm#9006 HResult=-2147467259 Message=OpenDatabase,DatabasePath,OpenMode Source=Msi API Error ErrorCode=-2147467259 StackTrace: at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)...

Service dependencies are causing my wix msi to force a reboot on uninstall

wix,windows-installer
I have spent the past 3 days running in-place while tracking down the cause of forced reboots on my system, but have finally narrowed it down to a very specific cause. I have a service suite that I am working on in Wix. There are 10 msi's that are all...

How can a single installer 'Setup.exe' be used to install multiple instances of same application

windows-installer,installer,installshield,multiple-instances
I have created a installer of type InstallScript MSI installer using InstallShield 2008 and it is working. Now I want to install multiple instances of same product on same machine using same installer. I want to show them as a separate application in Add/Remove programs and also a separate directory...

Launch after installation

c#,windows-installer,installer,restart
I have an auto update application, when there is new updates, I download via ftp the installer.msi, I silent installed it and close the application, what I'm wondering is how to restart the application after the installation was successful. I find some topics about it but nothing seems to works...

How to let MSI reboot without user interaction before installation finished?

windows,windows-installer
I'm building the MSI using Visual Studio Installer Project. One requirement I have is automatically reboot system before installation finished. By saying 'automatically', I mean there is no customer interaction, e.g. click a button to trigger the reboot. Also, the reboot should to be suppressable by /norestart option to the...

Unable to read value with RegistrySearch

wix,windows-installer,installer,msiexec
My installer need to distinguish between Intel and AMD processor manifacturer, in order to drop the corresponding components (Drivers). I've seen that is possible to catch such information from a registry key. I've done the following <Property Id="REGMANIFACTURER"> <RegistrySearch Id="RegCPU" Root="HKLM" Key="HARDWARE\DESCRIPTION\System\ControlProcessor\0" Name="VendorIdentifier" Type="raw" Win64="yes" > </RegistrySearch> And after drop...

Update Installed MSI Version from EXE

c#,.net,windows-installer,versioning
I've created an application that installs via MSI with version number X.X.X - lets say 1.0.0. Next, we created a custom self update process that uses no form of MSI. (We are replacing files via code.) This custom self update process is required and enables us to manage a large...

How to allow WiX Burn Bundle to be partially uninstalled?

c#,wix,windows-installer,burn
Currently I have a WiX/Burn Custom Managed Bootstrapper Application that allows the user to selectively install and uninstall different MsiPackages. That code that handles that looks something like this. private void PlanPackageBegin(object sender, PlanPackageBeginEventArgs args) { var app = applicationViewModels.FirstOrDefault(app => app.PackageID == args.PackageId); if (app == null) { return;...

Trigger uninstall and Repair of previously installed product

wix,windows-installer,wix3.8
i am new to Wix toolsets. i have successfully made my first installer in Wix but now i am confused about my software updates which usually are minor. in my installer i want to check if user have any older version installed then i want to show him three options...

Wix Set an Environment Variable Conditionally at Runtime

wix,windows-installer,custom-action
I'm using Wix 3.8, and I need to check to see if an environment variable is set at runtime - if it is not, I need to set it. If it is, I must NOT overwrite the existing value. From what I've seen, Wix offers statements, and conditional pre-processor directives....

MSIEXEC uninstall application using GUID with GUI wizard, but no user interaction

windows-installer,guid,uninstall,msiexec,uninstaller
i know how to uninstall MSI package using msiexec by guid: msiexec /i {ProductCode} This brings up the uninstall wizard of the application and the user has to click next next next.....finish. i want the uninstall wizard to be shown as normal, but the user should not click next next...

WiX - Switch InstallScope from perUser to perMachine

wix,windows-installer
I'm trying to create an installer that supports perUser and perMachine installations dependent on a selection of setup types on the UI. The perUser setup type installs the application into "WIX_DIR_COMMON_DOCUMENTS" and shall require no admin permissions. The perMachine setup type install the application into "ProgramFilesFolder" and shall request an...

Making an installer for a web app with database and a windows service

asp.net,sql-server,iis,windows-installer,localhost
I want to make an installer for a client which installs a web app on IIS a mssql db a window service I am totally naive to thinking of the solution for this automated deployment through an installer (msi or exe). The installer may hint the user for prerequisites for...

Want to create mysql user in installation with full Privileges In NSIS

mysql,windows,windows-installer,nsis
I am using following code but did not succeed, please help !define deflogin root !define defpassword mysqlpassword !define HOSTPORT "%" ExecWait '$folder\bin\mysql --user=${deflogin} --password=${defpassword} --execute="grant all privileges on *.* to $\'${login}$\' @ $\'${HOSTPORT}$\' identified by $\'${password}$\'"' ${login} & ${password} taken by a custom .ini configuration by following process Function .onInit...

Running msi causes “module failed to register” in 32bit win7,but works in 64bit win7

c++,windows,dll,windows-installer
I'm trying to deploy my project and create an installer. I've created a msi file in vs2005. When running the .msi setup wizard, i'm getting the error: "Module abc failed to register. HRESULT -2147010895. Contact your support personnel." The module that failed to register is a C++ com dll.But in...

Single Package Authoring

wix,windows-installer
I am trying to create Single Package Authoring installation using following tutorial - http://www.egoroff.spb.ru/blog/62003.html Main wix file is following: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> <Product Name='Foobar 1.0' Id='GUID' UpgradeCode='GUID' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.'> <Package Id='*' Keywords='Installer' Description="Acme's Foobar 1.0 Installer" Comments='Foobar is a registered trademark of Acme Ltd.'...

What are some goals or best practices when testing a package install with ServerSpec?

windows-installer,chef,serverspec
So, I've successfully used Vagrant and Chef to install an MSI onto a Windows guest VM. Woot! Then, I wrote a few tests with ServerSpec that check that after the MSI was installed, files got put into their proper places and things like that. My question is: What sort of...

Why is my Wix Custom Action is breaking my installer

windows,batch-file,elasticsearch,wix,windows-installer
I had a perfectly good wix installer when it came to moving files from the cab file to the hard drive. The problems are all being caused by the way I am writing my custom action. First, I will show the culprit, then explain the symptoms. <CustomAction Id="InstallElasticWithProvidedBatch" FileKey="fil85D231A31B2F8EB99C6B9EA4B95A354C" Impersonate="no"...

Error allocating file install folder in WIX 3.9

directory,wix,windows-installer
I am setting up the installation locations for my installer. However, it throws an error when I try to set the locations. Source code: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="Wix_setup" Language="1033" Version="1.0.0.0" Manufacturer="Frank Jansen" UpgradeCode="37a42e55-dea8-47da-8f4f-fb065dd38a9e"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of...

Database changes management in installer updates

sql,wix,windows-installer,wix3.8
How can I run a series of database scripts depending on some condition? Basically I want to check build installed on user's machine and then want to run all the scripts till the build in the installer. Say user has build number 4.10 installed and if he goes to install...

Is there an offline MinGW installer?

c,gcc,installation,windows-installer,install
I am learning C and I want to install MinGW on my laptop. The MinGW installer is a web-installer, it requires the computer to have access to the internet when installing. But the problem is that my computer's not connected to the internet. So it can't be installed. So I...

InstallShield - Need to run custom action .exe in admin mode

windows-installer,installshield
Using a custom action in InstallShield, I'm trying to run a .exe file during the installation to register a third party service. The .exe needs to run in admin mode. This will need to run in either UI mode or silent mode. This is a set of third party files...

Calling exe bootstrapper from Add/Remove Programs

wix,windows-installer,inno-setup,bootstrapper
I have 2 MSI installation packages (done using WiX) a.msi and b.msi which are bootstrapped into one exe using InnoSetup resulting in c.exe. In the Add/Remove programs only a.msi is listed. The problem is when the user removes a.msi from Add/Remove programs I have a custom action in wix which...

Wix: Run custom action based on condition

wix,windows-installer,conditional,condition,custom-action
I'm trying to run a custom action (delete a certain file) based on the windows version. I know how to check for the windows version: <Condition Message="Windows version xxx required..."> <![CDATA[Installed OR (VersionNT >= 600)]]> </Condition> However, I do not want to display a message, but delete a file. I...

How to uninstall a program using C#? [duplicate]

c#,visual-studio,visual-studio-2012,command-line,windows-installer
This question already has an answer here: How to uninstall MSI using its Product Code in c# 4 answers I'm trying to uninstall a program using C# via Visual Studio and possibly CMD. I made several attempts but could not getting anything to go. Attempt #1: RegistryKey localMachine =...

Speed up Build-Process of WiX-Installer

visual-studio,wix,windows-installer,installer,heat
For my Wix project I am harvesting 4 directories, via the pre-build-event of visual studio, which will result in about 160mb of data, and about 220 files, but the build process tooks very long. How can i speed that process up? I have one embedded media.cab file which will hold...

Installing software using command line silent mode

batch-file,azure,command,windows-installer,installer
I am creating batch file to run on azure worker start up task to install GPG software on windows 8 in silent mode or quiet mode -don't want to see UI dialogs how to pass installation folder or other parameters in command line I have tried using below line but...

My Wix project is only showing up for me in Add/Remove but not other people?

wix,windows-installer
We've been using Wix to create our website msi for awhile and it install fine. Issue (Little annoyance) - If I install my msi, it will show up in add/remove programs but if Person B goes on the server, my msi entry will not show up for them in Add/Remove...

WPF Application Installs Each Time I Open It via Shortcut

c#,wpf,visual-studio-2013,windows-7,windows-installer
What I Have Done: I created a Visual Studio Setup Project that creates the installer for my WPF application. This installer creates the MSI I use to install the application. I created a Primary Output with my primary project and created a shortcuts to this. The application installs successfully. Problem:...

What condition do I have to specify to run installation sequence during install and uninstall too?

installation,windows-installer,condition,installshield,uninstall
I'd like to use ScheduleReboot Install sequence to run on install and uninstall too. (In Installshield) What condition do I have to specify for that?...

Wix installer- All the sources and contents are not being copied

wix,windows-installer,wix3.7,wix3.8
I have a very simple Wix Project and I have added a reference of my c# project to that. In wix project references I have set the Project Output Groups = All ,and Harvest = True In My Products.wxs I have the following code: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product...

WixSharp inject multiple Custom CLR Dialogs

c#,wix,windows-installer,wixsharp
Using WixSharp, we can insert a custom System.Windows.Forms window as dialog . project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg); [CustomAction] public static ActionResult ShowCustomDialog(Session session) { return WixCLRDialog.ShowAsMsiDialog(new MyCustomDialog(session)); } The MyCustomDialog is derived from WixCLRDialog class. If I have consecutive custom dialogs ( done in System.Windows.Forms ) to show. How do I insert...

WiX Boostrapper - Minor Upgrade

wix,install,windows-installer,bootstrapper,burn
I have a bootstrapper which is built using Burn and installs a package which i have setup to allow for minor upgrades when i run the msi packages using REINSTALL=ALL REINSTALLMODE=vomus from the command prompt (as per this article in the WiX docs). However currently trying to upgrade with the...

Running another MSI through visual studio installer

mysql,visual-studio-2010,windows-installer,msiexec,silent-installer
I want to install MySQL installer msi with my setup.(MySQL installer has to install silently. I am using batch file in custom action to do this.) However, the problem is that MySQL's msi cannot be run from within main setup.msi it gives out 1618 error(Another installation needs to be completed.)...

Install msi file with PowerShell v3.0

windows-installer,powershell-v3.0
I am trying to automatically install SharePoint 2013 and for this I have to install a MSI file with PowerShell but it returns an error when I execute it. This is the error message: Error: This command cannot be run due to the error: No application is associated with the...

How to create own MSI package with Open Source Software? [closed]

windows-installer,package
does anyone know an Open Source Software for creating own MSI packages? I wanna create an MSI file for installing a 3rd party Software. Currently it's installed via different commands (bat-file) and with different configuration files. Is there a free Open Source software for recording an installation so that i...

WIX Installer - Unable to change and save the platform to 64 bit

visual-studio-2013,wix,windows-installer,wix3.9
IDE:- VS.NET 2013 (Update 2) WIX version used : 3.9 Windows service MSI :- I am unable to change the platform to x64 bit and save it. If i change it to x64 option and save the build properties and close the property window, then reopen the property window...

Issue faced during uninstall MSI using its Product Code in c#(DTF)

c#,windows-installer,dtf,wix3.9
I am creating a CustomBA which will replace the existing install shield Bootstrapper( I don't really know what it's called). We are installing the same number of MSI as the install shield use to do, so no problem in that. All the MSI entries in the ARP are removed, as...

How to add several ports to FirewallException in Wix?

installation,wix,windows-installer,installer,custom-action
I use property PORTS to pass some http ports to my installation. Then these ports will be stored into init file and used by the application. I need to add these ports to FirewallException? But following code does not work: <Component Id="fwException" Guid="MyGUID"> <Condition>Privileged</Condition> <RegistryKey Root="HKCU" Key="Software\Company\[ProductName]"> <RegistryValue Name="fwException" Value="1"...

How to read custom properties during MSI patch?

windows-installer
We have a setup that creates a shortcut that points to a virtual directory specified by the user (stored in a property during installation), for example, http://localhost/mydir. Now I am making a patch, however, the value of the virtual directory is unavailable and the shortcut becomes empty. How do I...

WiX common component as merge module and INSTALLDIR from registry

wix,windows-installer
I want to have 2 installers with common part. So I used merge module, and created 2 wix installers. Here is what I want to achive with more details (problem described there was solved): wix installers with common component I am using WixUI_InstallDir so user is able to choose directory...

How to install a feature always

installation,wix,windows-installer,wix3.8
My installer has a feature called 'MyDatabase' that shows a dialog to take input 'server, dbname, user, pwd' and creates the specified database. It works the first time installation. My requirement is to show this dialog everytime the installer is run and this 'MyDatabase' feature is selected. The user may...

MSI wrapping another Install

windows-installer,installshield,custom-action
I'm using AdminStudio 2014 from InstallShield (embedded in Visual Studio 2013) and have a basic MSI Project. I've recently added WiX to my project for CAs. The idea of the install is to wrap a vendor's drivers along with our additional files. To the end user it should seem like...

How to understand which MSI file start

windows,windows-installer
I have W8.1 and i need know which MSI file start when OS opening because installation is corrupted and all time i need press cancel. I want delete it to stop starting with Explorer.exe I already tried to deactivate all process in tab process of Task Manager but don't work....

(WiX) Write product info to registry for dual purpose installer

wix,windows-installer
I'm making a dual purpose package in WiX according to this article. So I initialized the ALLUSERS and MSIINSTALLPERUSER according to the article: <Property Id='ALLUSERS' Value='2' /> <Property Id='MSIINSTALLPERUSER' Value='1' /> In my dialog I set MSIINSTALLPERUSER="1" if the user selected the per-user option. For per-machine I set MSIINSTALLPERUSER="". So...

Upgrading MSI throwing 'method not found' error

c#,visual-studio-2013,windows-installer
I have a project with two class libraries. I used 'Setup and deployment tool' to make MSI files. Initially, I have build v 1.0.0 and installed in a machine. After that, I have made few changes in my libraries and made a build v 1.0.1. When I tried to install...

WiX - not executing custom action during update

wix,windows-installer,installer,custom-action
I have two custom actions (immediate and deferrend). I would like to skipping actions during upgrade. I tried: <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" UpgradeCode="{GUID}"> <MajorUpgrade DowngradeErrorMessage="Newer version is already installed." /> <Custom Action='CAa' After='InstallInitialize'>NOT Installed AND NOT PATCH</Custom> and: <Custom Action='CAa' After='InstallInitialize'>NOT Installed AND NOT...