Jump to content
Piriform Community Forums
Winapp2.ini

Winapp2.ini additions

Recommended Posts

Welcome! :)
***
Please Read
***


A large ini such as this one can cause a slower startup for ccleaner (far more noticeable on older/slower machines) and users may wish to manually remove entries they do not need from the file if they feel this lag time is too great.

Please bear in mind that these entries are NOT endorsed or supported in any way by the developers of CCleaner, and should be considered "beta."

That being said, they can (though we do our best to prevent this) cause issues with various programs or your system as a whole.

Piriform is not responsible for any damages done to your computer, and I also ask that if you encounter an error/problem with an entry here, you post it in this thread to keep winapp2.ini related issues centralized.


***
Thank you
***


Link to download Winapp2.ini

GitHub

 

Direct Download


Enjoy! smile.gif

ADVANCED USAGE AND TRIMMING


To create a custom winapp2.ini file that only holds entries relevant to your computer, Alan_B has kindly created a batch file that will do this for you.

It requires that you save your ccleaner settings to an ini file (this option is found in settings - advanced)

Simply download this file and place it in your CCleaner directory, then double click it and let it do its job. It will backup the old winapp2.ini and create a new one. This file will load much more quickly than the full file, and yield the same results!

Click here for Alan's original help file for Trim.bat

Click here for LaunchCC.bat




How to make your own Winapp2.ini entry! (And if you do, feel free to post it here smile.gif )



Preferred Format:

[Name*]
LangSecRef/Section=
Detect/DetectFile=
Default=False
FileKey/RegKey


*Warning=
*See bottom for information on Warning (it is optional)

[Name*]

This is the name of your entry, usually followed by a * for formatting purposes. This is what will appear in the Applications list within CCleaner.

LangSecRef=

This indicates where on the list of applications within CCleaner your entry will appear. Appropriate LangSecRef numbers are below.
 

LangSecRef
3021 = Applications
3022 = Internet
3023 = Multimedia
3024 = Utilities
3025 = Windows
3026 = Firefox/Mozilla
3027 = Opera
3028 = Safari



Section is the same idea, however it is user-defined. We currently use Section=Games for example in the main download, however it can be set to anything and a new category with that name will appear in the applications tab.

Detect/DetectFile

These values are what CCleaner looks for to check if it should return true on an entry. Eg. DetectFile=%WinDir%\ will return true because this points to your windows directory.
Environment Variables (below) are vastly preferred over direct paths (such as C:\*)

Detect= points to a registry key
DetectFile= points to a file or folder.
Detect Paths:
 

HKLM = HKEY_LOCAL_MACHINE
HKU = HKEY_USERS
HKCU = HKEY_CURRENT_USER



DetectFile paths
 

( C:\ substituted for system drive)

%AppData%
Windows XP: C:\Documents and Settings\{username}\Application Data
Windows Vista/7: C:\Users\{username}\AppData\Roaming

%CommonAppData%
Windows XP: C:\Documents and Settings\All Users\Application Data
Windows Vista/7: C:\ProgramData

%CommonProgramFiles%
C:\Program Files\Common Files
C:\Program Files(x86)\Common Files
This will work for both 32 and 64 bit directories as CCleaner will detect it on its own.

%HomeDrive%
C:\

%LocalAppData%
Windows XP: C:\Documents and Settings\{username}\Local Settings\Application Data
Windows Vista/7: C:\Users\{username}\AppData\Local\

%ProgramFiles%
C:\Program Files\
C:\Program Files(x86)
This will work for both 32bit and 64bit because CCleaner detects these paths on its own.

%SystemDrive%
C:\

%UserProfile%
Windows XP: %SystemDrive%\Documents and Settings\{username}
Windows Vista/7: %SystemDrive%\Users\{username}

%WinDir%
C:\Windows

%Pictures%
Windows XP: %UserProfile%\My Documents\My Pictures
Windows Vista/7: %UserProfile%\My Pictures

%Documents%
Windows XP: %UserProfile%\My Documents
Windows Vista/7: %UserProfile%\Documents

%Video%
Windows XP: %UserProfile%\My Documents\My Videos
Windows Vista/7: %UserProfile%\My Videos

%Music%
Windows XP: %UserProfile%\My Documents\My Music
Windows Vista/7: %UserProfile%\My Music



Default=False

It is preferred that Default be set to false because Default is the default setting of the tickbox (False=Unticked)
This is to ensure no one has any boxes ticked that they didn't want ticked.

FileKey1/RegKey1=

The FileKeys and RegKeys are paths of items you'd like to delete. When pointing to these, you must list the path (using the environment variables above) then use the pipe symbol | and have the filenames/registry keys after
 

FileKey1=%AppData%\CCleaner|*.* - This deletes all files in a folder
FileKey2=%LocalAppData%\CCleaner|*.log - This deletes all log files in a folder
FileKey3=%AppData%\CCleaner|CCleaner.Log|RECURSE - This deletes all files with this name and extension in all subfolders as well
FileKey4=%LocalAppData%\CCleaner\temp|*.*|REMOVESELF - This deletes all files in a folder and deletes the folder as well.
FileKey5=%AppData%\CCleaner|*.log;*.tmp;*.txt|RECURSE - This will delete all files with these extensions from the parent folder and all subfolders.


 

| - the pipe symbol is used to separate file mask options.
*.* - deletes every file in that folder.
RECURSE - deletes subfolders and their contents
REMOVESELF - is the same as RECURSE but it deletes the folder as well.
* Deletes all files with the same extension (*.example) or all files with the same name (example.*)
; separates different files / filetypes in a filekey.

 

Warning=

If there is something the end user should know about an entry, such as it resetting play counts in a media player, high scores on a game, add a warning= followed by the message.
Eg: Warning=This will delete all of your high scores.
This is considered a courtesy to the end user in helping making them aware of what they're deleting.


Remember, when posting, please test your entries before you post them, so you can be sure they don't harm the workings of the programs. Also try to post which operation system(s) you tested it with! smile.gif

 

 


 

Edited by Winapp2.ini

Share this post


Link to post
Share on other sites

woo hoo hurrah for new winapp2.ini from winapp2. . . uh .ini LOL

 

downloading saving and merging with my already made personal entries :)

 

 

 

one thing of note though winapp2

 

I think

 

[**Quicktime Player more for vista and 7 users]

ID=2035

LangSecRef=3023

Detectfile=%locallowappdata%\Apple Computer\quicktime

Default=True

FileKey1=%localappdata%\Apple Computer\QuickTime|QTPlayerSession.xml

is better because it then will not show for any computer that has quicktime but is not 7 or vista (with the detect=hkey as you had it has it show on xp and lower as well :) ) and it also catches both instance of QTplayersession.XML plus the one that you have listed in there is now already intigrated into winapp.ini

 

From Winapp1

 

[Quicktime Player]

ID=2035

LangSecRef=3023

Detect=HKLM\Software\Apple Computer, Inc.\QuickTime

Default=True

RegKey1=HKLM\Software\Apple Computer, Inc.\QuickTime\Recent Movies

FileKey1=%userprofile%|QTPlayerSession.xml

FileKey2=%appdata%\Apple Computer\QuickTime|QTPlayerSession.xml

[Quicktime Player Cache]

ID=2036

LangSecRef=3023

Detect=HKLM\Software\Apple Computer, Inc.\QuickTime

Default=True

FileKey1=%localappdata%\Apple Computer\QuickTime\downloads|*.*|RECURSE

FileKey2=%locallowappdata%\Apple Computer\quicktime\downloads|*.*|RECURSE

 

 

Also (and this is just an opinion) I moved the *(as in [* ) to the end (as in *] ) this keeps the programs in alphabetical (i.e. all the quicktimes are now grouped.)

 

Again I realllllllllllllllllllllllllllllly appreciate all the work you do on winapp2 and without it I would be nowhere when helping out in this forum. . . in short you are my CCLeaner hero.

Share this post


Link to post
Share on other sites

Thank you Nergal, I'm glad I'm your hero :D

 

The quicktime entries weren't written by myself, but I see your point in that having a registry detect when it was designed for win vista/7 is sort of moot. Could I take it to mean that the quicktime entries are now obsolete and can be removed?

Share this post


Link to post
Share on other sites

Thank you Nergal, I'm glad I'm your hero :D

 

The quicktime entries weren't written by myself, but I see your point in that having a registry detect when it was designed for win vista/7 is sort of moot. Could I take it to mean that the quicktime entries are now obsolete and can be removed?

 

Registry suggestion was so that XP and below didn't see the entry (as it shows up due to the same entry being detected on all systems)

 

The Entry (as I typed it) is still valid as Piriform included the download cache for vista/7 but did not put in the quicktime entry highlighted in red in my entry (%localappdata%\Apple Computer\QuickTime|QTPlayerSession.xml)

 

See http://forum.piriform.com/index.php?showtopic=27173&view=findpost&p=171890 :)

 

Again I think what you have done, with this 32, 64, xp, vista, 7 winapp2 is awesome for people such as myself who use the same ccleaner on multiple machines as a tech support tool

Share this post


Link to post
Share on other sites

[icon Cache]

LangSecRef=3002

Default=true

FileKey1=%userprofile%\Local Settings\Application Data|IconCache.db

FileKey2=%LocalAppData%|IconCache.db

 

 

Can you, please, add the above entry to the winapp2.ini file?

Share this post


Link to post
Share on other sites

I updated the file to be inclusive of Nergal's quicktime suggestion, I also added the icon cache posted above, fixed some alphabetization and changed the entries marked with tilde (~) to have asterisks (*)

 

http://omploader.org/vNWNsOQ/winapp2.ini

 

^ theres the new version, I'll be updating the first post with it too.

Share this post


Link to post
Share on other sites

I only know one person who watched it and didn't like it Dennis. I think anyone who doesn't want to give it a chance just doesn't want to read the subtitles.

Share this post


Link to post
Share on other sites

Winapp2.ini

 

I figured out how to use Detectos in entries

 

My Updated Quicktime Entry is

 

[Quicktime Player more for vista and 7 users*]

ID=2035

LangSecRef=3023

DetectOS=6.0

Default=True

FileKey1=%localappdata%\Apple Computer\QuickTime|QTPlayerSession.xml

 

My Java for Vista and 7 entry is

[sun Java for Vista & 7**]

ID=2094

LangSecRef=3022

DetectOS=6.0

Default=True

FileKey1=%locallowappdata%\Sun\Java\Deployment\cache\|*.*|RECURSE

FileKey2=%locallowappdata%\Sun\Java\Deployment\javaws\cache|*.*|RECURSE

 

Also it seems the Realplayer SP entry is now intigrated into the builtin ini

@moderators/Admins any objection to this topic being a sticky?

Share this post


Link to post
Share on other sites

Edit: Removed my question as I answered it myself.

 

 

New version inclusive of those two things from Nergal, also a few tweaks here and there and Mozilla FireFox Crash Reports

 

http://omploader.org...lbA/winapp2.ini

 

edit:

 

I created this

 

[*Microsoft Windows Game Statistics]
LangSecRef=3025
DetectOS=6.0
DetectFile=%localappdata%\Microsoft Games\
Default=False
FileKey1=%localappdata%\Microsoft Games\Chess Titans\|chesstitans.xml
FileKey2=%localappdata%\Microsoft Games\Freecell\|freecell.xml
FileKey3=%localappdata%\Microsoft Games\Hearts\|hearts.xml
FileKey4=%localappdata%\Microsoft Games\Mahjong Titans\|mahjong titans.xml
FileKey8=%localappdata%\Microsoft Games\Minesweeper\|minesweeper.xml
FileKey5=%localappdata%\Microsoft Games\Purble Place\|purble place.xml
FileKey6=%localappdata%\Microsoft Games\Solitaire\|solitaire.xml
FileKey7=%localappdata%\Microsoft Games\Spider Solitaire\|spider solitaire.xml

 

I don't know whether or not people would be interested in this, its an option in the windows disk cleanup that is not in ccleaner. I set it to be unticked by default and it is not in the current version I have posted on this page. Feedback?

Share this post


Link to post
Share on other sites

[iMVU Cache]

LangSecRef=3022

DectectFile=%appdata%\IMVUClient\IMVUClient.exe

Default=False

FileKey1=%appdata%\IMVU\cache\|*.*|REMOVESELF|

FileKey2=%appdata%\IMVU\AssetCache\|*.*|REMOVESELF|

FileKey3=%appdata%\IMVU\PixmapCache\|*.*|REMOVESELF|

 

 

Can you, please, add the Above Entry to the winapp2.ini file?

 

Thank you in advance!

Share this post


Link to post
Share on other sites

[iMVU Cache]

[sNIP]

Can you, please, add the Above Entry to the winapp2.ini file?

 

Thank you in advance!

Looks Like Winapp2.ini added it :)

 

Line 1173

[iMVU Cache*]

LangSecRef=3022

DetectFile=%appdata%\IMVUClient\IMVUClient.exe

Default=False

FileKey1=%appdata%\IMVU\cache\|*.*|REMOVESELF|

FileKey2=%appdata%\IMVU\AssetCache\|*.*|REMOVESELF|

FileKey3=%appdata%\IMVU\PixmapCache\|*.*|REMOVESELF|

 

[iMVU Logs*]

LangSecRef=3022

DetectFile=%appdata%\IMVUClient\Imvuclient.exe

Default=Flase

FileKey1=%appdata%\IMVU|*.log.*

Share this post


Link to post
Share on other sites

Looks Like Winapp2.ini added it :)

 

Line 1173

 

 

Those were in the original release too, I wonder why they wouldn't have shown up for 212eta.

 

What do you think of the Microsoft game statistics entry? Y/N?

Share this post


Link to post
Share on other sites

Would make sense indeed. The disk cleaner is an alternative, not a side-by-side add-on to CCleaner.

 

Yeah, I agree with Tux there that ccleaner is great for making it so you never acutally need to run disk cleanup. so it would make sense to add that entry. I also like that it is false by default. question though, my Windows seven also makes a MinesweeperSettings.xml.bak so those would be left behind after the cleaning, is this by design?

Share this post


Link to post
Share on other sites

Yes, the gameSetting.xml and gameSetting.xml.bak are for the games settings ie. for Minesweeper the game board size, ect.

 

I could add them as a separate entry, but I don't see why anyone would want to clear their settings for games.

 

Anyway here is a new file, added to it are some updated folders, auslogics boostspeed logs, last.fm client cache and the microsoft windows game stats

 

updated: Removed SRWare Iron and fixed Microsoft Windows Games Stats :)

 

http://omploader.org...ydw/winapp2.ini

 

updating the first post with it too.

Share this post


Link to post
Share on other sites

LOL I read your entry wrong . . or at least made an assumption :P

I only have the settings files and the windowprefs.xml

I don't have what you have listed yet, let me play one game of something so i have a stat file and then I get back to you LOL

what weird though my minesweepersettings.xml does have stats written inside of it o_O

 

EDIT:

Yup doesn't look like windows 7 is creating those files and it doesn't even looks like the diskcleanup is even emptying the stats from the settings file. (note I only tested on Solitare and Minesweeper)

Still I say yeah add it

Share this post


Link to post
Share on other sites

Edit: seems my assumption as to the behavior of the saving system was incorrect. I will amend the file to account for this.

Share this post


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

×