FAQ Database Discussion Community


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...

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...

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 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"...

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....

Custom Actions not been called

wix,custom-action,wix3.6
I have some problems with managed code custom actions. I have 3 custom actions but only one of them is working. They are called at different times in InstallExecuteSequence but moving them makes no difference. I know there not getting very far because if I place a message box at...

Pass path of shortcut file to CustomAction

wix,custom-action
I have a shortcut definition like this: <Component Id="PowershellShortcut" Guid="{12345678-1234-1234-1234-1234567890AB}"> <Condition>POWERSHELL_INSTALL_LOCATION</Condition> <Shortcut Id="PowershellStartMenuShortcut" Name="Powershell Environment" Description="Powershell Environment" Target="[POWERSHELL_INSTALL_LOCATION]" Arguments="-PSConsoleFile &quot;[#Powershell.Environment]&quot;" /> </Component> I want to pass the path to the resultant .lnk file into a CustomAction. I've tried various things,...

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...

c# custom action is not deleting particular file

c#,visual-studio-2010,custom-action
I have found that on un-installing myproject setup installer is removing all files but not one conn.cnf file .I want it to be removed too . so I used custom Actions installer class.but it is not removing that file . this is my code [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand)] public override void Uninstall(IDictionary savedState)...

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...

WiX CustomAction fires in UI but not Execute Sequence

wix,custom-action
We need our MSI to store the password in the registry, so users can use our installer to change connection strings, etc. We found MsiExt for its cryptography DLL and are trying to configure the custom actions. Our users will need to be able to install both through the UI...

Custom action in controller not working in yii2

php,yii2,custom-action
I have controller called RegisterController and index view. If I submit the form, its showing the page not found (404) error. In the same if I change the method to actionCreate instead of actionAddBasic, working fine. Please help me to resolve the issue. Thanks. RegisterController.php <?php namespace app\controllers; use app\models\Address;...

How to launch executable after installation (exe is delivered by .msm)

wix,custom-action
I did everything as explained in tutorial, but my executable wasn't launched after product installation completed. There is a nuance that my executable is delivered with .msm module, so in .wxs file for .msi I do the following to launch application: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product> <!-- I omit here features and...

Unable to access TextView of the the Custom ActionBar

java,android,xml,android-actionbar,custom-action
I am using different layout and showing into action bar. I want to change value of TextView programatically which I used in layout. Here is my xml file: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/splashscreen_background"> <TextView android:id="@android:id/text1" android:layout_width="?attr/actionBarSize" android:layout_height="match_parent"...