View forum topic
List of forum topicsSubject: add a string on file
Hi sir, I am a scenery creator of flight simulator. I want createinstall to add a string on file called scenery.cfg located on c:\ program data\microsoft\fsx. Create install must create an old file when installing the file created by me and also,replacing the file when I uninstall it.The structure of the file scenery.cfg is this:
[Area.001]
Title=Default Terrain
Texture_ID=1
Local=Scenery\World
Layer=1
Active=TRUE
Required=TRUE
[Area.002]
Title=Default Scenery
Local=Scenery\BASE
Layer=2
Active=TRUE
Required=TRUE
I must add this string:
[Area.003]
Title=Into the tibet2014
Local=addon scenery\into the tibet2014
Layer=X (number of layer)
Active=TRUE
Required=TRUE
Is it possible ( also with registrated version) to create this?
Thanks
The latest version of CreateInstall has two commands: Insert Lines into File and Delete Lines from File.
Insert in Install Sctipt the 'Insert Lines into File' command.
Path: CUSTOM PATH
Filename: c:\ program data\microsoft\fsx
Text:
;beginarea
[Area.003]
Title=Into the tibet2014
Local=addon scenery\into the tibet2014
Layer=X (number of layer)
Active=TRUE
Required=TRUE
;endarea
And insert the 'Delete Lines from File' command into Uninstall script.
Path: CUSTOM PATH
Filename: c:\ program data\microsoft\fsx
Beginning Line: ;beginarea
Ending Line: ;endarea
Also, there are other ways to realize that.
Thanks for your answer, but in What version I find this? I have freeware version.
These commands are available in Light and Full versions.
I spoke with my two friends that are programmers; can createinstall execute other programs with .exe extension? Because the scenery.cfg is located into a protected folder and it's harder to modify it.
What is scenery.cfg file?
There is commands 'Shell Execute' and 'Run Application' which can run .exe files.
If you want to run .exe file during making setup.exe then you can run .exe before making setup and after that.
Scenery.cfg is a file where the program write the configuration of airport that you created. Do i find Shell execute and run application on light and full version or also in free version?
These commands are available in all versions (including the free version).
January 16, 2025 Installer CreateInstall 8.11.1 was released.
June 19, 2024 Installer CreateInstall 8.11.0 was released. read more
November 13, 2022 Installer CreateInstall 8.10.1 was released.
May 21, 2022 Installer CreateInstall 8.10.0 was released.
September 25, 2021 Installer CreateInstall 8.9.0 was released.
July 15, 2021 Installer CreateInstall 8.8.1 was released.