I came up with a hack of a solution which works and is transparent to the user but has it's own security flaws. Therefore I will leave this open in case there is a more legitimate mechanism to solve this with Chrome or Chrome Extensions in Windows 7.
- Set Chrome to discard all cookies on exit
- Make the directory C:\ChromeHelper - Do not put this in either of your program files directories or you will always get a UAC prompt when you run Chrome.
- In Chrome, delete all the cookies except for the one(s) that you
want to keep.
- Copy the cookie file (%LocalAppData%\Google\Chrome\User
Data\Default\Cookies) to the ChromeHelper directory
- Download the GPL program Create Hidden Process (CHP) which allows you to run any command or Windows program in a hidden window. Extract the contents of the zip file to the
- Rename chp.exe to something more descriptive and known only to you.
rename chp.exe RunCustomChromeSession.exe
- Create a batch file startchrome.bat in the ChromeHelper directory.
See below for the contents of the file.
- Create / Change Shortcuts to execute your program. (Target:
startchrome.bat) (Start in: "C:\ChromeHelper")
Choose the icon from Chrome.
- Run, and then uncheck the checkbox "Always ask before opening this
file" on the Open File Security Warning dialog box.
- If necessary whitelist the RunCustomChromeSession.exe program with
your anitvirus software.
Obviously this is not the best solution as you now have a program which can run arbitrary software completely hidden from view installed on your machine. Nevertheless in low-security situations this is a working solution.
copy /y "C:\ChromeHelper\Cookies" "%LocalAppData%\Google\Chrome\User Data\Default\Cookies"
Start /MAX "chrome" "%ProgramFiles(x86)%\Google\Chrome\Application\Chrome.exe"