You are here

Running into a slight issue with a customization option for VSubst Portable

1 post / 0 new
GamecraftAdmin
Offline
Last seen: 2 years 4 months ago
Developer
Joined: 2011-06-03 17:42
Running into a slight issue with a customization option for VSubst Portable

I want to have an easy to find and edit way of changing what the "default" virtual PA.c drive letter is.

Current launcher.ini:
[Environment]
PAL:SubstDrive=B

[Launch]
ProgramExecutable=VSubst\VSubst.exe

[FileWrite1]
Type=INI
File=%PAL:DataDir%\VSubst.ini
Section=Drives
Key=%PAL:SubstDrive%
Value=%PAL:Drive%\

[FileWrite2]
Type=INI
File=%PAL:DataDir%\VSubst.ini
Section=General
Key=AutoStart
Value=False

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\VSubst.ini
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FilesMove]
VSubst.ini=%PAL:AppDir%\VSubst

//Portions in bold are not behaving as expected/wanted.

VSubst.ini before launch:
[General]
AutoStart=False
[Drives]

VSubst.ini while running(Actual):
[General]
AutoStart=False
[Drives]
%PAL:SubstDrive%=I:\

VSubst.ini while running(Expected/wanted):
[General]
AutoStart=False
[Drives]
B=I:\

After I set this state up and it failed I noticed that the "Key=" slot doesn't actually use Evironment Variable Substitutions, which explains why it doesn't work in it's present state.

Does anyone know how to set up a different way to get it to work how I want it to?