w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » WIX » Page 1
How to check in WiX, if user has admin rights?
See: Burn Built-in Variables •Privileged - non-zero if the process could run elevated (on Vista+) or is running as an Administrator (on WinXP). This is similar to the Windows Installer Privileged property. Also check that you are using the PerMachine attribute on the ExePackage element if you are using it.

Categories : Wix

Wix installer major upgrade costume action before removing old version
First, do your upgrade creating a verbose log to make sure your custom actions are working and being called. You've marked them immediate, so they run before anything changes on the system and so will be called before the old product is removed. When you say "the code works just fine" you probably mean when you run it from your interactive account. But that's not happening. Your code is running ou

Categories : Wix

Understanding MSI uninstall - EXECUTEACTION = INSTALL
Custom actions should be avoided until you fully understand Windows Installer to avoid reinventing the wheel with a more fragile solution. To remove a service during uninstall you merely need: <ServiceControl Id="myService" Name="MyService" Stop="both" Remove="uninstall"/> Read this good article: InstallSite: Installation Phases and In-Script Execution Windows installer installation tr

Categories : Wix

How to check in WiX, if IIS-Feature is installed?
Okay, i have found it out myself. It's really simple. DetectCondition doesn't work here. We have to search for the registrykey and check the result in the Installcondition of the ExePackage. Most of the keys are lying in the folder "HKLMSOFTWAREMicrosoftInetStpComponents". And there is a list on the iis-site, but it's old and not complete: http://www.iis.net/learn/install/installing-iis-7/discover

Categories : Wix

WiX Managed Bootstrapper “Failed to resolve source for file” for .cab files
I had written only .msi file path in DownloadUrl attribute of MsiPackage element. But in the source code of Wix Setup BA there was a substitution '{2}' meaning the file name of payload. I followed that and it solved the problem. For more info see this link.

Categories : Wix

How can I upgrade installer WIX bootstrapper bundle via MSI and vice-versa?
To maintain the visibility as Bundle: visible, MSI: not visible, you can either: Install the upgrade the same way that the bundle does, passing ARPSYSTEMCOMPONENT=1 to msiexec, or Change your MSI Product so that it defaults to not visible: <Property Id="ARPSYSTEMCOMPONENT" Value="1" /> (In your bundle, MsiPackage/@Visible seems to effectively be "no", which is the default.)

Categories : Wix

Accessing installer package information in WiX Custom bootstrapper UI
The information about which packages and features are included in the bundle is actually available through an XML file that get dropped on the system at runtime. I have a series of blog post that walk through this process with code samples. Here's an (edited) excerpt that deals with your question: A lot of information is embedded in the WiX xml files, such as package/feature layout, names,

Categories : Wix

Wix app.config Application and User Scope
OK, so this is taken care of for you the first time that any of the userSettings are amended using the Save() method of the autogenerated Settings class: Settings.Default.MyProperty = "foo"; Settings.Default.Save(); which results in the creation a user.config file in LocalAppDataFolder{Company}{Application}{ProductName_xxx}{Version} containing only the contents of the userSettings section of th

Categories : Wix

Wix: How to enable multiple or single installation using the same installer?
If you don't want to change the MSI file, the documented way to do this is use the MSINEWINSTANCE property set to 1, together with a transform that changes the ProductCode. Both need specifying on the command line. You can generate that transform by opening the MSI file with Orca and using Transform=>New Transform and then changing the ProductCode in the property table and saving the transform mst

Categories : Wix

How to restrict entering of custom text to a combo box in wix
You should set ComboList attribute to Yes for the parent Control element: <Control Id="..." Type="ComboBox" ComboList="Yes" ...> <ComboBox Property="..."> <ListItem Text="Item 1" Value="Item1"/> <ListItem Text="Item 2" Value="Item2"/> ... </ComboBox> </Control> Read more about ComboList attribute here.

Categories : Wix

WiX Burn: Reading LaunchTarget from Registry
RegistrySearches run during the Detect operation. Custom BAs could run Detect after Apply, but that's not really an option since you're using the WixStandardBootstrapperApplication. Lucky for you, WiX v3.9 added support for running the LaunchTarget already elevated, with the requirement that the path to the target .exe be in the registry under HKLM. So you would do this: <BootstrapperApplica

Categories : Wix

Wix RegistrySearch not returning true for value that is in registry
I'm irritated because of your WIX syntax. Why are you prefixing RegistrySearch with a util namespace? Also, I'm not able to find s.th. in the lines of Result and Variable in the WIX docs? Shouldn't the registry search be a child of a Property element? Cf. the answer in WIX Property value set based on registry key value for an example.

Categories : Wix

How to create a Wix Exepackage that only has a download link
If you set up your bundle to Compressed=no it will not include the source file in your final bundle. The reason you're getting the "File not found" is because when the installer is built, it requires a local version of the package EXE file in order to get information from it. If you want to build a project which only has a download URL, you need to specify a RemotePayload element, and supply some

Categories : Wix

Can I generate a patch(.msp) without the upgrade image(.msi)
You can still use the upgraded MSI build when you make a patch. I don't know all the WiX things you may need to do, but I've done exactly what you want to do by setting IgnoreMissingSrcFiles in the TargetImages table: http://msdn.microsoft.com/en-us/library/aa372066(v=vs.85).aspx and just delete all the files you don't want to be patched. You use admin images anyway to create the patch, so all y

Categories : Wix

Why Wix MSI doesn't include the source files and looks for source files somewhere else?
This line here is your problem: <Package InstallerVersion="200" Compressed="no" InstallScope="perMachine" /> Change Compressed=no to Compressed=yes and it will include all the source files in the finished MSI. If you don't compress it, the finished files are not included in the MSI and you get an error if it can't find them at runtime. See Package reference.

Categories : Wix

Wix Bundle Source path and project stucture
Yes, you have to list every Payload. It is convenient to put them in a PayloadGroup. There are quite a few ways to generate a PayloadGroup. One way is to use/abuse heat to harvest a directory. This would be the same way as harvesting a directory for a Setup project. As an example, let's package WiX's bin directory. <ExePackage Id="MyPackageId" SourceFile="$(env.WiX)bin/dark.exe" Compress

Categories : Wix

How to Disable Restore Application to previous State
To clarify, you are using WiX and ClickOnce? I've never heard of anyone doing that. Typically you either use WiX or ClickOnce. From a ClickOnce standpoint, if you make the minimum required version the same as the current version the "Restore" option will go away.

Categories : Wix

Wix - How do I set property conditionally
Let say this the registry key you searched. <Property Id="REGSEARCH"> <RegistrySearch Id="TestReg" Root="HKLM" Key="SoftwareTestKeyTestKey2" Name="Test" Type="raw" /> </Property> This is how to set the property conditionally. Keep the default value as the value you need to put when the registry does

Categories : Wix

Display optional text in Exit Dialog upon ininstall
The WixUI ExitDialog does not support showing text during uninstall. You'd have to use a customized version of ExitDialog to get that behavior. See Changing the UI sequence of a built-in dialog set for details.

Categories : Wix

Specify destination location for copying msi packaged in Wix Burn
No. Burn sets up the package cache with security permissions to prevent unelevated code from escalating its privileges. Starting with WiX v3.9 the user can change the location of the package cache, but that applies to all bundles and doesn't allow specifying separate locations for packages.

Categories : Wix

How to configure .wxs file to to detect latest version of IE when writing to the FEATURE_BROWSER_EMULATION RegistryKey?
IE Version is store in the registry at HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorersvcVersion Use the following code to get the Registry key value to a property <Property Id="IEVERSION"> <RegistrySearch Id="IEVer" Root="HKLM" Key="HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet Explorer" Name="svcVersion" T

Categories : Wix

Wix toolset: complete cleanup after "disallowing uninstallation of component since another client exists"
It sounds like you need to uninstall the features (or whole products) that have installed your unwanted components. Windows Installer has an API for querying components, features and products. The WiX Toolset has incorporated a wrapper around the API called DTF. You can use it to query features by component. So, break out your favorite .NET script runner (mine is LINQPad) and run a query. For ex

Categories : Wix

WiX Burn custom bootstrapper: how to preserve a value stored in e.Result?
e.Result is different for every callback, you can't preserve it. The error from ApplyComplete should be 0x80070642 (which is the HRESULT form of the Win32 error code ERROR_INSTALL_USEREXIT) if you returned Result.Cancel from a callback. You should check for that error code.

Categories : Wix

Wix installer in visual studio
http://wix.tramontana.co.hu/tutorial This is the best tutorial i found so far... Just download the toolset via Visual Studio Updates and Extensions

Categories : Wix

Wix Setup Project versus Bootstrapper Project [ For Checking Prerequisites And Intalling Them ]
It is possible to check for Dotnet from the wix setup. But you cannot install pre requisites from the setup. So you can pop a message asking to install dotnet before installing. This is how to check for dotnet 4.0 using wix. <Property Id="DOTNET40"> <RegistrySearch Id="NetFramework40" Root="HKLM" Key="SoftwareMicrosoftNET Framework SetupNDPv

Categories : Wix

Why does per-user installation of an MSI built with WixUI_Advanced require elevated privileges?
You need Package InstallPrivilege set to Limited to tell Windows that the MSI can be installed by limited users. So then you won't see the UAC prompt, and the install will fail if a limited user tries to do something that violates security.

Categories : Wix

Wix - how to run an exe after installfinalize upon uninstall?
According to this site: http://www.installsite.org/pages/en/isnews/200108/index.htm my custom action has to run After="InstallFinalize" because the wix rollback would delete my registry import (as part of the rollback). Can you specify where is this mentioned on that site? I'm looking at it but can't find a reason why your action should run with After="installFinelize". What it does mention,

Categories : Wix

Unable to install managed DLL assembly from MSI Installer - Error 1935 HRESULT=0x800736FD
Okay, so after LOTS of trial and error, I eventually found the problem. My MSI is actually 4 merge modules - an unmanaged C++ DLL that needs to be installed in WinSxS, the corresponding VS2005 run-times (don't ask) and a managed C++ wrapper that needs to be installed in the GAC. One of the merge modules (the managed C++ wrapper) had the same name as the main MSI so when the error message was rep

Categories : Wix

Invalid package type on majorupgrade of WiX bundle
The correct action is Install not UpdateReplace. UpdateReplace is when your bundle recognizes that there is a newer version of the bundle available and wants to exit and let the newer version run. The error in your log is because your custom bootstrapper application didn't inform the engine about where the newer version is. It sounds like you're running into this issue, which was fixed in v3.9.

Categories : Wix

Why isn't WiX Burn evaluating a Condition based on VersionMsi?
If you arrived at this due to a 1708 error then you might require a specific MSI 4.5 update. In these situations you need to excplicitly test the version of msi.dll rather then the VersionMSI variable. See the click-once bootstrapper package manifest for Windows Installer 4.5 in the Windows SDK for the proper condition for each MSI update package.

Categories : Wix

WIX Burn Bootstrapper not asking for admin rights for my MSI
Since the INSTALLSCOPE attribute for the MSI was not set, it defaulted to Per-User install and the bootstrapper application considered that it does not need any ADMIN/Elevated rights to run it. Now in your case, you are the author of the MSI and it was easy enough for you to add the InstallScope to the package element. InstallScope="perMachine" If you are not the author of the MSI, still bo

Categories : Wix

Wix component won't update when patched
Windows Installer detects the changes by the changes in the resource marked as KeyPath. It can be file or registry key, for instance. I suppose your component contains a single file, which automatically makes it a key path. Thus, when you change only a script, the file doesn't change, and Windows Installer doesn't know that something was changed. Otherwise, it correctly detects the change and a

Categories : Wix

How to add really long hexadecimal registry in custom action in wix installer?
Try this code. This is the correct way to write to registries from wix. <RegistryKey Root="HKCU" Key="SOFTWAREIntelDisplayigfxcuiHotKeys"> <RegistryValue Name="9530" Action="write" Value="LONG HEXADECIMAL VALUE" Type="binary" KeyPath="yes" /> </RegistryKey>

Categories : Wix

Indexed file using WiX installer
I don't think the software stopped working because the I attribute is missing. Take a look at this question for more details. The A attribute is set by the system to any file which has changed since the last backup operation. Hence, when you install a file to the target system, it is considered a new file there and obviously wasn't included in the most recent backup. It's natural that the A attri

Categories : Wix

How can I customize button size of ScheduleReboot dialog?
Based on some experiments I concluded that the button size of ScheduleReboot dialog follows the button size of the error dialog that is set by using ErrorDialog attribute in Dialog element.

Categories : Wix

Adding libcurl to FireBreath broke the wix installer
I would start with the built-in curl support. http://www.firebreath.org/display/documentation/FireBreath+Libraries But the most common WiX problem (with FireBreath) is that it cannot find the linked DLL from PATH environment value. Even the library is mentioned in Firebreath makefiles, you need to ensure that the DLL is available in PATH. Otherwise Wix does not find it and cannot build the insta

Categories : Wix

Creating ODBC Connection in WIX?
You should use a custom action for this. There is no other way of connecting a database with wix. Custom action is the only way. To write a custom action try this http://blogs.msdn.com/b/jschaffe/archive/2012/10/23/creating-wix-custom-actions-in-c-and-passing-parameters.aspx

Categories : Wix

How to insert C# CA screen/form in between wix screens/dialogs
AFAIU, you are going to create a custom action with the UI in it, and this goes against custom action design practices. You won't be able to have silent installations, for example. There's a list of CA best practices here. It seems that adding a custom dialog to the installation UI chain is what you really need. There are several articles out there how to do it, for example, this one. It might b

Categories : Wix

Change of property does not influence component
You can't change component selection directly in the GUI. At this point, conditions already evaluated. You will need to put your component in a feature and your controls will add and remove feature like explained in this answer : Wix 3.5, Install features based on checkboxes

Categories : Wix




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.