Remove all related mail files within Windows 7 - windows

I have windows 8 machine and I will give my pc to company owns it. The thing is I dont want anybody able to see my "old" e-mails. I removed from these e-mails in Outlook but:
when I click windows icon left bottom and type somethings related with a deleted mail, it appears in there..(when I try to open it it propt a msg that it is deleted and ask me to remove shortcut too.)
So I want to delete all these fiels completely and not able to see anything about them it musnt be able to search by somehow..
I dont want anything exist about that files in pc
Edited:
I click and view properties of that file appears on windows start bar it located in
"C:/Users/10023213"
so I would think to delete this directory but there is also "AppData" file in it which used by other stuff.. I couldnt figure it out how to remove things about only e mails once for all

Close Outlook.
Go into Control Panel, and in the search box at the top choose Mail (or Mail (32-bit)).
Click the Data Files... button, highlight your name in the list, and then click the Open File Location button, which will open Windows Explorer. Leave Explorer open, but close the Data Files dialog.
Click the Show Profiles... button, where you should see Outlook or your profile name. Select it and click Remove.
Close the Mail control panel dialog. Go back to the Explorer window you left open before, and delete the youremail#yourmailhost.ost file, which is all of your email content (inbox, sent, etc.). You may want to delete all of the other files and folders in this folder, as they're all of your Outlook related info (address book, etc.).

Related

disable items showing up in windows 10 timeline

I have a win32 text editor app. Every file that opens in it is automatically added to the Windows 10 timeline. The problem is that these entries in the timeline are useless because they don't actually work (i.e., you can't click on them to re-open the file in my editor), and instead of the editor app name the timeline shows the AppUserModelID instead.
Is there an API that I can call to prevent Windows from adding the files opened in my editor to the timeline? Or maybe an entry in the apps manifest?
Note that I'm setting the AppUserModelID to control the Jumplist feature, which I'd like to keep. I just don't want the files to show up in the timeline.
Also it seems that only files added to the recent docs with SHAddToRecentDocs show up.
Or maybe there's a way to get the entries in the timeline to work properly (i.e., when clicked open them in my editor, and have the app name show up properly).
update:

Adding app shell item to Windows Device notification dialog

I don't really know what they're called, but I'm referring to the window that pops up when you connect, lets say, a thumb drive.
These notification dialogs have a list of application that you can choose to open in order to do some actions regarding that device. (what are those notification dialogs called? I couldn't find anything about it)
The question:
How do I add such an item to those notification dialogs?
My guess is that a regkey is added.
You can change the "Open With" dialog from the registry. It is located here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
Then you open the folder with your extention and then the "OpenWith" folder. Then add or remove your program.
The whole process are described in details here:
Add or Remove Programs in the Open With Menu From the Registry

Access 2013: Disabled Mode

I am having a great deal of difficulty identifying the source a problem I am having with "disabled mode" in MS Access 2013. I have read all of the support literature for 2007, 2010, and 2013 pertaining, and none of it is productive in solving the issue.
When I go to perform any sort of modification query in one of my database files I get the "The action or event has been blocked by Disabled Mode" message at the bottom bar. There is no message bar that comes up and asks me if I want to enable the content, despite this option being checked in the trust center. I have also tried going into the File>info backstage view, however, there is no "enable" button here either as reported in the 2013 help document.
Possibly the most telling characteristic of this problem is that it is not manifested in the original database of which the current database is an exact copy. I'm not sure what to make of this though.
Enable database content for a session
To enable database content for a session, you use the Message Bar.
The Message Bar
The Message Bar appears just under the Ribbon, and is part of the Microsoft Office Fluent User Interface. If the Message Bar is not visible, you must first show the message bar. In some cases, you will also have to enable the Message Bar. Once the Message Bar is visible and enabled, you can use it to enable database content for a session.
Step 1: Show the Message Bar
If the Message Bar is already visible, you can skip this step.
On the Database Tools tab, in the Show/Hide group, select the Message Bar check box.
If the Message Bar check box is disabled, you will have to enable it.
Step 2: Enable the Message Bar
If the Message Bar check box is enabled, you can skip this step.
1.Click the Microsoft Office Button Office button image, and then click Access Options.
2.In the left pane of the Access Options dialog box, click Trust Center.
3.In the right pane, under Microsoft Office Access Trust Center, click Trust Center Settings.
4.In the left pane of the Trust Center dialog box, click Message Bar.
5.In the right pane, click Show the Message Bar in all applications when content has been blocked, and then click OK.
6.Close and reopen the database to apply the changed setting.
Step 3: Enable database content for a session
1.In the Message Bar, click Options.
2.In the Microsoft Office Security Options dialog box, click Enable this content, and then click OK.
Top of Page
Enable a database by default
To specify that a given database is trustworthy and should be enabled by default, make sure that the database file is located in a trusted location. A trusted location is a folder or file path on your computer or a location on your intranet from which it is considered safe to run code. Default trusted locations include the Templates, AddIns, and Startup folders. You can also specify your own trusted locations.
Tip If you want to know the path of the current database, click the Microsoft Office Button, click Manage, and then click Database Properties. The full path of the current database's location is listed on the General tab of the Database Properties dialog box.
Move a database file to a trusted location
Open the folder where the database file is currently located, and then copy the database file into the trusted location that you want.
Specify a trusted location
1.In the Message Bar, click Options.
2.At the bottom of the Microsoft Office Security Options dialog box, click Open the Trust Center.
3.In the left pane of the Trust Center dialog box, click Trusted Locations.
4.To add a network location, in the right pane, select the Allow Trusted Locations on my network check box.
5.Click Add new location.
6.In the Microsoft Office Trusted Location dialog box, do one of the following:
In the Path box, type the full path of the location that you want to add.
Click Browse to browse to the location.
7.To specify that subfolders of the new trusted locations should also be trusted, select the Subfolders of this location are also trusted check box.
8.Optionally, in the Description box, type a description for the trusted location.

Win API to Scroll Up and down the navigation pane in outlook 2010

I know that using .net VSTO there is no way to do this. but what my addin is doing :
When a user clicks on a folder in outlook on the navigation pane, I am showing another folder instead. jus by using the ActiveExpolorer.CurrentFolder = MyNewFolder. the issue here is that outlook will scroll down to the new folder and I want to prevent this.
I can't set back the current folder to the original folder because I am using the FolderSwitch event and so it will be ea endless loop.
I am thinking if I could make it remember the navigation bar position and then set it back to that position when the user click on the folder. using win 32 api ? any ideas ?
or I could reset the current folder to the original folder once the new folder displays it content but then I need to stop outlook displaying the content of the original folder and have no idea how to do this.
Cheers
Meb0134
Ok, I found a way to resolve this issue.
Within the FolderSwitch Event, I create a NivigationFolder on the Favorites Pane for the Folder that I want to show (Instead of the folder the user clicks on) and then select the new NavigationFolder (NavigationFolder.Select = True) and then deselect (NavigationFolder.Select = False) and finally I delete the NavigationFolder from the Favorites pane.
This works perfectly even if the Favorites pane is off.
Mehdi Benkhaldi

Document icon changes after first launch on Windows

I have an application that gets installed with a Wise installer (EDIT: Wise creates a Setup.exe file, not an MSI). Upon installation, an icon is set for a certain file type:
HKEY_CLASSES_ROOT\.auz\DefaultIcon = C:\Path\To\App\some_icon.ico,0
Right after the installation, however, Explorer chooses to display this icon using the generic "white sheet + application icon" icon, which is different (and not provided by me).
Upon first launch, the application itself registers icons and other file associations, so that the last run version "owns" those documents. At that point, Explorer changes the icon for this file type and displays the correct one, but when I look at the registry, the value for DefaultIcon is exactly the same.
This is what I've tried so far
Removing all entries from the registry, and writing them myself.
After the installation, "touching" the value of DefaultIcon, and then launching a small little program that only calls SHChangeNotify(SHCNE_ASSOCCHANGED) (my program does this after updating the file associations in the registry).
After the installation, killing and restarting Explorer.
After the installation, using TweakUI to "repair" the icons on the desktop.
None of these work. The only way to get the correct icon is to let the program itself install it. I can't find any change in the registry. I'm pulling my hair off.
What I would like to avoid
Testing with another installer software
Changing the installation script too much (I don't have Wise itself, as the installer gets built on another machine on demand).
Embed the icons in the executable.
Any suggestions on how to get Explorer to display the correct icon after installation?
A couple of things come to mind:
why do you have the ',0' after the icon in the registry? That would limit the shown icon to one single icon. Better would be to have an icon file which contains several icons (same icon UI but different sizes/color depths) - Explorer has different icon views! Try removing the ',0' if your icon file only has one icon in it.
it may be that the registry is written last in the installer, after the explorer got notified of updates?
make sure the registry entry is written after the icon file is stored on disk
you should use the Wise installers own configuration to register the file type. Not sure, but I think explorer won't take any changes until the whole installation of an msi is finished, so calling SHChangeNotify() manually won't help. The msi has its own table for this, which Wise will add if you use the right configuration.
For Wise, do the following (instead of creating the registry keys on your own):
Under the Feature Details page group, select the File Associations page.
From the Current Feature drop-down list, select Core.
Click Add at the right of the window and select New.
The File Association Details dialog appears.
Click the Extension Details tab.
Browse to the QuickFacts directory, select the file QckFacts.exe, and click OK.
In Extension, enter: qft
Leave the defaults for the rest of the fields and click OK.
The extension .QFT is added to the installation. When an end user double-clicks a
file with this extension on the destination computer, the QuickFacts application
launches.
Save the installation
[Edit]
You may also missing required registry entries (the icon might not be enough for the shell to show it):
HKEY_CLASSES_ROOT\.auz\(default) = auzfile
HKEY_CLASSES_ROOT\.auz\shell\open\command = C:\Path\To\App.exe
Here's the solution.
Each file type (let's say ".auz" in this case) was registered with:
A DefaultIcon key with the path to the icon resource, and
A value for the HKEY_CLASSES_ROOT\.auz\(default) value giving a description of the file type, e.g. "Foobar Document".
In addition to this, there was an entry for the "Foobar Document" document type, or more specifically, a key for how to open such documents from the shell:
HKEY_CLASSES_ROOT\Foobar Document\Shell\command\open\(default) = C:\Path\To\App.exe "%1"
Apparently, this key supersedes the value written for the specific file extension. Because the icons are external to the .exe file, Windows Explorer then used the first icon of the application to create an icon for all files of type "Foobar Document" (that "white sheet + application icon" icon I mentioned).
Now, what I had wrong was that the application itself does change the value of
HKEY_CLASSES_ROOT\.auz\(default)
to a slightly different value when starting, say "Foobar 1.2 Document" (the problem with not being DRY). Thus, the link to "Foobar Document" was lost, and the .auz files got their icons after the first launch.
So I fixed this all by simply removing the HKEY_CLASSES_ROOT\Foobar Document key altogether, and voilĂ !

Resources