You are here

Environment variable in [FilesMove] section doesn't work

3 posts / 0 new
Last post
paulhybryant
Offline
Last seen: 12 years 2 months ago
Joined: 2012-02-11 16:09
Environment variable in [FilesMove] section doesn't work

Trying to create different profile for my explorer++ application.
The config.xml can be successfully moved.
But when the application terminates, a folder %COMPUTERNAME% is created under Profile.

[Launch]
ProgramExecutable=Explorer++\Explorer++.exe
DirectoryMoveOK=yes
SingleAppInstance=true

[FilesMove]
Profile\%COMPUTERNAME%\config.xml=%PAL:AppDir%\Explorer++

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\Profile\%COMPUTERNAME%\config.xml
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
Replace=%PAL:Drive%%PAL:PackagePartialDir%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\Profile\%COMPUTERNAME%\config.xml
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

Any suggestions will be appreciated.
Thank you!

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Doesn't replace environment variables

As you may observe in the manual (by the absence of a mention of environment variable substitution), the key in [FilesMove] does not at present support environment variable substitution. It seems reasonable to put it in, though.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

paulhybryant
Offline
Last seen: 12 years 2 months ago
Joined: 2012-02-11 16:09
Doesn't replace environment variables

Thanks for the reply Chris, as you suggested, it will be great to have it.

Thanks,

Log in or register to post comments