Userame variable in sfx files & Windows 7

  • Hi,
    I’m trying to create a self extractor to deliver a text file to a specific location within Windows 7. example below

    C:\Users%USERNAME%\AppData\Local\VirtualStore\Program Files (x86)\ZakFromAnotherPlanet\Yazak Chat\YazakPreferences\

    When I run the self-extractor I create, it wont deliver the file to the location. If I replace the system variable %USERNAME% in the string with the actual user-name it works perfectly.

    Does this mean the system variable %USERNAME% is not valid for use in this way?

    ==my specs==
    Windows 7 64bit
    PowerArchiver 2010 version 11.71.04

Log in to reply