custom-action

Mark MSI so it has to be run as elevated Administrator account

孤街醉人 提交于 2019-11-28 04:10:11
I have a CustomAction as part of an MSI. It MUST run as a domain account that is also a member of the local Administrators account. It can't use the NoImpersonate flag to run the custom action as NT Authority\System as it will not then get access to network resources. On Vista/2008 with UAC enabled if NoImpersonate is off then it will run as the executing user but with the unprivileged token and not get access to local resources such as .installState. See UAC Architecture Anyone know of a way to either Force the MSI to run with the elevated token in the same way that running from an elevated

Rails: Custom nested controller actions

纵然是瞬间 提交于 2019-11-28 01:38:25
问题 I want to setup a custom nested controller actions but I can't figure out the routing. I keep getting the following error No route matches [GET] "/assets" routes.rb resources :companies do resources :requests do match :accept end end index.html.rb <% @requests.each do |request| %> <ul class="users"> <li> <%= full_name(request.profile) %> <%= request.status %> <%= link_to "Accept", :controller => "requests", :action => "accept", :id => request.id %> </li> </ul> <% end %> 回答1: There are a

Custom Installer in .Net showing Form behind installer

橙三吉。 提交于 2019-11-28 00:04:13
[RunInstaller(true)] public partial class Installer1 : Installer { public Installer1() { InitializeComponent(); } public override void Install(System.Collections.IDictionary stateSaver) { base.Install(stateSaver); } private void Installer1_AfterInstall(object sender, InstallEventArgs e) { Form1 topmostForm = new Form1(); topmostForm.BringToFront(); topmostForm.TopMost = true; topmostForm.ShowDialog(); } } I need to display the topmostForm in front of the default Windows Installer UI. The above is sample code inside my CustomAction that I am using to create a Form. Setting the TopMost property

Run batch file in Windows Installer Commit

妖精的绣舞 提交于 2019-11-27 22:31:26
I am having no success in modifying a Windows Installer MSI to run a batch file after the primary output has been installed. I have searched for this and found many suggestions, but nothing that works. Add a Custom Action Custom actions can only be executable files. A batch file is not executable. Create a Windows Scripting Host executable that runs the batch file Many people have tried to do this, including on SO , and no one has been able to get this to work. Use WIX or InstallShield I do not have the time or authority to change company installer technology. Edit the .msi with Orca and add a

wix installer update process and confirmation dialog

喜欢而已 提交于 2019-11-27 16:24:07
As part of the update process which is working well for us, we would like to add an extra confirmation dialog so an end user can accept or decline the installation of this newer version. Do you confirm you want to install this new version? Yes : we continue process No : is cancels installation If you can help me by giving me full instructions, condition to add UPGRADINGPRODUCTCODE..and custom action displaying a popup it would be great. Thx, Julien Completely full instructions are not feasible because you need to create a dialog to insert when an upgrade is detected, and that needs hooking

Error 2896 using a WiX C#/.NET 4 custom action

て烟熏妆下的殇ゞ 提交于 2019-11-27 13:13:09
问题 I am trying to use my first custom action in WiX and I get: error 2896: Executing action CustomActionTest failed. I am using Visual Studio 2010, WiX 3.5, 64-bit Windows 7 Ultimate, .NET Framework 4. Here are what I think are the relevant sections: <Binary Id="JudgeEditionCA" SourceFile="..\JudgeEditionCA\bin\Debug\JudgeEdition.CA.dll" /> <CustomAction Id="CustomActionTest" BinaryKey="JudgeEditionCA" DllEntry="CustomActionOne" Execute="immediate"/> <Control Id="Next" Type="PushButton" X="248"

Installer Custom Action problem - can't write to register key

走远了吗. 提交于 2019-11-27 12:31:43
In the Custom Actions editor I've added the custom action to Install and Uninstall stages of the process. In the properties window I've marked the CustomActionData property as : /TARGETDIR = "[TARGETDIR]" I'm hoping that the above passes the installation directory info into the custom action. The custom action seems to be firing, but I'm getting the following error message : "Error 1001. Can't write to register's key" (or something like that, I'm translating it from my local language). What am I doing wrong? using System; using System.Collections; using System.Collections.Generic; using System

How to install feature based on the property set in custom action?

吃可爱长大的小学妹 提交于 2019-11-27 09:51:48
I am trying to install one from two features based on the value that should be set inside of the custom action. Firstly, I set the value of a property: UINT __stdcall ConfigurationCheckAction(MSIHANDLE hInstall) { HRESULT hr = S_OK; UINT er = ERROR_INSTALL_FAILURE; hr = WcaInitialize(hInstall, "ConfigurationCheckAction"); if (condition) { MsiSetProperty( hInstall, TEXT("STREAM"), TEXT("RED") ); } else { MsiSetProperty( hInstall, TEXT("STREAM"), TEXT("BLUE") ); } return WcaFinalize(er); } Secondly, I make two conditions per two features: <Feature Id='Complete' Level='1'> <Feature Id="Red"

Interrupt installation when custom action returns error

…衆ロ難τιáo~ 提交于 2019-11-27 08:28:43
问题 I have a method that verifies a password in a .dll and it should return an error code on failure. It has the following prototype: #define DllExport __declspec( dllexport ) extern "C" DllExport UINT TestPassword(MSIHANDLE hInstall); I expect that when this method returns an error code (like ERROR_INSTALL_USEREXIT = 1602 ) the whole installation process will terminate (no other custom action following this one will be executed), but it doesn't. Also, in Wix I have the following fragment:

wix installer update process and confirmation dialog

二次信任 提交于 2019-11-27 04:07:54
问题 As part of the update process which is working well for us, we would like to add an extra confirmation dialog so an end user can accept or decline the installation of this newer version. Do you confirm you want to install this new version? Yes : we continue process No : is cancels installation If you can help me by giving me full instructions, condition to add UPGRADINGPRODUCTCODE..and custom action displaying a popup it would be great. Thx, Julien 回答1: Completely full instructions are not