Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like


7,505 views

Today I was working on Unattended Installation of an Application called SmartDocuments.

The application seemed to behave nicely on a Multi User (Citrix/Terminal Server) environment: it writes user configuration to the user part of the registry and writes configuration files in a user accessible path.

When testing with a normal user account I ran into a problem though, I got an Oracle ORA-01019 error message:

ORA01019

The English message is ORA01019: unable to allocate memory in the user side.

Read the rest of this entry »

32,102 views

If you are implementing a Citrix, Terminal Server or even just a plain Client-Server environment you will need to create a Default User Profile at some point.

The Default User Profile can be thought of as the initial registry settings that are used when a new profile is created.

Many people think that the Default User Profile is available in regedit via HKEY_USERS\.Default but this is NOT the Default User Profile.

UsersDefault

Read the rest of this entry »

4,901 views

Today I wanted to install the Dutch Language pack for Internet Explorer 8, the Dutch language comes as part of the Windows Internet Explorer 8 MUI Pack (in my case the version for Windows Server 2003 SP2).

If you install the MUI Pack you will always end up with all 35 (!) languages installed. This behaviour is the same as the language pack for Internet Explorer 7 that I wrote about earlier (see Modifying Microsoft Updates and/or hotfixes)

The solution is really the same as for the IE7 language pack: you modify the inf file (in my case update_srv03.inf) but if you run update.exe it will refuse to use your modified inf file:

ie8muierror

So we need to patch update.exe to accept your modified version!

Read the rest of this entry »

10,438 views

Have you developed an application that accesses files and may stop because a file cannot be accessed but you need to?

Since Windows Vista it is possible to find out the name of the application which holds open a file.

And we have created a solution for you that doesn’t require a driver, nor does it need Administrator rights! Just plain user source code for you to use instantly.

We have developed a solution in Delphi that can show your user which application stalls your application. Look at these screenshots:

In fact, these dialogs are only for demonstration purposes. But you can get them in addition as a Delphi project!

The code itself is fairly easy to use. We have developed an extension to the official IFileIsInUse Interface from Microsoft.

All you have to do it to call this function provides by us:

The name of the app is returned by the method GetAppName. And if the other application supports IFileIsInUse (call method GetCapabilities) interface you even can close the file or switch to the window.

You’ll see how it works in the demonstration project (images above) accompanied by the function GetFileInUseInfo.

Currently, we only offer a Delphi solution. C++ may available in future or when there’s enough demand for it.

Please use the Contact Form to get more information about how to obtain the solution and conditions.

3,704 views

I noticed that the monthly archives on my blog were not working. I first thought it was a problem with the .htaccess file but it was correct.

I also tried resetting the permalinks option in WordPress to default an back but that did help as well.

After some digging I was able to fix it by selecting an option in the Robots Meta plugin I use:

ArchiveSettings

I selected the Disable the date-based archives option, saved settings and de-selected it again. I am not sure what it changes (the .htaccess file was not changed) nor did I check the code to see what it does but at least it’s working again!

  • 0 Comments
  • Filed under: General
  • 3,698 views

    Today I needed to create a silent install for IBM WebSphere MQ, in my case version 6.0.2.10.

    I started by reading IBM’s documentation: WebSphere MQ Unattendend (silent) Installation which desribes that we can create a response file using the SAVEINI parameter.

    So I recorded a response file and tested the install using the USEINI parameter as indicated by the documentation.

    However the installation failed producing only this error message:

    One or more problems occured. Review the trace and/or log file for details. (AMQ4739)

    Read the rest of this entry »

    3,780 views

    Earlier today I wrote about Using the CorrectFilePaths shim to redirect an ini file to a writable location and believe it or not the next application I was working with today needed a nice shim as well.

    This one was a little more complicated and that’s why I am writing a second post about it.

    I am not sure if this is actuall documented somewhere but a Shim is not applied to Applications or DLL’s that reside in the system directory.

    The application in question here is a Visual Basic 6 application which uses the VB6 runtime, msvbvm60.dll which resides usually in %systemroot%\system32.

    We need to do two things if we want to apply the shim to msvbvm60.dll:

    Read the rest of this entry »

    8,336 views

    Today I needed to package an application called PlesirReality and I noticed that it wrote an ini file into the program directory (in my case D:\Apps\PlesirReality).

    I looked into this ini file (areastate.ini) and it writes user settings in there, like the last position of the window etc.

    We can see this easily with Process Monitor:

    PlesirMon1

    This presents us with several problems:

    The first problem is that the user does not have write permission in this directory so upon application exit we get an ugly error message:

    PlesirUglyError

    We could “fix” this by giving the user write permissions to this directory or even to this specific file but here comes the seconds problem:

    On a multi user environment like Citrix or Terminal Server/Remote Desktop Services it means that when one user exists he will he save his settings for all users.

    And then we have a third problem:

    When a users starts the application on another server he will not get the expected settings because each server will have it’s own copy of this ini file.

    Read the rest of this entry »

    5,964 views

    Last week I needed to an unattended installation of the Oracle Client, in my case version 10.2.0.1.0.

    Oracle has a record switch that allows you to record an installation and generate a response file using: setup -record -destinationFile response_file_name. This is documented here.

    When you are finished you can use this response file to perform the unattended install, eg setup -silent -responseFile response_file_name.

    There is a problem though, the installer (setup.exe) launches a java based installer and immediately returns.

    This was a problem for me since I cannot deploy a dependant application if the Oracle install hasn’t finished yet.

    I did some googling and found a lot of questions about this subject and saw a common resolution where a script is watching a certain file that is creating when the installation has finished in a loop.

    I figured there should be a better wait so I to a closer look at the installer with Ida Pro. I noticed that setup.exe launches another exe. called oui.exe (Oracle Universal Installer) which in turn launches Java.

    Read the rest of this entry »

    14,175 views

    Today I shadowed a user’s session in Citrix and when I wanted to type something I noticed that the keyboard layout was incorrect.

    This is and old “friend” that I always tend to forget about. So hopefully this post will help me to remember it :D.

    You can prevent this by adding a value “IgnoreRemoteKeyboardLayout” to the registry key HKLM\System\CurrentControlSet\Keyboard Layout:

    reg add “HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout” /v IgnoreRemoteKeyboardLayout /t REG_DWORD /d 0x00000001 /f

    This option has been present since Windows 2000 but was broken in Windows 2003. For Windows 2003 there are two related hotfixes, see kb 842136 and kb 917910.

    Read the rest of this entry »

    Blogroll


    Categories


    Archives