custom-action

Autologin firing in Liferay from a redirection

£可爱£侵袭症+ 提交于 2020-01-17 05:04:08
问题 I have a problem trying to fire up an autologin class in Liferay CE 6.1.1 when performing a redirection from a custom action method. Let me explain the scenarios. Functional scenario 1: direct POST action Let's say I have a public page A with a login form (with username and password), an autologin class to perform some checks and a private page B to show some data after proper authentication. I have a JSP with the login form in a portlet deployed in public page A, as follows (this is an

How can I perform a custom action in WiX that only executes on install or uninstall?

蹲街弑〆低调 提交于 2020-01-12 12:53:48
问题 I have two custom actions, one of which I'd like to execute when my product is installed and the other when it is uninstalled. My custom action is currently called from a merge module after the "InstallFinalize", but this happens for both install and uninstall. I've tried adding the "NOT INSTALLED AND NOT UPGRADINGPRODUCTCODE" condition, but that gave me an error: Error 2762. Cannot write script record. Transaction not started. I've also tried attaching to other actions (for example,

Create Custom Action to Start Application and Exit Installer

只愿长相守 提交于 2020-01-12 05:44:07
问题 Thanks to StackOverflow I found out yesterday how to add a custom action to the Visual Studio Installer to start my program after an update. The problem I now face is that at the end of the installer the program does open but the installer never finishes until I exit my app. Is there a way to ensure the app starts only after the user clicks finish on the MSI package? Or the program starts at finish of installer but installer completes and exits? I am running Visual Studio 2010 in case it

Private key of certificate in certificate-store not readable

微笑、不失礼 提交于 2020-01-10 10:21:22
问题 I think I've got the same issue like this guy, but I wasn't as lucky as him/her since the solution provided doesn't work for me. The solution provided looks for files on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys ( not in sub directories) and C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA (and subdirectories) However since I want the setup to install the application to all users, the custom action is running under the SYSTEM -User, which leads the files beeing actually

Private key of certificate in certificate-store not readable

旧街凉风 提交于 2020-01-10 10:20:13
问题 I think I've got the same issue like this guy, but I wasn't as lucky as him/her since the solution provided doesn't work for me. The solution provided looks for files on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys ( not in sub directories) and C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA (and subdirectories) However since I want the setup to install the application to all users, the custom action is running under the SYSTEM -User, which leads the files beeing actually

Replicate Behavior of a Batch File in a Custom Action

旧时模样 提交于 2020-01-07 03:40:55
问题 I'm creating a wix installer at work, and I need to be able to replicate the behavior of this batch file in a custom action: start /d "C:\Program Files (x86)\Remindex" INSTSRV.EXE RemindexNP "C:\Program Files (x86)\Remindex\SRVANY.EXE" I am trying to create a service using a normal windows application, which SRVANY.EXE can do. This batch file runs fine normally, but I can't seem to get a custom action to do the same thing. I have tried this: <CustomAction Id="RunNP" FileKey="FILE

Monitoring Process Exits in a Custom Action

孤街醉人 提交于 2020-01-06 10:54:31
问题 All – I need to carry out several tasks silently via Custom Actions. Essentially, I need to install and license a 3rd party application after I've laid down my own bits: I install my bits into the Application Folder I launch a custom action to Install the 3rd party app via FooSetup.exe I launch another custom action to license the third party app via FooLicense.exe, installed during step 2. During the Commit phase of the installer, I fire this code to launch the silent setup of the 3rd party

How to use VS Installer class in a Custom Action

我们两清 提交于 2020-01-06 04:57:09
问题 Dozens of Q&A entries (all but one in stackoverflow!) that I found got close to this question, but didn't teach me what I needed. I have what should be a nearly simple installation: a Windows service and an associated tray icon application. They install fine with the standard VS Setup project. After the files are installed, I need to present a dialog to the user to set some parameters in the service's exe.config file. In that dialog, the user should be able to abort the installation. I've

Schedule reboot from WiX deferred custom action

不想你离开。 提交于 2020-01-04 06:24:50
问题 I've got a WiX deferred custom action that conditionally modifies some registry keys. For the changes to take effect, a reboot is required. I'd like the user to get the standard dialog box that prompts them to reboot after the installation completes. How can I schedule a reboot from a deferred custom action? 回答1: Why do you have a custom action doing something that MSI/WiX knows how to do natively? A cleaner approach would be to have registry values associated with a component that has the

Schedule reboot from WiX deferred custom action

隐身守侯 提交于 2020-01-04 06:24:08
问题 I've got a WiX deferred custom action that conditionally modifies some registry keys. For the changes to take effect, a reboot is required. I'd like the user to get the standard dialog box that prompts them to reboot after the installation completes. How can I schedule a reboot from a deferred custom action? 回答1: Why do you have a custom action doing something that MSI/WiX knows how to do natively? A cleaner approach would be to have registry values associated with a component that has the