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 -
The Dev team is looking into it, will report back!
-
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’ folderLet us know how it worked out!
-
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 !
-
thats some creative thinking there :-)