PDA

View Full Version : Add to txt/INI file?


reed
04-05-2007, 09:23 PM
I hava txt/INI file and want to add something like this:

[Area.xxx] <- xxx= the user specific numbers
Title=Name
Local=%AppFolder%\\MyFolder
Option1=
Option2=TRUE
Option3=FALSE
Order=50 <- 50= user specific numbers

so how can I simply add this into my file?
and let the [Area.xxx] be the latest.. let say if I have in my own file:

[Area.010]
blabla..
[Area.011]
blabla..
[Area.012]
blabla..
blabla..

I want the script to my it self pick [Area.013] to that I want to add.

/reed

reed
04-07-2007, 11:41 AM
Forget it I got to sovle it out by my self.. and no fence in learning point its the best thing :)

If someone from the development team reading this.. any plans for better comp. ? I mean Click Teams Install Creator Pro works very fast to compile the installer and the file size is much smaller than from SUF.. no files inside and just some code and compile in SUF the installer goes to 600kb something.. little high if you ask me. but same files the installer in SUF goes to 100mb and in ICP (same files and installation settings and no special with serial or something for both) ICP goes easly down to 60-70mb!! thats impressive.

/reed

Lorne
04-10-2007, 01:14 PM
The size of the SF7 runtime is a side effect of the flexible screen engine, the Lua interpreter, and the code for all the high-level script actions. Setup Factory produces very small setups considering its capabilities.

SF7 uses a proprietary compression scheme which is very reliable, but as you've noted there is still room for improvement. We've already started switching to LZMA in future versions of our tools to achieve better compression.

There are some installation tools out there that produce smaller runtimes, and if size is the primary concern then you might be better off using those tools. People choose SF7 for its flexibility, and because it's much easier to learn and use than other tools.

As with most things in life, it's all about finding an appropriate balance. :)

reed
04-11-2007, 04:56 AM
Okey, thanks for answer..
I know that SUF is pretty complex so file-size is pretty small to what can be done with it so that :yes for you!

Continue to work up with SUF!!

/reed

reed
04-13-2007, 10:54 AM
I get the last script to work by my self.. but I can't get it to delete that it just added for the uninstaller.

my installer adds:


sAddEntry = "\r\n\[Area."..LargestNumber.."\]"
.."\r\n\Title=My Project 2007©"
.."\r\n\Local="..SessionVar.Expand("%AppFolder%\\MyFolder")..""
.."\r\n\Remote="
.."\r\n\Active=TRUE"
.."\r\n\Required=FALSE"
.."\r\n\Layer="..LargestNumber.."";

TextFile.WriteFromString("%AppFolder%\\test.cfg", sAddEntry, true);



I what I tried to get it uninstalled was:



sDeleteEntry = "\r\n\[Area."..LargestNumber.."\]"
.."\r\n\Title=My Project 2007©"
.."\r\n\Local="..SessionVar.Expand("%AppFolder%\\MyFolder")..""
.."\r\n\Remote="
.."\r\n\Active=TRUE"
.."\r\n\Required=FALSE"
.."\r\n\Layer="..LargestNumber.."";

INIFile.DeleteSection("%AppFolder%\\test.cfg", sDeleteEntry);



but nothing happens?

/reed