Category Archives: Utilities

Creating Custom EXEs with Smart Install Maker

On a recent Citrix project, I needed/wanted to do 3 things on end-user computers:

  • Remove the 11.x Citrix Web Plugin if it existed
  • Run the ReceiverCleanupUtility to uninstall older versions of the Online Plugin or Citrix Receiver
  • Install Citrix Receiver 4.4 using a custom command-line

Ultimately, I wanted the users to be able to do all this with a single click from the StoreFront page.  After a little research, Citrix has published steps on creating a custom Receiver package with Smart Install Maker.  I used Smart Install Maker to create a custom EXE to complete the 3 items listed above and will use StoreFront to make it available to the end-users.  This post is simply a recap of the steps required to create the EXE with screenshots.

1.Personally, I used VMware Workstation to create a “clean” VM (Windows 7) on which to install Smart Install Maker and test my custom EXE.  Perhaps you have access to other tools, but I recommend performing these tasks on your primary administrative device.

2.On my clean VM, I created a Receiver directory on the root of C and in that directory, I downloaded Citrix Receiver 4.4, the Citrix ReceiverCleanupUtility, and the .BAT file I created to perform these steps.  My .BAT file is shown below:

  • ECHO.
    ECHO Removing existing Citrix ICA/Receiver Clients
    REM ***********************************************************
    REM * The MsiExec executable uninstalls the Citrix Web Plugin *
    REM ***********************************************************
    MsiExec.exe /X{C0B165DC-F037-483F-B1C9-D89D91529CEB} /qn /norestart
    ReceiverCleanupUtility.exe /silent
    ECHO.
    ECHO Existing Citrix ICA/Receiver Client removed
    ECHO.
    ECHO Installing and Configuring Citrix Receiver 4.4
    CitrixReceiver.exe /includeSSON STORE0=”StoreService;https://yourstorefrontBaseURL.yourdomain.com/Citrix/Store/discovery;On;CTXStore” ALLOWADDSTORE=A ALLOWSAVEPWD=A

3. Download and install Smart Install Maker and your clean VM.  **Note:  A “full” copy of Smart Install Maker is $99.  If you do not purchase a full copy, you can use SIM for 30 days, though each execution of a custom EXE will display a “You are using a Demo” popup window.  The install of SIM is pretty straightforward.

4. Launch SIM.  On the Installer | General options screen, specify a name for the custom installation package in the Save as heading which determines where the final executable will be saved.  In this example, SIM will save the custom EXE (CustomSetup.exe) into the C:\Temp\Receiver folder.

2-Installer_GeneralOptions

5. On the Installer | Files options screen, click the plus icon (highlighted below) to add files to the project.

3-Install_Files

 

6. On the Add Item window, click the folder icon to the right of the Source file heading.

4-SourceFile.JPG

7. On the Open window, select the Citrix Receiver installation executable as well as any required BAT files and click Open.

5-Open

8. When returned to the Add Item window, change the Destination directory and click OK.  The destination directory is simply the location to which the process will copy any necessary files.  In this example, I changed the destination directory to C:\CitrixRec…when the custom EXE is executed on a remote computer, a C:\CitrixRec directory will be created which contains the files added into the project.

6-CitrixRec_DestinationDirectory

9. On the Installer | Dialogs options screen, select Silent installation and change the Destination Path to C:\CitrixRec.

7-File_Dialog

10. On the Installer | Commands options screen, click the plus icon (highlighted below) to command files to the project.

8-Install_Commands

11. On the Add Item screen, click the select file icon (highlighted below) to add command files to the package.

 

9-AddItem

12. On the Select a file window, select the BAT file used to install Citrix Receiver with customized settings and click OK.  When returned to the Add Item window, select After unpacking under Run schedule, then select the Wait until the application finishes checkbox and click OK.

10a-AddItemDone

10b-CommandsCompleted

13. On the top level menu, click Project | Build Installer.

11-BuildPackage

14. The project will begin to compile as shown below.  Click OK when compiling has completed successfully.

12a-Compile1

12b-Compile2

15. On the Compile screen, click Test if you want to test the new executable from the compile screen; otherwise click Close.

13-Test

16. Verify the success/failure of the package and make changes as required to the .BAT file. Once the package performs as desired, deploy and test the custom EXE to a pilot group, and then map out a strategy for deploying to the organization.

Leave a comment

Filed under Citrix, Utilities

SSL: How to Export Non-Exportable Private Keys

When migrating from one computer system to another, it may be necessary to transfer or import/export certificates from one system to another but there can be issues when exporting the private key from the source system.  When installing a certificate, the private key is not marked as exportable by default as shown below and if one is not paying attention could click right by it, not realizing their potential mistake until years later when needing to export the certificate to a new machine:

If Mark this key as exportable is not checked, you can still export the certificate on the source system and import it onto the destination system without any problems…at least on the surface.  You won’t know there’s an issue until you try to access a secure site which requires the private key to complete an authentication request at which point you wonder how in the world you’re going to get the private key.

If the source machine is a 32-bit machine, you can use a utility called Jailbreak to export “non-exportable” private keys/certificates.

1. Once downloaded, extract the contents of Jailbreaks ZIP file and execute Jailbreak.exe.  In the screenshot, I have right-clicked and have “Run as” selected because Administrative rights are required to run it.  However, in this case, the certificate I needed to export was a User specific, not a machine specific certificate so I needed to run Jailbreak as the user, thus the user was added into the local Administrators group and “Run as” was not required.

2. Jailbreak will launch a Jailbreak MMC Certificates console as shown below.  Locate the certificate in question and then  In this case, the certificate was in the Current User | Personal certificate store.  Right-click the certificate and choose Export.

3. On the Export Private Key screen, select Yes, export the private key and click Next to continue.  Complete the export wizard and then import the newly exported certificate onto the destination system.  With the private key, any applications/sites requiring the private key should work just fine.

Leave a comment

Filed under Certificates, Utilities

Virtual Floppy Disk for Windows 7

I was wondering if you could use a virtual floppy disk as virtual media through, in this case, the Dell Remote Access Controller (HP calls it iLO).  I downloaded the virtual floppy utility found below and used the virtual floppy as virtual media to upgrade the BIOS on a Dell PowerEdge 2950 server.

http://www.worthytips.com/virtual-floppy-drive-windows-7/

Don’t know if anybody cares, I don’t even know if I care, but if you ever need a virtual floppy disk for Windows, it’s there.

Leave a comment

Filed under Utilities, Windows Desktops

Softerra LDAP Browser 2.6

In the previous post, we talked about the need for LDAP Distinguished Name values for configuring the NetScaler to communicate with back-end LDAP authentication systems. In Active Directory domains, those values can be found using ADSIEdit.

If you are using a different LDAP authentication system, you can download the Softerra LDAP Browser v2.6 to help you with your search for the required DN values.

Softerra’s LDAP Browser, capable of connecting to LDAP v2 and v3 servers, provides an Explorer-like interface for LDAP directory viewing and searching.

Softerra LDAP Browser v2.6 can be downloaded here:

http://www.ldapadministrator.com/download.htm

1 Comment

Filed under Utilities