1,048 questions
0
votes
1
answer
43
views
error reported when executing a wix custom action that runs a DISM command
I like to run a DISM command in wix custom action without calling a PowerShell script or creating a extra dll. How to resolve the error reported, thanks.
Here is the custom action I created for ...
0
votes
0
answers
31
views
How to configure the Custom Action with WIX toolset to execute the action only on the first install
I'm trying to configure the custom action to be executed only on first install and not to be executed on upgrade during installing the new product.
My current Custom Action condition looks like that:
(...
1
vote
1
answer
75
views
Back Up Files During a WiX MSI Installation
I am using the WixToolset 6.0 with Visual Studio 2022. I am trying to create an installer that installs the following files:
<ComponentGroup Id="ApplicationFiles" Directory="...
0
votes
1
answer
65
views
how to read the MSI installer properties in C# custom action
I want to use the MSI installer properties like REMOVE, Installed, WIX_UPGRADE_DETECTED in my c# custom action.
What i want to do is currently i have the following custom action
<Custom Action=&...
0
votes
0
answers
177
views
How can I execute Powershell scripts after the installation in WiX v.5 with custom action?
I'm currently trying to implement a custom action that executes a PowerShell script after the installation.
My thought about what exactly the MSI file should do is:
Install/copy the Powershell script ...
0
votes
1
answer
143
views
Run custom action in MSI before InstallExecuteSequence starts
I need to install .NET Runtime before installing my app.
I've read that it is impossible to run second installer after the first one started actions from InstallExecuteSequence table. So, I'm looking ...
0
votes
0
answers
39
views
How to schedule a WiX script custom action to properly run during an upgrade?
I have a script custom action that is scheduled to run during installation and upgrade:
<InstallExecuteSequence>
<Custom Action="CallInstaller" Before="InstallFinalize"...
0
votes
1
answer
92
views
Adding a CustomAction with Binary to copy file
When someone upgrades to the newer version of the software, I want to copy the file (UpgradeScripts.sql) and paste it in the ProgramFiles/Pharm/Database folder on the installed PC. I am using Wix ...
0
votes
1
answer
136
views
WiX v5: Install driver using dpinst
I have looked through similar questions on the forum and have found no solution to my problem.
I am trying to call dpinst using a custom action and get the error: "Error 1721. There is a problem ...
0
votes
0
answers
57
views
Custom Action prevents .msi upgrade
I created an msi for an application that relies on a deferred custom action to do a few necessary things.
<CustomAction Id="MyCustomAction" Directory="INSTALLFOLDER" Execute=&...
0
votes
0
answers
57
views
Wix Installer Set Install Location via custom action
I am trying to set the install location via a custom action that looks up the install location via a registry entry. The below custom action finds the correct location to install to. However, I cannot ...
1
vote
0
answers
128
views
Handling Custom Actions with Multiple Files Containing Spaces in Sourcetree
I am encountering an issue with Sourcetree's custom actions when dealing with multiple files that have spaces in their filenames. When using $FILE as the parameter for custom actions, Sourcetree sends ...
0
votes
1
answer
372
views
Error on Custom Action use (Unexpected type '' encountered while reading 'action manifest root'. The type 'MappingToken' was expected.)
<project-dir-name>/
├── .github/
│ ├── actions/
│ │ └── cached-deps/
│ │ ├── action.yml
└── .github/
└── workflows/
└── main.yml
Here is the custom action for ...
0
votes
1
answer
94
views
Want to use the input values at the time of custom installation to be used in the application made in VB.net
I am programming in VB.net . I have made setup project to custom install my main application and added Textbox (A) dialog in user interface. At the time of installation, I want the input of the ...
1
vote
1
answer
247
views
I can't change firebase field in custom action in flutter flow
QuerySnapshot querySnapshot = await FirebaseFirestore.instance
.collection('collection-name')
.where("users", arrayContains: userRef)
.get();
I get data from firebase ...
0
votes
1
answer
61
views
Custom scheduler for windows service restart using WiX ExeCommand
Where exactly can I add a custom action for scheduling tasks for my Windows service to run every night at 3 am for restart using Wix. Below is my code in ComponentsGenerated.wxs:
<Component Id=&...
0
votes
2
answers
646
views
Execute Winget install command in msi installer made by WIX 4.0.5
I have powershell script which I would like to run with help of WIX Custom Action. Inside this script I have winget install command which I would like to use in order to install dotnet runtime.
Custom ...
0
votes
1
answer
150
views
How to execute a custom action when a user changes a feature from 'selected' to 'unselected'?
I want to execute my Custom Action if user is unselecting a specific feature. It doesn't matter if this is during a Repair, Upgrade or Uninstall.
The action should not be executed, when during a ...
0
votes
1
answer
196
views
WiX v4 - execommand not working - works fine on command line
I have a custom action which runs a packaged exe :
<CustomAction Id="RunIt"
Directory="INSTALLFOLDER"
ExeCommand="[INSTALLFOLDER]MyEXE.exe /silent >...
0
votes
2
answers
387
views
How to get the additional CA dll from a Wix Custom Action build into a nuget package?
I have a Wix Custom Action DLL that is used in multiple installer projects. I'd like to deploy this DLL to our nuget repository so it is easier to share. However, the dotnet pack command doesn't put ...
0
votes
1
answer
83
views
How can to run custom action that would run on CANCEL/abort installation?
how can I run CA that would run on CANCEL/abort installation?
I'd like to run a command in case of cancel/abort.
I need it to support at quiet mode too.
Also, how can I detect it's on cancel mode?
...
0
votes
1
answer
336
views
Flutterflow package plaid_flutter: ^3.1.4 throws error upon initializing PlaidLink with the correct LinkToken in Custom Action. What am I missing?
I am able to obtain the link token successfully from Plaid. However, when I pass it to the app (Tried in both Flutterflow Test mode from both desktop and mobile browsers) and trying to initialize the ...
0
votes
1
answer
173
views
How to connect appwrire with flutterflow...?
I tried connecting my Flutterflow application to Appwrite via a custom action in Flutterflow, but an error message stated that the URL "import 'package:dart_appwrite/dart_appwrite.dart';" ...
2
votes
0
answers
311
views
How to invoke exe using custom action in WIX V4?
I have created installer(.msi) using WIX Toolset V4.Added files that gets copied to destination when msi file is invoke. I am also copying dependency(DirectX redist exe) for the application. I want to ...
0
votes
1
answer
39
views
run .msi file compiled from wxs without any installation whatsoever
How the wxs code below should be modified to make WiX 3.11 run custom actions only? (without any installation whatsoever)
`<?xml version="1.0" encoding="UTF-8"?>
<Wix ...
1
vote
1
answer
1k
views
Cannot find registry path running a powershell script as a custom action
I have a PowerShell script where I am reading and editing registry.
I tried running it manually, calling it from command line, converting it to an .exe with ps2exe, and for all of those scenarios it ...
0
votes
1
answer
110
views
WIX ToolSet Conditional logic ignored
I am having some trouble trying to perform automatic installations after a registry search to see installed versions of specific software. This custom action should then set a conditional variable to &...
0
votes
1
answer
1k
views
Backstage Custom Action to Append file
thank's in advance.
I want to append a file after fetching files using fetch:template Action
example:-
below is my fetch action
steps:
- id: fetch provisioning template
name: fetch ...
1
vote
2
answers
931
views
Execute custom action only once when install and when upgrading
I have a custom action which I need to execute only once during install or upgrading.
What happens is that the custom action is being executed twice if there is an older version of the same product ...
0
votes
0
answers
1k
views
Unable to locate "Installer Class" option for Visual Studio 2022 (Windows Installer) off "Add Item" templates
I have a Visual Studio 2022 instance (version 17.6.5) with the Microsoft Visual Studio Installer Projects package (version 2.0) installed on a Windows Server 2022 virtual machine. I'd like to ...
0
votes
0
answers
36
views
How to pass a link into a custom Action
currently I have define a Custom Action where I am validating whether a client machine has .net 6 installed or not and a appropriate message I am passing through session message. like below.
string ...
0
votes
0
answers
80
views
HTTP request failing in Installshield custom action
I am writing a custom action to hit an https endpoint to check a license key. The custom action code works fine if i run it outside of installshield in a console application, so i know the code works ...
0
votes
0
answers
161
views
Neet to create a custom action to execute a command in cmd prompt after installation of application
We're having a .Net application built on winforms and c#. We need to digitally sign the application exe after installation on any user's system. We've got the .pfx key and the installer exe is getting ...
0
votes
0
answers
43
views
Move Typelib into a C# custom action code
I have a WiX project with below piece of code to register a library:
<Fragment>
<ComponentGroup Id="COMObjectComponent"
Directory="APPLICATIONFOLDER&...
1
vote
1
answer
198
views
WiX - Uninstalling old NSIS app before installing with WiX
We are planning to ship a new version of a Windows app, and along with it replacing the older NSIS-based installer with a new MSI created with WiX. I am trying to perform a silent uninstall of the old ...
10
votes
1
answer
2k
views
Wix4 C# CustomAction project compile error - WixToolset.Dtf.WindowsInstaller reference
I am looking to write my first C# CustomAction project in .net7 using Wix4.
I have a very simple class in the project with one function decorated with the CustomAction attribute.
The reading that I ...
1
vote
1
answer
1k
views
Wix V4 - CustomAction Condition only when updating
Details of the problem:
I have an action that has to be executed when unistalling but not when updating the product to a new version.
I have defined the UpgradeVersion like this:
<UpgradeVersion ...
0
votes
1
answer
54
views
how to launch a customized exe file as administartor at the end of the Wix installation
All
I create a wix installer to do following task:
at the end of the installation (before clicking Finish), launch the customized "Run.exe" to install "VS Redistributable" and ...
2
votes
2
answers
1k
views
Wix: Accessing properties in a deferred action by setting them in an immediate action: The given key was not present in the dictionary
I am following several sources/SO posts and even the Wix installer book and this is how I am currently setting two properties in an immediate custom action then trying to read it in a deferred action. ...
2
votes
0
answers
202
views
Add custom action in WiX after selecting Next button
I have a problem with my wix installer. I want to execute a custom action when clicking on the next button on a custom page 'InputDlg'. Thats working fine so far. But I also need a return value. If ...
0
votes
1
answer
369
views
Wix - schedule custom action between StopServices and StartServices
I would like to add a custom action in my Wix installer that runs between the StopServices and the StartServices. So that the service is down when the custom action is running. If I do the following ...
0
votes
1
answer
70
views
wix create a backup on install to restore on uninstall
I have an add-in that delivering as a part of another product. There is no installer for that add-in at all. I want create an installer that on installation, copy dlls(old dlls) of that add-in to ...
0
votes
1
answer
642
views
How to Use CustomAction in Bootstrapper ExePackage DetectCondition to realize net core installed or not
I am trying to use customAction method in a Bootstrapper project to determined specific version of .net core is installed or not, but it not work
here is my wsx file code
<Fragment>
&...
1
vote
3
answers
2k
views
Wix v4: Run custom action only on install
In wix 3 you could specify a condition inside the custom element.
In wix 4 the same element does not seem to accept inner text anymore. If you try to set a condition the compiler throws a The Custom ...
2
votes
1
answer
335
views
What happens if a rollback custom action fails?
What happens if a rollback custom action fails? Do I need to specify a Return attribute in Wix CustomAction element for a rollback custom action?
I did a quick test. I created a binary custom action:
...
0
votes
3
answers
511
views
How to test if a parameter is passed into msi command line?
I am trying to install a msi file using msiexec on Windows. This msi can be installed either into the default ProgramFiles dir or a custom dir specified in the msiexec command.
For example when the ...
1
vote
1
answer
798
views
WIX Toolset MSI. How to pass CustomActionData to a CustomAction using WiX if there are several CustomAction and several Properties in the code?
I trying using this:
How to pass CustomActionData to a CustomAction using WiX?
I have 2 CA and several Properties. CustomActionData using in second CA.
Product.wxs:
<Binary Id="CustomAction1&...
1
vote
1
answer
150
views
Can we apply transform(.mst) while uninstallation?
We found some uninstallation issue on already released msi which is creating issue during upgrade of higher version.I need to modify few custom action conditions so that it doesn't run while msi ...
2
votes
1
answer
114
views
Does Installshield follow RFC 4122 specification for generating component GUIDs?
I need to add some files from customer environment into existing msi before installation. In order to do this, We have C# WinForms project which generates transform(.mst) file and add the files in it ...
0
votes
1
answer
851
views
In WiX, update a windows service appSettings.json before starting services
I have a WiX project that installs a few Windows Services that are written in .NET 6. They each have an appSettings.json file in their directory in Program Files. During the install UI, I need to ask ...