Jump to content
CCleaner Community Forums

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

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
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 :)

Link to post
Share on other sites
  • Moderators

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

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.

Link to post
Share on other sites

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.

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

Link to post
Share on other sites

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.

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.

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

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

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. :(

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...