custom-action

Run CA after InstallFile and before CreateShortcuts

吃可爱长大的小学妹 提交于 2020-04-11 17:59:19
问题 I have InstallShield 2013 Basic MSI project I want to have a CA that will run after the files are being installed but before creating the shortcuts, how can I do that ? I tried to create CA that will run after InstallFile but when running the setup I see that when it get to InstallInitialize it skip all CA excepts the one I added and it run it and after that go back to InstallInitialize and run all custom action it has skipped. 回答1: What you're seeing here in the log is the effect of Deferred

How can I get custom action data of a setup project in C#?

别等时光非礼了梦想. 提交于 2020-03-05 04:05:28
问题 I create a windows service and a setup project for my service. In my windows service I can get my customer action data thinks to this : Context.Parameters["dbname"] But I want to access to the value of my customer action data in my service to use it in my project. Someone have any idea how to do it in c# ? UPDATE In my ProjectInstaller : public ProjectInstaller() { InitializeComponent(); } public override void Install(IDictionary stateSaver) { base.Install(stateSaver); string dbName = Context

How can I get custom action data of a setup project in C#?

强颜欢笑 提交于 2020-03-05 04:05:08
问题 I create a windows service and a setup project for my service. In my windows service I can get my customer action data thinks to this : Context.Parameters["dbname"] But I want to access to the value of my customer action data in my service to use it in my project. Someone have any idea how to do it in c# ? UPDATE In my ProjectInstaller : public ProjectInstaller() { InitializeComponent(); } public override void Install(IDictionary stateSaver) { base.Install(stateSaver); string dbName = Context

wix wants an assembly manifest - I have one

[亡魂溺海] 提交于 2020-03-03 14:00:32
问题 I have created a C# CustomActions project to use in wix to create an installer. All I have is the sample project and a sample wix project that references it. And I created an app.manifest in the C# project. Example simple program What I get is: 1>------ Build started: Project: SetupProject1, Configuration: Debug x86 ------ 1> C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -dDebug -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\\"

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=""/>

Uninstallation condition for WIX

北慕城南 提交于 2020-01-25 20:19:07
问题 For installation, we have a property " Install " which we can use in conditions to execute if its undergoing installation. Do we have a similar property for Uninstallation ? 回答1: You can use REMOVE~="ALL" to detect a full uninstallation . An uninstall performed as part of a major upgrade can be detected via the UPGRADINGPRODUCTCODE property. Here is some further advice and some help resources : here is a "MSI Conditions Cheat Sheet" to help you get the complicated MSI conditions for custom

Wix Bootstrapper Update UI (XAML) from CustomAction

风流意气都作罢 提交于 2020-01-25 11:52:33
问题 I have implemented a custom bootstrapper application (based on this tutorial http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ to install several MSI-files . The UI consists of several XAML-files . I use the ExecuteMsiMessage-event to show the user the current actions: private void OnExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (this) { this.currentAction = (string)e.Data[0]; } } In the bootstrapper I use a CustomAction to update a VFP

Installshield : custom action to uninstall previous version and install the latest version

自闭症网瘾萝莉.ら 提交于 2020-01-25 08:28:05
问题 My requirements are as follows: If an application with version e.g. 12.0 is installed at C:\Folder1 and a setup with version 13.0 is to be installed in the folder C:\Folder1 then the setup of version 13.0 should uninstall 12.0 version silently and install the latest version 13.0 If an application with version e.g. 12.0 is installed at C:\Folder1 and a setup with version 13.0 is to be installed in the folder C:\Folder200 then the setup of version 13.0 should install the latest version and also

CustomAction succeeds on development computer, fails on deployment computer

依然范特西╮ 提交于 2020-01-24 23:43:04
问题 I'm creating a WiX installer to install a program which connects to a database. To help with this, I've created a C dll which checks to see if a certain instance of SQL exists on a server: extern "C" UINT __stdcall DBConTest(MSIHANDLE hInstaller) { FILE *fp; fp = fopen("dbcontestdll.txt", "w"); _ConnectionPtr pCon; int iErrCode; HRESULT hr; UINT rc; //init COM fwprintf(fp, L"entering dbcontest\n"); if(FAILED(hr = CoInitializeEx(NULL,tagCOINIT::COINIT_APARTMENTTHREADED))) return ERROR_INVALID

Installing a certificate in a .MSI Custom Action doesn't work properly

故事扮演 提交于 2020-01-21 01:59:37
问题 I'm trying to install a certificate in the Local Machine Store in a custom action. The certificate is installed, but when I use it to query AWS, I get this error: Object contains only the public half of a key pair. A private key must also be provided. The installer is running elevated , the target is Windows Vista. If I use a separate .exe to install the exact same certificate, using the exact same code, it works. So what is it that differs when installing a certificate using the Windows