Remko Weijnen's Blog (Remko's Blog)

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


4,339 views

Today I needed to package an application that uses the Borland Database Engine (BDE).

The BDE is a database engine/connectivity component commonly used in Delphi and C++ Builder applications. It has been deprecated since 2000 when it was replaced by dbExpress.

But it’s still widely used so you may still find applications that require the BDE.

In my environment I already have a package for the BDE itsself. But the application I needed to package today, needs to have an Alias addded.

This is usually done manually by going into the BDEADMIN control panel applet or by copying the file where BDE saves the aliases (IDAPI32.CFG).

Here is a screenshot of the Alias my application needs (it uses an Interbase database):

BDE

I didn’t like the copy approach and didn’t even consider the manual option so I wrote 2 little tools.

Read the rest of this entry »

3,160 views

I usually change the text below the “This Computer” icon to reflect the current username and servername:

UserOnComputer

This is an ancient trick, just set the the LocalizedString Value of the following key:

to “%USERNAME% on %COMPUTERNAME%”.

It get’s a little more complicated if you want to set this from a script, because the environment variables are replaced with the actual value BEFORE they are entered in the Registry.

Read the rest of this entry »

1,312 views

If you read MSDN documentation for LSA_OBJECT_ATTRIBUTES you will think it’s defined in LsaLookup.h:

MSDN

And that it’s supported since Windows 2000 but I couldn’t find it in this header file.

Instead I found it in NTSecAPI.h, so I decided to check the different SDK versions and starting from SDK v7 LsaLookup.h exists but in earlier SDK’s (v5.0, v6.0a and v6.1) there is no LsaLookup.h.

  • 0 Comments
  • Filed under: Programming
  • 3,050 views

    Last time I showed a User Defined Function to the Full Path of an Altiris Job given it’s id (event_id). Note that Altiris calls a Job an Event so the terms Event and Jobs are interchangeable here.

    To complete it we first need to prepend the server and share name to the path.

    I looked into the Altiris database tables to find the best place to get the servername and it seems that the hostname column of the mmsettings table is a good way.

    In my database there was only one row in the table but I restrict the results by adding top 1:

    Then I looked into the available tokens for one that returns a job id but we can only return a job name or a computer id. Since a job name is not unique I decided to use the computername and find the active job for this computer.

    When a Job is scheduled an entry is added to the event_schedule table. If you look into this table you will notice a column status_code which is NULL initially and when the job start it will get a value of -1 which indicates the job is active.

    When the job has finished the status will always be 0 or higher. Read the rest of this entry »

    1,761 views

    Earlier I described a SQL Query to get the Full Path of an Altiris Job, today I will describe how we can make a User Defined Function (UDF) in SQL so we can call it easier.

    I am using an UDF because it allows us to specify parameters, in this case a single parameter (the EventId (or job id).

    This is the SQL that creates the UDF:

    Read the rest of this entry »

    3,159 views

    from CTX127541:

    A cross-site scripting vulnerability has been identified in specific versions of Citrix Web Interface.

    This vulnerability could potentially be used to execute malicious client-side script in the same context as legitimate content from the web server; if this vulnerability is used to execute script in the browser of an authenticated user then the script may be able to gain access to the authenticated user’s session or other potentially sensitive information.

    This vulnerability affects all version 5.x Citrix Web Interface installations up to and including version 5.3.

    So you should consider upgrading to version 5.4 which has a new look (again):
    CtxWi54ScreenShot

  • 0 Comments
  • Filed under: Citrix
  • 3,238 views

    I wanted to query the full path name of an Altiris Job, this sounds easier that it is though.

    Consider the following hierarchy:

    Tree

    Now I want to assemble the full Path, in this case: RPA\Getronics\PKG_p007.Citrix_Components.

    Read the rest of this entry »

    2,867 views

    I was trying to install a checked build of Windows 7 under VMWare Workstation but after the first reboot during the install (the completing installation step) the system came up with a BSOD.

    It can be fixed by adding a line to the VMX configuration file:

     

    piix4pm.smooth_acpi_timer = TRUE

  • 2 Comments
  • Filed under: VMWare, Windows 7
  • 2,246 views

    I remembered from a previous project that when the Citrix Web Interface this is caused by a setting called generatePublisherEvidence in the Aspnet.config file.

    This behaviour has been documented by Citrix in CTX117273.

    If you read it carefully you will see the note that you need to fix it in 2 places for an x64 system.

    If you know me a little than you have probably guessed I wanted to fix this with a nice script. I have chooses PowerShell this time because it has good support for XML and I made a one-liner so I can easily use it in an Embedded Altiris script.

    The script changes the config file for both x86 and x64:

    EDIT: If you run by commandline you need to care of quotes within quotes, easiest thing to do is to use double quotes (“) to surround the commandline and use single quotes (‘) for Strings inside the commandline:

    5,487 views

    I did an unattended install of the Citrix WebInterface on a testmachine and it failed with error 258.

    The logfile clearly indicates the reason:

    [ ERROR ] com.citrix.wi.install.SetupErrorReporter: Error 258 occurred: ASP.NET 2.0 must be registered and enabled in Microsoft Internet Information Services before the Web Interface can be installed.

    We can register ASP.NET in IIS with the Aspnet_regiis.exe tool that comes with the .NET framework.

    The commandline would be:

    aspnet_regiis.exe -enable -ir

    We do need to make sure we are using the proper version of the tool (x86 or x64), I did that in the Embedded Altiris Script:

    Related Articles:

  • 0 Comments
  • Filed under: Altiris, General
  • Blogroll


    Categories


    Archives