install4j - when doing "install-service" can we prompt for the different options? - install4j

I created an install4j installer for our product.
We are using it exclusively for Windows installer creation. One of the main reasons is to handle the Windows Service installation automatically.
But there are various configurable parameters that need to be prompted for:
Username to launch service
Password of that user
Restart on failure
Etc.
I want to prompt the user for some of these.
I'm pretty sure the only way to do this is to create a form.
Is there someone out there who has already done this that I can steal the work from?
Otherwise I'll be having to learn a whole lot more about install4j installer actions, forms, variables, etc and it will take some considerable time.

The basic workflow for wiring user input to properties of actions is this:
Add a form to the installer
Add a form component to that form which is suitable for the property of interest, for example a "Check box" form component for the "Restart on failure" property or a "Text field" form component for the "Account name or SID" property
Each form component is bound to an installer variable whose name you have to configure, say "accountName" for the "Account name or SID" property.
In the action configuration, enter ${installer:accountName} to use this variable value.
For non-text field properties, right-click the property and choose "Switch to text mode" from the context menu first
An example form that is suitable for your purpose is contained in the "hello" sample project that is included with install4j. Go to the "Installer->Screen & Actions" step and locate the "Service options" form under the "Installer" node.

Related

Azure DevOps: Field with default value containing another fields value

I am trying to find a way in Azure DevOps of displaying a field on a User Story layout that is made up of a URL plus the value of another field on the same story.
We have an external support ticket system where all of our support calls are logged. When the story (or even Defect) is created, we have a field where a support reference is entered.
I want another field that combines a URL and the support reference so it creates a link to the support ticket.
Is this do-able?
Thanks,
Craig
This is achievable. You can Add a custom field to a work item type for an inherited process.
1,First you need to create a inherited process.
Go to Organization settings, From the Process page under Boards, open the … context menu of the process you'll use to create an inherited process, and then choose Create inherited process. Choose the same system process—Agile, Basic, Scrum, or CMMI—that was used to create the project that you want to customize.
2, Add a custom field to an existing work item type for the inherited process.
From the Process page of the selected inherited process, choose the work item type(User Story) you want to add the custom field to.
Select the work item type and click new field or ... to add a field under a group.
For example i add a new field Support Url under group Planning(click Options to define a default value for this field).
3, Apply the customized process to your project.
Click team projects of the process shown as below screenshot.
Open the … context menu for the process and choose the Change team projects… option.
Then you will have the custom field with default value for the work item type in your project.
For detailed steps please check Microsoft Document there.
Update:
Field value made up of a static part, plus another field
There is no direct way or any tool i can find to achieve this. However there is a complicate workaround to achieve this.
You can try creating a service server to to combine the field values and update the workitem field with workitem update rest api, and add a service hook to this service server.
You can refer to the service hook sever provided by Microsoft. Check reate a pull request status server with Node.js

How to set required fields and default values for work items

I am using Visual Studio Team Services for my project, and accessing it via the web. I am using the Scrum template.
I am trying to figure out how to set default values for Task fields. For example, for the task's Activity field, I want to make it a required field, and set the default value to "Development" whenever I add a new task.
How can I do this?
TFS
On TFS you need to customize the process template to provide a <DEFAULT> rule. To change the process template you need to use witadmin to export the workitem type definition you want to change, then edit the XML to add the rule you want, in your case a <DEFAULT> rule on the transition to the default state. The re-import the workitem type definition.
The process/rules are explained here:
Define a default value or copy a value to a field
Modify or add a custom work item type (WIT)
VS-Team-Services
On Visual Studio Team Services this option does not exist yet for system fields. The features for process customization have been released in the past months and are rapidly evolving. It's probably a short wait until these features will be available.
What you can do is use the "Template" link on the work item form to create a bookmark that will open the work item form with a number of fields pre-filled.

Determining if a form is used as a subform

Is it possible to determine if a form is used as a subform elsewhere? I have quite a few forms created and after some refactoring have some forms that I'm unsure if are used inside others.
If so, how do I do this?
Consider Access' "Track name AutoCorrect info" option. When you enable that option, Access gathers information about database objects. Afterward, you can select one of your forms in the Navigation pane and click "Object Dependencies" in the "Database Tools" section of the ribbon. That will bring up the "Object Dependencies" panel showing dependencies between the selected form and other database objects. Choose the "Objects that depend on me" radio button and look in the forms section of that tree list to see which, if any, other forms depend on the form you selected.
Note if you have a form with a subform control, and change its SourceObject property at runtime ... IOW switch forms contained in the subform control ... Access may not identify any of those subforms as dependencies of the parent form. So this approach may not give you everything you need, but it could be a reasonable starting point.
Finally, if this approach is useful, I suggest you disable the option after you're done. Allen Browne describes problems due to AutoCorrect here:
Failures caused by Name AutoCorrect. I never leave any of the AutoCorrect options enabled in the production versions of my applications.

SugarCRM, Is it possible to give edit options to some fields to users

I have some different kind of issue here on SugarCRM.
As Admin I created a module named as "My Projects" where only "Project Manager" can edit/create or delete and the "designers" can only view this, this part is done.
Now I created a custom field (dropdown field) as "Project Status" which should be available for everyone to edit (e.g Project Manager and Designers).
As designer, should not allow to edit any other options/fields in "My Projects" except the "Project Status" field.
I am not sure whether it is possible to give edit option to certain fields instead of whole module.
Please let me if anyone come across similar situations.
Edit
I am using SugarCRM Professional version 6.1.5
If you're using SugarCRM PRO/ENT you can define permissions on both module and field level.
Go to Administration -> Role Management
Select the role
Click on a module to enter "field permissions" mode
Click on the field you want to change
Save when done
For more information, see SugarCRM documentation.

MOSS 2007 - Customize Send To Menu

We currently have a need to add a custom menu item to the Send To menu within our document libraries that would allow a user to create a link to the currently selected list item within another library. When the user clicks on the new "Send Link to..." menu item, they should be prompted to browse to the library in which the link should be added. Once the user chooses a destination, the link, along with the metadata from the list item, should magically appear in the selected desitnation library. Once again, we only want a link, not a copy of the file. Is this possible to do? Code examples would be much appreciated.
Does it have to be in the send to menu? Can it also be directly in the context menu (say at the bottom)? If so, you can create a feature that deploys a CustomAction to the site. If it really, REALLY needs to be under the "send to" menu, you are going to have to use javascript (since that is how the out of the box context menu is created) to "hijack" the menu and insert your own item.
IMHO this is rarely needed, a CustomAction is the preferred way of doing this. It is the easiest and most "maintainable" (all it is is a feature + customaction definition with maybe some code, all of which are deployed using a solution).
More info on CustomActions here.
P.S. if you do decide to go with javascript, don't go editing the out of the box sharepoint js files in SharePoint's 12 Hive, but add a ContentEditorWebPart to the page and insert your Javascript in there.
P.P.S. While assigning a method from an assembly as the action for a CustomAction is allowed in most cases, it is not for the ListEdit (item) context menu.
What they say is that "Sharepoint server 2010 will have it out of the box", i.e. documents may stay where they were created and links go to the Records center (named "In Place Records Management, see http://www.cmswire.com/cms/document-management/the-scoop-sharepoint-2010-records-management-005948.php).
MOSS 2007 requires the actual document to be copied to the Records repository to be registered.