Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2006
    Posts
    58

    Add to txt/INI file?

    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

  2. #2
    Join Date
    Apr 2006
    Posts
    58
    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

  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    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.
    --[[ Indigo Rose Software Developer ]]

  4. #4
    Join Date
    Apr 2006
    Posts
    58
    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 for you!

    Continue to work up with SUF!!

    /reed

  5. #5
    Join Date
    Apr 2006
    Posts
    58

    Delete Sections/Values inside the INI/CFG file?

    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:

    Code:
    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%\\M yFolder")..""
    .."\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

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts