System variables 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 using the path shown below.

    C:\Users%USERNAME%\AppData\Local\VirtualStore\Pro gram 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


  • conexware

    The Dev team is looking into it, will report back!


  • conexware

    Unfortunataly, the %USERNAME% variable is not supported in the SFX
    An option that could be of help to you and that should work is the
    %DESKTOP%…\AppData
    command, which will extract to the current users’ folder

    Let us know how it worked out!


  • conexware

    So, in your case it should be as;

    %DESKTOP%…\AppData\Local\VirtualStore\Pro gram Files (x86)\ZakFromAnotherPlanet\Yazak Chat\YazakPreferences\



  • Ok! That’s great, I will try that later today and report back the result.

    Bless you !


  • conexware

    thats some creative thinking there 🙂


 

4
Online

9.8k
Users

6.0k
Topics

36.6k
Posts

Copyright © 1998-2018 ConeXware, Inc.
All rights reserved. Privacy Policy