custom-action

Inserting Custom Action between Dialogs (InstallUISequence) in WiX

ⅰ亾dé卋堺 提交于 2019-11-29 14:21:20
问题 I have two custom dialog boxes (plus the required ones ExitDlg , FatalErrorDlg , etc.), the first one sets a property using an Edit control and the second one shows this property using a Text control. Here is the meaningful code: <Dialog Id="DialogA" ...> <Control Id="ControlEdit" Type="Edit" Property="MY_PROPERTY" .../> <Control Id="ControlNext" Type="PushButton" ...> <Publish Event="EndDialog" Value="Return" /></Control> </Dialog> And then the second dialog: <Dialog Id="DialogB" ...>

Showing custom form before installation?

ⅰ亾dé卋堺 提交于 2019-11-29 13:05:57
I am creating a setup for windows application, i want to show a form when user clicks on setup. That form will ask for password to the user. Right password will lead to the proper installation of the setup otherwise setup installation will be cancelled. How to do this, if some one provide a link for it. Thanks in advance. Kurubaran Following would be the easiest approach, First create a Windows Form which allows the user to enter password. Windows Form should have the necessary implementation to validate the password. Expose a public boolean property within windows form which should say

How to debug an MSI Custom Action that is implemented in Javascript?

↘锁芯ラ 提交于 2019-11-29 12:02:44
I'm having difficulty figuring out why my Javascript Custom action is failing. I thought I saw a topic in the WIX.chm file on debugging; now I cannot find it. Q1 is there doc on how to debug Javascript or VBScript custom actions? Q2 Is there a way to emit something into the MSI log from a custom action? Addendum: Some people think script is the wrong tool for writing CAs . I don't agree. I think Javascript is a very good tool for the job . For the doc, look for Session.Message . To emit messages into the MSI log from a Javascript Custom Action, follow this boilerplate code: // // CustomActions

Rails: Custom nested controller actions

心已入冬 提交于 2019-11-29 08:05:06
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 %> There are a couple of problems: routing to the accept action and building a URL to a nested resource. Defining custom actions

WiX - CustomAction ExeCommand - Hide Console

寵の児 提交于 2019-11-29 01:08:58
We've gotten a custom action that runs command-line to work as such: <CustomAction Id="OurAction" FileKey="OurInstalledExe.exe" ExeCommand="our command line args" Execute="deferred" Return="check" /> The problem is, the user sees a console popup when the command runs. The command line requires UAC elevation, but should not require any user interaction. We also install the file with the setup, the custom action runs After="InstallFiles". How do we prevent the user from seeing the console? Note that if you do require UAC elevation, then you need to ensure that it's a deferred execution CA. Here

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

独自空忆成欢 提交于 2019-11-28 20:47:39
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" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" > <Publish Event="DoAction" Value=

How do I pass msiexec properties to a WiX C# custom action?

。_饼干妹妹 提交于 2019-11-28 17:31:18
I have an MSI file being created with Wxs 3.0. My MSI references a C# custom action, written using the new C# Custom Action project . I want to pass an argument to msiexec that gets routed to my custom action - for example: msiexec /i MyApp.msi ENVIRONMENT=TEST# In my .wxs file, I refer to my custom action like this: <Property Id="ENVIRONMENT"/> <Binary Id="WixCustomAction.dll" SourceFile="$(var.WixCustomAction.Path)" /> <CustomAction Id="WixCustomAction" BinaryKey="WixCustomAction.dll" DllEntry="ConfigureSettings"/> <InstallExecuteSequence> <Custom Action="WixCustomAction" After="InstallFiles

Windows Installer custom actions: commit action won't get executed

最后都变了- 提交于 2019-11-28 11:29:25
问题 I am designing a windows installer project using WIX. Now it fails in the installation, because the Commit custom action won't get executed, which is caused, weirdly, because a scheduled following custom action has one route to return ActionResult.Success . Let me explain in details: Basically I have two custom actions regarding to installation: one called CommitCA and one called InstallCA. The execution schedule is listed as below: <CustomAction Id="CommitCA" BinaryKey="CustomActionDll"

Custom Action in C# used via WiX fails with error 1154

风流意气都作罢 提交于 2019-11-28 09:04:51
I am using WiX 3.5.1930 in Visual Studio 2010, targeting the .NET Framework 3.5. (Later weekly builds of WiX seem to be very broken with respect to their custom action template, at least for now. 1930 is the most recent build that seems to make a buildable C# CA with working references.) I have two custom action assemblies written in C#. One of them works fine. The other fails with the following error: CustomActionnNameHere returned actual error code 1154 (note this may not be 100% accurate if translation happened inside sandbox) I have compared the .csproj files and .wixproj files, and as

How to debug an MSI Custom Action that is implemented in Javascript?

放肆的年华 提交于 2019-11-28 06:05:02
问题 I'm having difficulty figuring out why my Javascript Custom action is failing. I thought I saw a topic in the WIX.chm file on debugging; now I cannot find it. Q1 is there doc on how to debug Javascript or VBScript custom actions? Q2 Is there a way to emit something into the MSI log from a custom action? Addendum: Some people think script is the wrong tool for writing CAs. I don't agree. I think Javascript is a very good tool for the job. 回答1: For the doc, look for Session.Message. To emit