custom-action

Stop the installation from a custom action

拈花ヽ惹草 提交于 2019-12-10 11:45:21
问题 Is it possible to exit msi installar from a custom action without errors? I am using visual studio setup project to create the msi and I have added a custom action exe to install. If I return a value other than 0 from exe it terminate the installation. But it shows an error. I need to exit installation without showing errors. Thanks. 回答1: Finally I found a way to do it using a vbscript custom action from http://chensuping.blogspot.com/2013/05/windows-setup-project-vbs-custom-action.html. 回答2:

WIX property from a Custom Action into a WIX variable

感情迁移 提交于 2019-12-10 11:18:38
问题 May seem like a trivial question but I cant get it to work. QUESTION: Can u set a WIX property from a Custom Action into a WIX variable? This is what I have tried: <?define VAR = "ProductName"?> <Product Id="*" Name="$(var.VAR)" Language="1033" Version="1.0.0.0" UpgradeCode="$(var.UpgradeCode)"> <Property Id="VAR">ProductName</Property> <CustomAction Id='GetProductName' BinaryKey='GetProductName' DllEntry='GetProductName' Execute='immediate' Return='check' /> <CustomAction Id="CustomAction1"

WIX - Adding a C# custom action code

南笙酒味 提交于 2019-12-10 09:22:49
问题 I'm creating a program which is being installed by Wix, using VS 2010 and I've already got the product.wxs ready. Now I want to add a custom C# action to the installation. I've searched how to do it and found this guide: How do I create fully fledged C# custom actions? The problem is that I don't understand all the instructions, specifically in this section of the guide: Integrate the C# custom action in Advanced Installer I've created the Custom Action project but I don't understand how do I

How can I get the return code from a CustomAction?

核能气质少年 提交于 2019-12-10 03:26:43
问题 I have the following CustomAction in my project: <CustomAction Id="InstallDriver" Return="check" Execute="deferred" Impersonate="no" FileKey="FileDriverInst" ExeCommand="-install" /> <InstallExecuteSequence> <Custom Action="InstallDriver" Before="InstallServices" /> </InstallExecuteSequence> The program that installs the driver produces useful return codes, for example if the installation failed because the system needs to be restarted following a previous driver uninstall. Currently if

Wix Custom action set value from CA to wix

こ雲淡風輕ζ 提交于 2019-12-10 03:17:04
问题 In deferred ( with impoersonate = no) to send the Value to the WIX to CA, i am using set property and value and collecting the data in CA using session.CustomActionData["key"]; Is there any way to send back the data to the WIX from CA <Property Id="RESTART" Secure="yes" Value="false" /> In immediate i was using, session["RESTART"] = "true" ... how to achieve this in deferred CA 回答1: You cannot modify the session from a deferred custom action; at that point, MSI is executing its script and

WiX - commit more than one Property to deferred Custom Action

[亡魂溺海] 提交于 2019-12-10 02:56:38
问题 I have a problem with my WiX installer in contact with deferred / immediate custom actions. Please excuse my english. I want to surrender some properties, entered by the user, to a deferred custom action. I know that I need a immediate custom action and "CustomActionData" to do that. I´ve implement it at this way. The binary: <Binary Id='myAction' SourceFile='.\TemplateGeneration.CA.dll'/> The immediate custom action: <CustomAction Id='Datenuebergabe' Property='DoSomething' Value=

Rails 3 Form For Custom Action

微笑、不失礼 提交于 2019-12-08 15:55:29
问题 I'm having trouble routing a form to a custom action in Rails 3. Here are my routes: resources :photos do resources :comments collection do get 'update_states' end member do put 'upload' end end Here's the form_for: form_for @photo, :remote => true, :url => { :action => upload_photo_path(@photo) }, :html => { :multipart => :true, :method => 'put' } do |f| And here's the error message: No route matches {:action=>"/photos/42/upload", :controller=>"photos"} ... this is especially frustrating

custom action method calls in WiX

半腔热情 提交于 2019-12-08 11:04:07
问题 Lets imagine I've written a custom actions managed class library that I am planning to use in WiX setup project. The class library contains few classes which have "Install" methods. I am planning to launch those methods from my setup package as a custom action, so I mark all of them with the CustomActionAttribute. What will happen then? Will only one method be launched, or all of them, or the compilation of the setup project will fail? Is this considered a good practice at all? 回答1: A better

Best way of displaying a Message box or Confirmation box in ASP.NET

独自空忆成欢 提交于 2019-12-08 03:58:26
I came across requirement for message box like everyday since around a year now, I tried jQuery plugins, JavaScripts alert but am still not sure which way would be the best way of doing it. I want to display a message box within ASP.NET Page (well its actually sharepoint application page). <%@ Page Language="C#" MasterPageFile="~/_layouts/abc/simple.master" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %> <%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Import Namespace="Microsoft.SharePoint

How to find the setup location in an VBScript custom action for InstallShield?

那年仲夏 提交于 2019-12-07 21:44:49
问题 In an InstallShield project I have a VBScript custom action that conditionally needs to execute a certain file packaged with the install. Normally I get the current directory of a vbs using code such as sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") Which, if it returned the location of the Setup.exe that initiated the install, should work. However when running the install, the current path (on XP) is C:\Windows\system32 instead of the location of the Setup.exe