windows-installer

How to get the path of Where MSI file is located from wix source code at run time(Installation time)

风流意气都作罢 提交于 2019-12-25 18:24:32
问题 I want to Locate path of MSI from WIX Source code when we perform installation. I tried using $(sys.SOURCEFILEPATH) which returns what I need (C:\temp\myProj\sample.msi)). But when I copy MSI file to a different folder (D:\temp\sample.msi) and tried to install I am getting the same path as previous(C:\temp\myproj\sample.msi). Thanks for your answers in advance 回答1: The Windows Installer sets the OriginalDatabase property to the path of the installation database used to launch the installation

Variable ODBC DSN name in InstallShield MSI installation

一曲冷凌霜 提交于 2019-12-25 16:39:14
问题 I'm designing a new MSI installation for a product that allows multiple instances to be installed. Many of the components of the installation are identified by a 2-character code. Among these is an ODBC data source. The name of the data source includes this 2-character code, which is something the user enters during installation. I notice that I cannot use a property name "[MyPropertyName]" as the Name of an ODBC DSN in an InstallShield project. Is there any clean way to allow the ODBC DSN

Variable ODBC DSN name in InstallShield MSI installation

一曲冷凌霜 提交于 2019-12-25 16:37:55
问题 I'm designing a new MSI installation for a product that allows multiple instances to be installed. Many of the components of the installation are identified by a 2-character code. Among these is an ODBC data source. The name of the data source includes this 2-character code, which is something the user enters during installation. I notice that I cannot use a property name "[MyPropertyName]" as the Name of an ODBC DSN in an InstallShield project. Is there any clean way to allow the ODBC DSN

Attempting to run embedded tool from WIX msi for selective installation

自作多情 提交于 2019-12-25 14:01:25
问题 Basically I'm trying to build a WIX msi that can run devcon.exe (command line version of windows hardware manager) to detect if a particular piece of hardware is installed. If it is, then install msi A, else install msi B (A and B already exist as separate msi packages, we need automatic selective installation based on the hardware). Currently I've installed the WIX SDK and have created a WIX project that correctly builds an msi. I can do simple things like execute CustomActions to open

Attempting to run embedded tool from WIX msi for selective installation

馋奶兔 提交于 2019-12-25 14:01:18
问题 Basically I'm trying to build a WIX msi that can run devcon.exe (command line version of windows hardware manager) to detect if a particular piece of hardware is installed. If it is, then install msi A, else install msi B (A and B already exist as separate msi packages, we need automatic selective installation based on the hardware). Currently I've installed the WIX SDK and have created a WIX project that correctly builds an msi. I can do simple things like execute CustomActions to open

In Wix MSI: Killing a process upon uninstallation

狂风中的少年 提交于 2019-12-25 13:46:10
问题 I added a custom action that should kill my application using taskkill CMD when someone tries to uninstall it using the add/remove in the control panel using the following code : <Property Id="TASKKILL"> <DirectorySearch Id="SysDir" Path="[SystemFolder]" Depth="1"> <FileSearch Id="taskkillExe" Name="taskkill.exe" /> </DirectorySearch> </Property> <CustomAction Id="ServerKill" Property="TASKKILL" Execute="immediate" Impersonate="yes" Return="ignore" ExeCommand="/F /FI "IMAGENAME EQ App.exe""/>

Why I am getting blank value for SourceDir in a managed Custom Action in WIX?

自闭症网瘾萝莉.ら 提交于 2019-12-25 10:49:32
问题 Here is the code for the Product.wxs I am using: <Product Id="*" Name="abc" Language="1033" Version="1.0.0.0" Manufacturer="def" UpgradeCode="2b75c560-783e-4688-9a02-da09bf986597"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> <MediaTemplate /> <Binary Id="myCustomActionsDLL" SourceFile="..\SetupConfiguration\bin\debug\SetupConfiguration.CA.dll" /> <CustomAction Id=

WiX Toolset: install file with specific permissions

若如初见. 提交于 2019-12-25 09:58:20
问题 Using WiX, I'd like to install a file with permissions to read but not write (I don't even know if Windows will allow such blasphemy). Here's what I've tried: I import the UtilExtension dll with no problems, so I have no trouble accessing the <Permission/> and <PermissionEx/> elements (I don't know if the dll is needed for just the < Permission /> element, so I add it anyways). From there, I've tried every variation using both of these elements that I can think of. Here's a nice simple one

WiX Toolset: install file with specific permissions

筅森魡賤 提交于 2019-12-25 09:58:12
问题 Using WiX, I'd like to install a file with permissions to read but not write (I don't even know if Windows will allow such blasphemy). Here's what I've tried: I import the UtilExtension dll with no problems, so I have no trouble accessing the <Permission/> and <PermissionEx/> elements (I don't know if the dll is needed for just the < Permission /> element, so I add it anyways). From there, I've tried every variation using both of these elements that I can think of. Here's a nice simple one

How do you optimize a JPEG image for MSI installers?

无人久伴 提交于 2019-12-25 08:48:36
问题 I am dealing with a splash screen logo and I've noticed that on different OS versions this image gets distorted, but it happens to work when dealing with Windows 8.1, but not on Windows 7 or Vista. I've been using Adobe Fireworks in conjunction with Illustrator to generate it, and I must have tried a ton of different settings but I can't get the same experience across all operating systems. I load it into my WiX project as follows: <Binary Id="SplashBinary" SourceFile="Splash.jpg"/> And I use