Setup choses incorrect user profile path

Issue #127 resolved
Jens Mertelmeyer created an issue

I have downloaded the “Setup for XE-10.2” from
http://files.dsharp.org/TestInsight/1.1.5.0/TestInsightSetup.zip

The dialog “Select Destination location” choses

C:\Users\MyLastName\AppData\Local\Programs\TestInsight

The path “C:\Users\MyLastName\” does indeed exist locally, but my current user has no access to that path, it’s not me. The correct path would have been

C:\Users\MyLastName.MyLocalDomain.000\

I am not sure where the setup pulls this path from as I have not been able to find this anywhere in the environment variables. They all correctly point to “Users\MyLastName.MyLocalDomain.000”

Comments (6)

  1. Stefan Glienke repo owner

    The setup is done with InnoSetup and uses the {userpf} variable for that directory.

    What directory does %localappdata% point to on your system?

  2. Jens Mertelmeyer reporter

    Powershell (elevated)

    PS C:\WINDOWS\system32> $env:LOCALAPPDATA
    C:\Users\MyLastName.MyLocalDomain.000\AppData\Local
    

    Cmd (elevated)

    C:\WINDOWS\system32>echo %localappdata%
    C:\Users\MyLastName.MyLocalDomain.000\AppData\Local
    

  3. Stefan Glienke repo owner

    What do these point without being elevated?

    Please try making an innosetup project yourself using {userpf} and let me know what that points to then so we can figure out of that is an innosetup issue.

    Also try running TI setup as admin.

  4. Jens Mertelmeyer reporter

    What do these point without being elevated?

    It’s exactly the same.

    When I now double-click the setup, the correct path to my local app data folder is entered. I suspected caching, found this path to be stored in HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall{BB64FED5-C9C9-42BB-B06B-E159667449C8}_is1 but renaming this key still does not change the behaviour.

    Setup now determines the correct path and I have no idea why this is the case.
    Sorry for bringing this up. I have no idea what was wrong before.

  5. Log in to comment