wix

How can I find the upgrade code for an installed application in C#?

雨燕双飞 提交于 2020-02-09 10:17:13
问题 I am using the C# wrapper for the Windows Installer API from the WIX Toolset. I use the ProductInstallation class to get information about the installed products such as the product code and product name. For example Product Name - "My Test Application" Product Code - {F46BA620-C027-4E68-9069-5D5D4E1FF30A} Product Version - 1.4.0 Internally this wrapper uses the MsiGetProductInfo function. Unfortunately this function does not return the product's upgrade code. How can I retrieve the upgrade

wix guid using rules

☆樱花仙子☆ 提交于 2020-02-05 05:30:26
问题 For example I have: <Component Id='MainExecutable' Guid='0436E0CA-8612-4330-A70D-642910D9F19A'> <File Id='FoobarEXE' Name='FoobarAppl10.exe' DiskId='1' Source='FoobarAppl10.exe' KeyPath='yes'> </File> </Component> If then I create an update package should I use the same GUID for component that include FoobarEXE? I know rule for Product, UpgradeCode etc but what is the rule for other GUIDs? What is their scope? 回答1: The component id versioning rules are tricky. I have found a real explanation

Setting Wix shortcut with environment variable workingdirectory

时间秒杀一切 提交于 2020-02-05 04:42:07
问题 I'm trying to create a shortcut in WIX with teh following WorkingDirectory: <Shortcut Id="PowerShellShortcut" Name="$(var.PRODUCTNAME) Powershell Prompt" Description="$(var.PRODUCTNAME) Powershell Prompt" WorkingDirectory="%HOMEDRIVE%%HOMEPATH%" Target="[POWERSHELLEXE]" Arguments='-noexit -command "Import-Module [APPLICATIONFOLDER]Binaries\MA.dll | Out-Null"' /> When I try to build I get the following error: Error 1 The Shortcut/@WorkingDirectory attribute's value, '%HOMEDRIVE%%HOMEPATH%', is

WiX: How do I prevent multiple copies of a bound file being added to an MSI?

一个人想着一个人 提交于 2020-02-04 05:40:48
问题 I have an installer, which links a wixlib. The wixlib installs an executable file to multiple directories. When I turn on the "Bind files into the library file" for the wixlib (using the -bf switch), lit.exe adds the executable to the wixlib. However, when I link the wixlib in the MSI, the executable is added multiple times to the MSI file, bloating the installer size. When I turn off "Bind files into the library file", the problem doesn't happen (but obviously, I need to setup the WiX

Wix Custom action to execute upon condition provided - not working

送分小仙女□ 提交于 2020-02-04 04:43:08
问题 If Property ELECTRICAL_VERSION has 12.1.7.2,12.1.5.2 or any value the condition is evaluated as true and custom action is being executed. I want it to skip if the value is less than 12.1.7.2. <Property Id="ELECTRICAL_VERSION" Secure="yes"> <RegistrySearch Id="ELECTRICAL_VERSION" Root="HKLM" Key="SOFTWARE\WOW6432Node\12.1.7" Name="ProductVersion" Type="raw" /> </Property> <CustomAction Id="ElectricalInstallCheck" Execute="immediate" Property="ELECTRICAL_VERSION" Return="check" Value=""/>

WiX after installation my exe file doesn't work by double click, only run as administrator work

半腔热情 提交于 2020-01-30 08:57:26
问题 I prepare a MSI setup project with WiX when I install this MSI package to %ProgramFiles% and make a shortcut to desktop folder it is work only run as administrator. When double click it doesn't work. When I install folder in desktop it is work with double click. I want to install to %ProgramFiles% and work with double click. Please help me I spend 2 week for this installation. my code is here. <Product Id="*" Name="FlowNet Master" Language="1033" Version="1.0.0.2" Manufacturer="Melina-Aero"

WiX after installation my exe file doesn't work by double click, only run as administrator work

Deadly 提交于 2020-01-30 08:57:19
问题 I prepare a MSI setup project with WiX when I install this MSI package to %ProgramFiles% and make a shortcut to desktop folder it is work only run as administrator. When double click it doesn't work. When I install folder in desktop it is work with double click. I want to install to %ProgramFiles% and work with double click. Please help me I spend 2 week for this installation. my code is here. <Product Id="*" Name="FlowNet Master" Language="1033" Version="1.0.0.2" Manufacturer="Melina-Aero"

Can't create postgresql database with wix toolset

妖精的绣舞 提交于 2020-01-30 03:29:22
问题 I'm trying to create a database in PostgreSQL using Wix ToolSet, but I'm always getting the error "Error -2147467259: failed to create SQL database: pontow, error detail: unknown error." when I try to create a database or the error "Failed to connect to SQL database. (-2147467259 pontow )" when I simple try to execute a to a existing database. I made some research and it seems to be something with access denied, but can't get it working. I've already tried: Change 'postgresql.conf' and set

Stop setup error inside Custom Action With WIX installer

主宰稳场 提交于 2020-01-30 02:58:31
问题 Can i able to stop the setup if any error display inside CustomAction. As i can able display error message inside custom Action and it's dispaly the error message but as soon as i click on ok button my next UI sequence form is appearing.How i will force user to finish button? Adding my source code: <Binary Id="BIN_CustomAction" SourceFile="CustomAction.CA.dll" /> <CustomAction Id="CA_CheckList" BinaryKey="BIN_CustomAction" DllEntry="CA_CheckList" Execute="immediate" Impersonate="yes" Return=

File Browse Dialog in Wix Installer

给你一囗甜甜゛ 提交于 2020-01-27 08:31:49
问题 I am using Wix Installer v3.9 to create a setup. I want to pop a File Browse dialog after the Installation gets completed. User can select multiple files from a directory. Then those file paths have to pass as command line arguments to an exe. How can I do this? The Wix BrowseDlg lets select directory only. Any help is appreciated. 回答1: As far as I know,wix toolset doesn`t have any file browse control. So I normally use c# Custom Action to do this job. Try this sample and customize it