How do I properly use the [FileWriteN] function?
I can't seem to figure it out, not even after reading the manual's page on it.
PLEASE HELP ME!
New: Run-Command (Dec 2, 2024), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads Nov/Dec!, Please donate today
What are you trying to accomplish?
[FileWrite1]
File=%PAL:DataDir%\settings\gm7pref.reg
Type=ConfigWrite
Entry="Directory"
Value="Directory"="%PAL:AppDir:DoubleBackslash%\\Game_Maker8\\"
And I need the quotation marks to be part of what is searched-for/written
I've had good luck writting to registry files like they are INI files (the format is the same), but you will need to add the Key to the FileWriteN you provided.
Do you really want the value to be:
"Directory"="%PAL:AppDir:DoubleBackslash%\\Game_Maker8\\"
Or are you trying to give "Directory" a value of "%PAL:AppDir:DoubleBackslash%\\Game_Maker8\\"
I'm guessing that you want the latter:
[FileWrite1]
File=%PAL:DataDir%\settings\gm7pref.reg
Type=INI
Key=[the key "Directory" is under]
Entry="Directory"
Value="%PAL:AppDir:DoubleBackslash%\\Game_Maker8\\"
If I'm misunderstanding, let me know, and I will try to help you get where you want to go.
I think you'll need to double them, e.g.:
As an alternative it's also possible to use [RegistryValueWrite], then (I thought to remember) you do not need the quotes at all !
Formerly Gringoloco
Windows XP Pro sp3 x32