Remko Weijnen's Blog (Remko's Blog)

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


6,693 views

If this is your first visit, take your time and look around. Here are some things you might be looking for:

Do you like my work? Did my work help you?

  • Leave a comment and tell me how it was usefull to you.
  • If you want you can make a donation with the Paypal Donate Button in the right Sidebar.

Thank you!

  • Comments Off on Announcement: Dear Visitor
  • Filed under: Uncategorized
  • 59 views

    I had a strange error today using the Desktop App Converter with the parameters given from the Store for Business.

    The conversion would fail with the following error:

    DesktopAppConverter : error 'E_MANIFEST_USE_DEFAULT_VALUE_FAILED': Property 'Package.Applications.Application.Id' in AppxManifest.xml could not be set to the default value

    I’m not sure why this fails as the PackageName is provided by the store and should be valid. An answer on stackoverflow suggested to use a different value for the PackageName parameter and then edit the manifest.

    I don’t like this method as manual modifications of the manifest often leads to errors when submitting the application to the store.

    So let’s have a look and see why we’re getting this error.

    I searched for E_MANIFEST_USE_DEFAULT_VALUE_FAILED in the DesktopAppConverter folder and found 1 occurence in ManifestOps.ps1.

    From a look at the code it wasn’t immediately clear where the validation failed so I decided to debug it.

    Read the rest of this entry »

    146 views

    I was trying to sign an .appx package that I created with the Desktop App Converter. However signtool returned the following error: Sign returned error: 0x800700C1
    For more information, please see http://aka.ms/badexeformat

    image

    Sadly signtool doesn’t return more detailed information, even when passing the debug switch:

    image

    So what’s going on?

    Read the rest of this entry »

  • 0 Comments
  • Filed under: UWP
  • 302 views

    Recently I installed a new Windows 10 machine (version 1709 aka Fall Creators Update).

    After a while I noticed a problem with the Task Scheduler: when I wanted to open the “Schedule Tasks” option from settings I received the following error message:

    The remote computer was not found.

    The Task Scheduler MMC snapin was empty:

    Task Scheduler (Local) | Empty

    Read the rest of this entry »

    50 views

    DAC IconWhen using the Desktop App Converter there’s no need to sign the resulting .appx packages with your own code signing certificate when you submit them to the Store.

    However if you want to test the package on a different machine or distribute it to test users you may want to sign the .appx with a certificate.

    One option is to use the -sign parameter, in this case the Desktop App Converter generates a code signing certificate and signs the package with it. Although easy to use, it’s not very convenient if you want to distribute the .appx as you need to add the certificate to the Trusted People certificates store (for each user). See Run the Packaged App in the documentation.

    imageIf you want to sign the .appx package with a trusted certificate (e.g. issued by a trusted certificate authority such as DigiCert) you need to make sure that you pass the subject (the CN) from your code signing certificate to the Desktop App Converter (using the -Publisher parameter).

    Read the rest of this entry »

  • 0 Comments
  • Filed under: UWP
  • 379 views

    Just a very quick note here (mostly a note to self) but I had a couple of folder from previous Windows 10 installations named Windows.old Windows.old(1), Windows.old(2) etc.

    These folders should be removed when you use Disk Cleanup and select the “Remove previous Windows Installation(s)” option.

    DiskCleanup

    However I already did that and for some reasons a subfolder named C:\Windows.old\Users\<username>\AppData\Local\Packages\Microsoft.Windows.Cortana_cw
    5n1h2txyewy\LocalState
    couldn’t be deleted and therefore the parent folder couldn’t be deleted.

    I couldn’t delete them with Windows Explorer nor via the cmd prompt or PowerShell. Then I tried to use the \\? prefix and that worked:

    image

    116 views

    I have been working with Microsoft’s Desktop App Converter a lot recently. Even though there’s an option to autosign the resulting package with the -Sign switch I prefer to sign APPX packages myself using signtool.

    The reason is that I can send UWP packages to testers for sideloading without requiring them to import the auto generated certificate (which is different on each (re)build).

    However I always forget the exact path to signtool.exe (this comes with the Windows SDK).

    The Windows 10 SDK is installed by default in C:\Program Files (x86)\Windows Kits\10.

    Signtool.exe will be in the folder<sdkpath>\bin\<version>\<platform>\signtool.exe.

    As there are multiple version of Windows 10 there are multiple version of the SDK and you can install those concurrently.

    But then I found the PowerShell cmdlet Resolve-Path which “Resolves the wildcard characters in a path, and displays the path contents”.

    This does exactly what I need:

    image

    Wow, Resolve-Path is a perfect example of the many hidden gems in PowerShell!

    So I decided to wrap signtool.exe in a PowerShell cmdlet as PowerShell also makes it easy to locate the correct code signing certificate from the certificate store. Read the rest of this entry »

    135 views

    Just a very quick note: I was just installing RAD Studio 10.2.2 when I noticed the installer has an Options button:

    image

    So I clicked it to see what options are available and noticed that the "Embarcadero Customer Experience Program" is opted-in by default:

    Read the rest of this entry »

    211 views

    This morning I wanted to install the NetScaler patch for the TLS padding vulnerability and of course I made a backup before deploying it.

    Note: If you haven’t installed this patch yet I would recommended to do so: see CTX230238 and check out the ROBOT attack -Return Of Bleichenbacher’s Oracle Threat page to check which other products you may have that are vulnerable.

    Upon checking the backups (I always download the backup and verify that the archive is intact) I noticed that one of my NetScaler’s uses SHA1 for the password hash whilst the other one uses SHA512:

    image

    I thought that this was a little strange as both NetScaler’s are running the exact same build. However one of them (the one that uses SHA512) was reinstalled recently whilst the one using SHA1 has been upgraded.

    Read the rest of this entry »

    2,709 views

    imageAs you may heard, the API’s returning the Operating System version have changed, started with Windows 8.1 and Server 2012 R2.

    The reason for this change is Application Compatibility but let’s take a little closer look into this why.

    As an application developer there may be a need to check the version of the OS you’re running on. A typical example is when you are using an API that only works on a specific Windows version (and up). Or the other round, you’re not supporting an older version of Windows (say Windows XP as an example).

    A common error in such version checks is to check for a specific Windows version but forget to take new (not yet released) versions into account.

    Read the rest of this entry »

  • 1 Comment
  • Filed under: PowerShell
  • Donate


    Blogroll


    Categories


    Archives