Jun 142013
 

Am I missing something here Anthill deployment engineers? The concept is quit simple; if you deploy code to a XenApp 6.5 server (or any version) and it fails, chances are people have sessions remaining on the server that need ended before the deployment can be successfull. Please take the time to better understand the environments you server and cater to as it is indeed possible that people or other processes have handles on the files you intend to replace! At a bare minimum the pre deployment processing should go like this:

If “notepad.exe” is running, use the following command to end existing sessions prior to deployment – taskkill /im “notepad.exe” /f. After the command runs to end the process, simply either check for any existing sessions or proceed to the actual deployment! Now I’m sure the logic can be slightly more difficult but you get the drift right? RIGHT?

[Update] Say you want to get a little more complex with the pre-deployment update logic. The following example should get you up and running, and even get the the documentation started for the non technology minded project management people you are forced to deal with. A few things to make note of:

  • Logic is as follows… this is just basically a glorified batch file that’s callable via anthill deployments or any other scripted process.
    • Enumerate running processes and look for instances where marketdataapplication.exe is running and only end instances where the “specified” parameter is detected
      • Example: if marketdataapplication.exe is running with the following parameter “-app:bloombergTest” is detected end the underlying process.
    • .NET concole application will be capable of accepting command-line parameters which can be called via anthill deployments. The ability to specify the –app parameter will allow for a targeted deployment.
      • Example call from anthill deployment: ./marketdataapplication.exe –app:bloombergTest –>this will only end instances where –app:matricstest is detected. Any other instances with marketdataapplication.exe will be left in a functional state.
    • The console application needs to be secure. The intended .net app will run under the context of the user account – no need to specify a password or user account. If the user running the app does not have the rights, the app will simply fail.

That’s it in a nutshell, the above should both address a simple deployment where you can end any existing sessions with taskkill and a more complex deployment where its possible to see many the same application running but with different commands.

Jun 132013
 

I guess for the record, who actually looks at .hlp files anyway? I mean, like who goes to the help menu on any applications and then reads the information? I know in theory help files should contain “helpful” information for the user. But I know for a fact its the last thing development is concerned about. Onward…

Here is the scenario – a user launches an application via your server 2008 r2 xenapp farm, and attempts to access “help”.  In theory, this action should not be an issue. But they get the following message. “Why can’t I get help from this program? The help for this program was created in Windows Help format, which depends on a feature that isn’t included in this version of Windows. However, you can download a program that will allow you to view Help created in Windows Help format.” See below –>

cant-see-help-files

To correct this issue simply do a quick google search for KB917607 and download/install the hotfix. A reboot is not necessary but may be needed. Then have the users disconnect from their citrix sessions and reconnect and test. Problem solved.

[Update] Chances are if  KB917607 has been applied users will be getting prompted with the following message prior to a Windows Help successfully launching:  “There was a problem running the macro. (1037)”. This can be easily corrected with the following registry key.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\WinHelp]
"AllowProgrammaticMacros"=dword:00000001

Assuming the OS is 64bit the above registry key will work. Copy and save as macrofix.reg and then run form the desktop or server. If you have a 32bit os, remove the Wow6432node from the path and run. Thanks A.Baker for posting! We always appreciate input from our 15 readers.

Jun 102013
 

Nothing new going on here with this prompt. Once a month end users get prompted when they launch a XenApp 6.5 application with the following: “Updating your computer is almost complete. You must restart your computer for the updates to take effect. Do you want to restart your computer now?” And since the users do not have the ability to restart the server or suppress the prompt, the only option is to click on “restart later”. This gets quite annoying when the prompt appears every 10 minutes so I can see why a user would complain.

Here is how you can quickly disable these prompts with the local group policy:

  • from command-line, launch gpedit.msc and navigate to the following:
    • Local computer policy
    • Computer configuration
    • Administrative Templates
    • Windows Components
    • Windows Update
      • Double click  “Do not display ‘install updates and Shutdown’ option in shutdown windows dialog box, and set the policy to ”enabled”.
      • Double click “Turn on Software Notifications” and set the policy to “disabled”.
      • Double click “No auto-restart with logged on users for scheduled automatic updates installations” and set the policy to “Enabled”
  • From command-line run gpupdate /force.

Next, send out an email to your users confirming the issue has been resolved and they will no longer be prompted to reboot.

Optimized by SEO Ultimate