Jump to content

Winapp2.ini additions


Winapp2.ini

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 comment
Share on other sites

  • Moderators

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

 

ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION

DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.

Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)

ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.

Support at https://support.ccleaner.com/s/?language=en_US

Pro users file a PRIORITY SUPPORT via email support@ccleaner.com

Link to comment
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 comment
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 comment
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 comment
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 comment
Share on other sites

  • Moderators

eep, merge may need its own thread ;)

 

ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION

DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.

Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)

ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.

Support at https://support.ccleaner.com/s/?language=en_US

Pro users file a PRIORITY SUPPORT via email support@ccleaner.com

Link to comment
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 comment
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. :(

Windows 10 x64 Pro on ASUS Maximus VIII Extreme motherboard, i7-6700k CPU,H220 X2 Liquid Cooler, 64 gbyte RipJaws DDR4 3200 RAM, Samsung 970 Pro NVMe M.2 500 gbyte SSD + Samsung 850 Pro 512 gbyte SSD, EVGA RTX 3060 Titan graphics card (Home Built System);  Windows 11x64 Pro on 512 gigabyte Dell XPS 15 2-in-1 Laptop/tablet and Dell XPS 8940 PC.  ASUS RT-AC88U router, 14 tbyte WD My Cloud PR2100 NAS Server, 200 Mbps cable Internet, MS Edge Chromium, MS Office 2021 (Local), Casper 11, DisplayFusion (3 Flat Panel Displays per system):   Latest Bitdefender Internet Security, Quicken, Weather Watcher Live, ThumbsPlus 10, Sticky Password 8, WD Smartware, CyberLink PowerDVD23, MSI AfterBurner, Rainmeter, 8GadgetPack, and many more.

Link to comment
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...

Important Information

By using this site, you agree to our Terms of Use.