Jump to content
CCleaner Community Forums
Winapp2.ini

Winapp2.ini additions

Recommended Posts

Edited RegKey1 from my previous submission:

[ConvertXToDVD 5*]
LangSecRef=3023
Detect=HKCU\Software\VSO\ConvertXtoDVD\5.0
Default=False
FileKey1=%ProgramFiles%\VSO\ConvertX\5|*.txt;*.log;*.rtf
FileKey2=%Documents%\PcSetup|*.log|REMOVESELF
FileKey3=%CommonAppData%\VSO|*.cache
FileKey4=%CommonAppData%\VSO\ConvertXToDVD\5\log|*.log;*.crashlist|REMOVESELF
RegKey1=HKCU\Software\VSO\ConvertXtoDVD\5.0\Gen_MRU_Pathes

 

Modified entry:

Added RegKey1

[ConvertXToDVD 5*]
LangSecRef=3023
Detect=HKCU\Software\VSO\ConvertXtoDVD\5.0
Default=False
FileKey1=%ProgramFiles%\VSO\ConvertX\5|*.txt;*.log;*.rtf
FileKey2=%Documents%\PcSetup|*.log|REMOVESELF
FileKey3=%CommonAppData%\VSO|*.cache
FileKey4=%CommonAppData%\VSO\ConvertXToDVD\5\log|*.log;*.crashlist|REMOVESELF
RegKey1=HKCU\Software\VSO\ConvertXtoDVD\5.0\Gen_MRU_Pathes\Item0

Share this post


Link to post
Share on other sites
Guest Keatah

I, too, wouldn't mind having a "winapp3.ini" with just my options. But till then it's cut and paste.

Share this post


Link to post
Share on other sites

How so? Is there a new feature in the works?

 

When the winapp2.com server comes back up in half an hour, you'll see! ;)

 

Taking too long. Going to bed now, you'll see in the morning.

Edited by Winapp2.ini

Share this post


Link to post
Share on other sites

Updated! Try out the new merge.bat

 

Put it in the same folder as winapp2.ini and fill custom.ini with your personal entries. Double click merge.bat and it'll append them to the end of winapp2.ini. No more copy/pasting! :)

Share this post


Link to post
Share on other sites

Updated! Try out the new .......

It may be worth noting that if you forget whether or not you have run that script,

you can run it again - and each time WinaApp2.ini will get a bit bigger :)

Share this post


Link to post
Share on other sites

Ala do you it will double enter entries if run multiple time?

Share this post


Link to post
Share on other sites

Yes, it just appends the contents the end of winapp2.ini. It doesn't care if they're already there :)

 

There may be a way to prevent that, and have it only add new content, but my batch skills are not that advanced. I will look into it.

Share this post


Link to post
Share on other sites
Guest Keatah

It may be worth noting that if you forget whether or not you have run that script,

you can run it again - and each time WinaApp2.ini will get a bit bigger :)

 

+1

 

Now, I see two immediate solutions right off hand. I'd do this but I'm on the road again with my mobile

To eliminate having to remember if you ran the script in the past or not. Use a delineation marker of a sort,

 

; ---Begin user-defined entries---

blahh blahhhh blah blahh..

blah blaaahh blah blah blah blaaa..

blah blah bllaaaah blllaaaah blah!

 

Cleaner ignores things after ";" But a batch file can run down through the entire winapp2.ini and when it encounters the line,

 

; ---Begin user-defined entries---

 

It erases everything after. Then it copies custom.ini like it does now. So you basically have to search the file, delete, and begin a copy operation after the marker text.

 

 

Another way would be to copy line by line of the winapp2.ini to winapp2.temp - line by line and check for the marker. When you encounter the "; ---Begin user-defined entries---" marker text, stop. This produces a clean file, ready to have custom.ini appended.

Share this post


Link to post
Share on other sites

Here you go

 

I have chosen ;;+; as something the original WinApp2.ini will never have

And I append that to WinApp2.ini and also append Custom.ini to WinApp2.ini

but only if WinApp2.ini does not already have any ;;+;

 

FIND ";;+;" Winapp2.ini > NUL || (
ECHO ;;+; Custom.Ini below :- >> Winapp2.ini
MORE Custom.ini >> Winapp2.ini
)

 

NB

|| is a bit of magic that blocks the subsequent code if FIND is successful

and && is the opposite magic should you need it.

 

The above I tested because I am a bit rusty

Share this post


Link to post
Share on other sites
Guest Keatah

Now what if I make a 2nd change to custom.ini? Since winapp2.ini already contains the ";;+;" marker from a previous run I did 5 minutes ago, it will not update my changes.

 

Am I right in saying this is a one-shot deal? And that any further changes I make to custom.ini will not be appended unless I manually enter winapp2.ini and delete ";;+;" and everything thereafter.

Share this post


Link to post
Share on other sites

What if instead of not modifying it, every time merge was run, it removed everything after ;;+; then re-added everything

Share this post


Link to post
Share on other sites

Yes, it is a one shot deal.

 

It would take a lot more time and effort to thoroughly test and debug code that read and copied every line until it reached the ;;+; marker.

I suggest that you keep a copy of the original downloaded WinApp2.ini if you wish to frequently redo Custom.ini.

Share this post


Link to post
Share on other sites

eep, merge may need its own thread ;)

Share this post


Link to post
Share on other sites

New Entry (or it could be added into Internet Explorer More*)

[internet Explorer 10*]
LangSecRef=3022
Detect=HKCU\Software\Microsoft\Internet Explorer
Default=False
FileKey1=%LocalAppData%\Microsoft\Windows\WebCache|*.*|RECURSE

 

Tested with IE10 on win7 & win8. The folder is a little stubborn on Win8 due to metro apps being in use

Share this post


Link to post
Share on other sites

Edited:

 

[internet Explorer 10*]
LangSecRef=3022
Detect=HKCU\Software\Microsoft\Internet Explorer
Default=False
FileKey1=%LocalAppData%\Microsoft\Windows\WebCache|*.*|RECURSE
FileKey2=%LocalAppData%\Microsoft\Windows\Webcache.old|*.*|RECURSE

Share this post


Link to post
Share on other sites

I've been trying to figure out a to DETECT only Internet Explorer 10. The current Detect will cause this cleaning code to show up on all systems with any version of Internet Explorer. Thus far, I haven't found any detect point that is unique to IE 10. :(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...