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: r3dfox (July 15, 2025), Platform 30.0.4 (July 15, 2025)
1,100+ portable packages, 1.2 billion downloads
We are operating at a loss, 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