TeamViewer Forum

General Category => Teamviewer for Windows => Topic started by: kaspr007 on February 26, 2011, 08:34:51 PM

Title: Remove the "sponsored Session" popup
Post by: kaspr007 on February 26, 2011, 08:34:51 PM
Hello all,

I am using TeamViewer as a remote control for my computer.  I have my desktop hooked up to my Tv.  I am then using my laptop to control my desktop.

My question is: Once I get a TV show playing on my desktop in full screen mode I would like to log out of Teamviewer,  Whenever I log out though a pop up comes up on my desktop titled "Sponsored Session".  Is there anyway of not having this window popup?

Many Thanks,
Kaspr
Title: Re: Remove the "sponsored Session" popup
Post by: ERS on February 26, 2011, 11:51:35 PM
ive had that same question and haven't found a solution. My immediate reaction to your situation is to just leave it logged on while the show is running, only log off when you are finished.
Title: Re: Remove the "sponsored Session" popup
Post by: kaspr007 on February 27, 2011, 07:31:52 PM
The problem is that when I am watching shows streamed form network sites it goes a bit choppy.  Normal avi files play fine, just the streamed stuff.

If you find a solution, please let us know.
Title: Re: Remove the "sponsored Session" popup
Post by: Bass_Fisherman on May 26, 2011, 11:17:39 AM
any updates on this issue?  I have a program running and the pop-up stops it from working  :-\

I would really like the pop-up to go away
Title: Re: Remove the "sponsored Session" popup
Post by: ERS on May 26, 2011, 12:29:42 PM
im going to email/message Teamviewer and see if they can provide a direct answer
Title: Re: Remove the "sponsored Session" popup
Post by: Bass_Fisherman on May 26, 2011, 12:37:56 PM
cool  let us know what you hear!  Even if they can change it to popup and then go away after 30 seconds or have the option to check a box to keep it away after you have seen it once.
Title: Re: Remove the "sponsored Session" popup
Post by: TeamViewer on May 27, 2011, 06:12:25 AM
Hello kaspr007, ERS and Bass_Fisherman,

Thanks for your messages! Unfortunately at the moment there is no solution for you; the popup window shows up at the end of every free TeamViewer session. However I forwarded your request (remove windows after 30 seconds) to our development department. For the reason that we could not differentiate betweeen the usage of TeamViewer, it would be no option for us to integrate a check box to only show the 'sponsored session' dialog once. I would be glad if you'll follow us on twitter (http://www.twitter.com/teamviewer) or facebook (http://www.facebook.com/teamviewer), to be informed when new features and versions will be released.

If you have any further questions or require further information please don't hesitate to contact us again.

Best regards
Ben
TeamViewer
Title: Re: Remove the "sponsored Session" popup
Post by: ERS on May 30, 2011, 12:24:32 AM
Thank YOU for the response and the attempt to get the feature implemented !
 
Title: Re: Remove the "sponsored Session" popup
Post by: Bass_Fisherman on June 02, 2011, 01:00:13 PM
Yes thank you!!!!  8)
Title: Re: Remove the "sponsored Session" popup
Post by: izogfif on August 26, 2011, 07:43:50 AM
You can avoid this window by running following AutoIt3 script:
Code: [Select]
Local $tvHandle = 0
while True
$tvHandle = WinWaitActive("Sponsored session")
if Not ($tvHandle = 0) Then
Send("{Enter}")
EndIf
WEnd
Or just run compiled AutoIt3 script:
http://filebeam.com/635e3c20f774796211466fe25686af29
Title: Re: Remove the "sponsored Session" popup
Post by: Bass_Fisherman on August 26, 2011, 08:14:36 AM
You can avoid this window by running following AutoIt3 script:
Code: [Select]
Local $tvHandle = 0
while True
$tvHandle = WinWaitActive("Sponsored session")
if Not ($tvHandle = 0) Then
Send("{Enter}")
EndIf
WEnd
Or just run compiled AutoIt3 script:
http://filebeam.com/635e3c20f774796211466fe25686af29

Forum Admin is this legit?? This guy only has one post? I hope it is  :)
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on August 26, 2011, 03:48:10 PM
We do not know if this is legitimate.
Some further investigation is in order, we will try to find out if in deed this does/can work.  We would suggest that anyone be extremely careful running any type of 3rd party script that modifies your registry.
That said, it looks pretty harmless.
We will be unable to test this for a number of days.
Will try early in the following week and report back.
Title: Re: Remove the "sponsored Session" popup
Post by: izogfif on August 30, 2011, 12:14:59 AM
Quote
Forum Admin is this legit?? This guy only has one post? I hope it is
I was looking for solution of this problem, too. Using search engine, I found this thread on this forum. There was no solution here. Therefore I decided to provide mine, so I needed to make an account on this forum.
I use Teamviewer to connect to my home computer. That computer runs automation script, which emulates mouse clicks in active window using AutoIt3 script.
When I disconnect from my home computer via Teamviewer, "Sponsored session" Teamviewer's nag screen becomes active window. Because it's a nag screen, it appears as a topmost window and forces itself to become active window. My automation script gets broken at this point and I need a solution.
Using AutoIt3, I created a script (which is compiled in a background application). This script runs in a system tray near clocks and waits for Teamviewer nag screen window to become active. When this happens, script emulates pressing of keyboard's "Enter" key. This makes nag screen to go away as if real user has pressed "OK" button.
As for compiled script (.exe application): I myself wouldn't run any exe which is not made (or approved) by a well-known and respectable member of this forum. That's why I provided the AutoIt3 script source code which you can compile by yourself. Just google "AutoIt3", install and compile exe-file by yourself.
I hope this will be useful for you. Thanks for attention.
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on August 30, 2011, 11:07:45 AM
Thanks for the clarification on the script and how it works/what it does. 
We haven't yet tested it, it seems pretty straight forward, we did look up AutoIt3 and found the site for anyone who wants more information:

http://www.autoitscript.com/site/autoit/
specifically the forum may be of more help:
http://www.autoitscript.com/forum/

Would suggest that anyone who is leery do just as izogfif suggested and download autoit3 and compile the code themselves.
Thanks for the contribution
Title: Re: Remove the "sponsored Session" popup
Post by: petaara on August 30, 2011, 12:24:25 PM
yes it works with  AutoIt3.
Made x86 and x64 .exe files, also added custom icon to the exe.  Check deviantart.com
Title: Re: Remove the "sponsored Session" popup
Post by: petaara on August 30, 2011, 01:35:37 PM
didn't see an edit button

If you also want the main window minimized to tray, use this code

Code: [Select]
Local $tvHandle = 0
while True
$tvHandle = WinWaitActive("Sponsored session")
if Not ($tvHandle = 0) Then
Send("{Enter}")
WinClose("TeamViewer")
EndIf
WEnd
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on August 30, 2011, 02:00:41 PM
what are we checking for at deviant art..a little more narrow of a search term would be great : )
Title: Re: Remove the "sponsored Session" popup
Post by: petaara on August 31, 2011, 07:29:41 AM
That was just iconshttp://sacrificials.deviantart.com/art/TeamViewer-Icon-Version-2-97213383 (http://sacrificials.deviantart.com/art/TeamViewer-Icon-Version-2-97213383)

Seems to be a problem using
Code: [Select]
WinClose("TeamViewer") on the machine you are connecting to.

If you connect a second time, tv will connect but not show the desktop window.
Title: Re: Remove the "sponsored Session" popup
Post by: izogfif on August 31, 2011, 07:45:44 AM
That was just iconshttp://sacrificials.deviantart.com/art/TeamViewer-Icon-Version-2-97213383 (http://sacrificials.deviantart.com/art/TeamViewer-Icon-Version-2-97213383)

Seems to be a problem using
Code: [Select]
WinClose("TeamViewer") on the machine you are connecting to.

If you connect a second time, tv will connect but not show the desktop window.
This part of code was meant to be used on the machine where you open TeamViewer session, not on the remote machine. Actually, the initial code may even be simplified down to 4 lines:
Code: [Select]
while True
WinWaitActive("Sponsored session")
Send("{Enter}")
WEnd
Title: Re: Remove the "sponsored Session" popup
Post by: petaara on August 31, 2011, 11:49:05 PM
That works, tried to make a line that also closed the main window to tray after closing the pop up.
I use tv between a couple of computers so wanted one code.


Problem was with winclose or  @SW_HIDE in the loop running on the machine you connected to, it would not bring up the desktop window.
Title: Re: Remove the "sponsored Session" popup
Post by: g1tf4c3 on September 26, 2011, 04:09:51 PM
To anyone that isn't confident enough to compile a script, or any other reason they don't wanna do it that way there's a behaviour I've noticed

I don't know if the behaviour is the same on windows or mac, but this is what happens on my opensuse linux box using teamviewer 6

If I open teamviewer and log in to a partner machine, yeah I get the 'nag' screen when logging out, but if I log back in whilst still in the same linux session, i.e. without having logged out of my desktop or restarted the machine, the nag screen doesn't appear when disconnecting from a partner any more

In other words, I only see the nag screen on the first time I disconnect

So, in the OP's case & scenario, if whatever OS he uses exhibits the same behaviour, he could log into his pc from his laptop, disconnect from the pc, then log back in

This time if he started a video then logged out, the nag screen wouldn't appear.  Again that would be assuming his machine behaves the same way my opensuse box does


Not a very elegant or ideal solution but thought I'd throw it out there all the same, and there is another approach he could adopt

I also have a pc connected to the tv and I use a foolproof solution that guarantees I get nothing like any nag screens so I don't even have to worry about any kind of workarounds for them, what I do is this

To play a film, I remove myself from the sofa, walk the few yards across the room, start the film, then walk back over to the sofa and proceed to enjoy viewing it ... and I'm convinced the physical exercise involved does me some modicum of good ;)
Title: Re: Remove the "sponsored Session" popup
Post by: vezycash on November 29, 2011, 05:58:01 AM
Thanks to the code the gentleman shared I was able to handle the nagscreen. The script sometimes does not work so I modified it and this one is guaranteed to work every single time

Local $tvHandle = 0
while True
   $tvHandle = WinWait("Sponsored session")         ;check if the nagscreen exists
   if Not ($tvHandle = 0) Then
      WinActivate ("Sponsored session")          ;activate the nagscreen
      sleep(20)                           ;just a slight delay to allow for slow computers
      Send("{Enter}")                        ;close it
   EndIf
WEnd


The admin here are nice guys
Cheers
Title: Re: Remove the "sponsored Session" popup
Post by: tarpanet on December 10, 2011, 11:27:16 AM
Hi All,

I recently learned about TV, and tried it out less than a week ago.  I understand the reasoning behind the "Sponsor pop-up", but, as noted in some preceding posts, it can be technically, in the way.

I offer an alternative solution to the aforementioned "scripts", which is simple, elegant, and it has worked for me without issue.  I use a small program (around 300KB), by the name of "clickoff.exe".  Once installed, on the PC, and you are presented with the Sponsor pop-up, simply position the cursor over the OK button on the sponsor dialog, and press Ctrl+Alt+D (by default). The pop-up goes away, and does so from then on. Note, You'll want to change Hot-Key for clickoff on your local PC to something other than "Ctrl+Alt+D", so as not to be confused with the clickoff Hot-Key on the remote (or partner) PCs.  To change the Hot-Key, right click on the clickoff tray icon...  It says it's a 32bit app, but it works on my 64bit box just fine.  Here's the URL: http://www.johanneshuebner.com/en/clickoff.shtml
Title: Re: Remove the "sponsored Session" popup
Post by: izogfif on December 11, 2011, 07:35:07 AM
Hi All,

I recently learned about TV, and tried it out less than a week ago.  I understand the reasoning behind the "Sponsor pop-up", but, as noted in some preceding posts, it can be technically, in the way.

I offer an alternative solution to the aforementioned "scripts", which is simple, elegant, and it has worked for me without issue.  I use a small program (around 300KB), by the name of "clickoff.exe".  Once installed, on the PC, and you are presented with the Sponsor pop-up, simply position the cursor over the OK button on the sponsor dialog, and press Ctrl+Alt+D (by default). The pop-up goes away, and does so from then on. Note, You'll want to change Hot-Key for clickoff on your local PC to something other than "Ctrl+Alt+D", so as not to be confused with the clickoff Hot-Key on the remote (or partner) PCs.  To change the Hot-Key, right click on the clickoff tray icon...  It says it's a 32bit app, but it works on my 64bit box just fine.  Here's the URL: http://www.johanneshuebner.com/en/clickoff.shtml

I already did post executable, too:
Or just run compiled AutoIt3 script:
http://filebeam.com/635e3c20f774796211466fe25686af29
And this compiled script does exactly what it was intended to do, no setup is required, just launch and forget. The only drawback about applications is that they can come from untrusted source, and AutoIt scripts are well know for being detected as badware by most anti-viruses. So... if you concern about security, you'd better compile the script by yourself to be sure that it does only what you think it does.
Title: Re: Remove the "sponsored Session" popup
Post by: Xozum on December 25, 2011, 09:25:00 PM
Hello.

If PC and laptop are on the same lan, connect using their IPs, instead Teamviewer IDs. This way appears no popup.

Regards.

Title: Re: Remove the "sponsored Session" popup
Post by: manWithPlan on August 03, 2012, 05:16:17 PM
Thanks to previous posts for the idea. I needed to use this on my media center (connecting from a laptop), so customised the script to work as follows:


Code: [Select]
while True
   If WinWait("Sponsored session")<>0 Then
WinActivate("Sponsored session")
Send("{Enter}")
WinMinimizeAll()
WinActivate("Windows Media Center")
   EndIf
WEnd

Hopefully this will be useful to other MCE users...
Title: Re: Remove the "sponsored Session" popup
Post by: csmith665 on September 02, 2012, 08:37:55 PM
I actually just got done making a similar script myself.  Although it was originally written for XBMC, I have added an edition for Media Center.  Check out my post on XBMC forums for the exe file.

http://forum.xbmc.org/showthread.php?tid=135746
Title: Re: Remove the "sponsored Session" popup
Post by: turkeybaster42 on September 09, 2012, 10:17:16 PM
Hrm..tweaked again, those still weren't working for me. The "Press OK" box went away, but the background "Teamviewer" window would stay in the foreground. I'm using this now to close both;

Quote
Local $tvHandle = 0
while True
   $tvHandle = WinWait("Sponsored session")         ;check if the nagscreen exists
   if Not ($tvHandle = 0) Then
      WinActivate ("Sponsored session")          ;activate the nagscreen
      sleep(20)                           ;just a slight delay to allow for slow computers
      Send("{Enter}")                        ;close it
     WinActivate ("Teamviewer")          ;MYCODE kill the tv window
     sleep(20)
     Send("!{F4}")
   EndIf
WEnd

Thanks to all for their code submissions.
Title: Re: Remove the "sponsored Session" popup
Post by: gazthrak on December 11, 2012, 05:39:29 PM
This actually interests me because my company actually has licenses so we can connect to stations that we support nationwide. Per Teamviewer, while the computers in our office need licenses, the stations we are connecting to do not. However, when we get out, it gives the nag screen which I would like to get rid of. I haven't gotten an official response how to do that because we only have so many licenses as part of our key.

Any native TV suggestions that dont require running scripts on client computers?

Title: Re: Remove the "sponsored Session" popup
Post by: datechnerd on June 20, 2013, 07:08:40 PM
To prevent Sponsored Session popup go into the registry edit "windows" + "r" regedit, and go to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and delete the data.
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on June 20, 2013, 09:04:32 PM
To prevent Sponsored Session popup go into the registry edit "windows" + "r" regedit, and go to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and delete the data.
just navigated to the path you suggest and im a little unclear as to how/what data to delete.
do you mean just delete the "command" entry completely from under the "Open" folder? Same with the "default" value that is present?  
OR do you mean to right click and "modify binary data" of each entry( modify by deleting the series of 1 and 0's within that dialog) ?

Title: Re: Remove the "sponsored Session" popup
Post by: Jhaey on June 29, 2013, 01:22:50 AM
To prevent Sponsored Session popup go into the registry edit "windows" + "r" regedit, and go to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and delete the data.

Thank you so much!!! It works guys, I just registered to say thank you. :)
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on June 29, 2013, 03:34:53 AM
So to be clear, navigate to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and delete the data.
just delete the entry called "command" ? or do you modify "command" by opening it( open Binary data) and deleting the data within in?
Title: Re: Remove the "sponsored Session" popup
Post by: bernardsfingers on July 31, 2013, 08:23:59 AM
OK I also just registered to say that this works.

You need to:
Run regedit ("windows" + "r" then type: regedit)
Navigate to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command
Right click on Default in right window & select 'Modify' (not 'Modify Binary Data')
Delete details in 'Value data' box

That's it.

& cheers to datechnerd for the tip!
Title: Re: Remove the "sponsored Session" popup
Post by: r3dDaWn on August 02, 2013, 09:06:22 AM
the reg hack isn't working, after a bit, it comes back after closing out a session.
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on August 02, 2013, 09:27:07 AM
make sure you do the reg edit on each machine you are using.
It still works for me, but when i do access a pc form and android device the popup appears on the android screen when i disconnect( but still does not appear on the screen of the remote computer)
Title: Re: Remove the "sponsored Session" popup
Post by: bernardsfingers on August 02, 2013, 12:33:35 PM

Actually yeah it doesn't seem to be very consistent - mostly it doesn't popup but then sometimes it does. I guess this solution isn't perfect. I ended up just using Autoit3 to compile the script posted on page 1 into an .exe which works fine but is more hassle (ie downloading autoit3, installing, creating script file and then compiling to .exe) than simply editing the registry. Shame  :(
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on August 02, 2013, 01:10:01 PM
do you have to run the script each time you close?
how does that implement?
Title: Re: Remove the "sponsored Session" popup
Post by: bernardsfingers on August 04, 2013, 05:56:29 PM
No, you run the exe & it just runs continuously until you close it. You do have to start it initially tho (I suppose you could include it in the auto-start folder).
Title: Re: Remove the "sponsored Session" popup
Post by: johnbor on February 01, 2014, 08:47:23 AM
I tried these both the reg remove which does not work because I don't even show that key the regedit in the new version of teamviewer , and the script in autoit did work if the window was focused

Code: [Select]
while True
WinWaitActive("Sponsored session")
Send("{Enter}")
WEnd

Is there a way for this to find both focused and NON-focused windows of the sponsored session?

any help would be great... :)
Title: Re: Remove the "sponsored Session" popup
Post by: johnbor on February 01, 2014, 09:22:43 AM
Ok I just did what someone else posted and it seems to work:

Quote
Local $tvHandle = 0
while True
   $tvHandle = WinWait("Sponsored session")         ;check if the nagscreen exists
   if Not ($tvHandle = 0) Then
      WinActivate ("Sponsored session")          ;activate the nagscreen
      sleep(20)                           ;just a slight delay to allow for slow computers
      Send("{Enter}")                        ;close it
   EndIf
WEnd

thank you
Title: Re: Remove the "sponsored Session" popup
Post by: jello on February 16, 2014, 04:57:24 PM
I realize this is an old thread but I just got TeamViewer today and fixed this little problem.
This is what I did:
Navigate to the location of the popup on your local disk. (C:\Users\USERNAME\AppData\Local\Temp\TeamViewer\Version9\7.hta)
Edit 7.hta with Notepad++ (or whatever else)
Replace the contents with window.close();
Save the file.
Right click and select Properties.
In the Security tab click Edit...
Select each of the Groups (SYSTEM, USERNAME, Admins) and click Full control under Deny for each. (This will check off all the boxes.)
Click Apply.
Title: Re: Remove the "sponsored Session" popup
Post by: DTHConsulting on February 17, 2014, 10:04:26 AM
Interesting Thread.

There are 4 versions of Teamviewer

1. The Free Version - You pay nothing and can use it in any none commercial situation - For the Privilege of not paying - - You have to put up with the "Sponsored" popup.  Your getting a program that you can use for free instead of shelling out hundreds if not thousands of Dollars as a Licensed user

2 . There are # levels of Licensed users - Business  Premium and Corporate prices at from Just under $700 - just under $3000

The advantage of paying for it is that you can connect to an unlimited number of users without the "supported" pop-up

Title: Re: Remove the "sponsored Session" popup
Post by: Biggoude on March 18, 2014, 05:51:26 AM
Hi,

Same as some people, I created an accout to follow this thread and remove the "Sponsor window".

As said previously, yes this is free and I'm sure we all thank you for that.

But there is only a company commercial purpose for TeamViewer.
Why don't you make a special package for personal use?

Something people can pay to participate at your software, with the same functionalities and use as the free version but with a personnal licence (and no sponsor window of course :) )

I like to pay for software I'm glad to use but the minimum amount is.. far too much for a personal use.

Thanks
Title: Re: Remove the "sponsored Session" popup
Post by: klikkamongo on March 19, 2014, 06:32:40 AM
I realize this is an old thread but I just got TeamViewer today and fixed this little problem.
This is what I did:
Navigate to the location of the popup on your local disk. (C:\Users\USERNAME\AppData\Local\Temp\TeamViewer\Version9\7.hta)
Edit 7.hta with Notepad++ (or whatever else)
Replace the contents with window.close();
Save the file.
Right click and select Properties.
In the Security tab click Edit...
Select each of the Groups (SYSTEM, USERNAME, Admins) and click Full control under Deny for each. (This will check off all the boxes.)
Click Apply.


Hi, I'm trying this fix on TV9, but I cant find the 7.hta file, I find a bunch of other files, but no .hta's.
Title: Re: Remove the "sponsored Session" popup
Post by: noodle on April 16, 2014, 12:26:06 AM
Hi,

Same as some people, I created an accout to follow this thread and remove the "Sponsor window".

As said previously, yes this is free and I'm sure we all thank you for that.

But there is only a company commercial purpose for TeamViewer.
Why don't you make a special package for personal use?

Something people can pay to participate at your software, with the same functionalities and use as the free version but with a personnal licence (and no sponsor window of course :) )

I like to pay for software I'm glad to use but the minimum amount is.. far too much for a personal use.

Thanks

I'm with you! Exactly! I would love to buy a TeamViewer licence for personal use and get rid of the sponsored session pop-up.

Since I can't use TeamViewer with that ugly pop-up, I've to use the TeamViewer9Extension.
An very new, but highly advanced application, keeping the pop-up away for sure! working 100%

Is anybody interessted that I share the link?
Title: Re: Remove the "sponsored Session" popup
Post by: ERS on April 16, 2014, 03:49:55 AM
what is the teamviewer9extension?
Title: Re: Remove the "sponsored Session" popup
Post by: noodle on April 16, 2014, 05:06:18 AM
A windows service, running in the background, taking care of the "sponsored session"-pop-up.
So as long as the service is running, you want get any "sponsored session"-pop-up anymore.
I use it and it works great. But is a brand new release, you might not find it online yet.
Right now I'm beta tester since 3 days. So far, it works really great. I think it might even be
released for free.
Title: Re: Remove the "sponsored Session" popup
Post by: noodle on April 16, 2014, 06:18:47 AM
let me know if somebody is interessted in beeing beta-tester as well.
Title: Re: Remove the "sponsored Session" popup
Post by: pathfind3r on April 23, 2014, 09:40:15 AM
let me know if somebody is interessted in beeing beta-tester as well.

Thanks everyone for your input. I registered just to say thank you and  Noodle I'm very interested in beta testing so get back to me.
Title: Re: Remove the "sponsored Session" popup
Post by: ERS on April 24, 2014, 04:54:00 PM
where do you get it?
Title: Re: Remove the "sponsored Session" popup
Post by: Boekel on April 25, 2014, 03:06:34 AM
let me know if somebody is interessted in beeing beta-tester as well.

Hi,

I'm interested too.
Title: Re: Remove the "sponsored Session" popup
Post by: clint1285 on May 14, 2014, 02:10:32 PM
let me know if somebody is interessted in beeing beta-tester as well.

Im very interested.
Title: Re: Remove the "sponsored Session" popup
Post by: dosekis on May 15, 2014, 05:05:10 PM
Hi noodle, I'm interested too. Thanks
Title: Re: Remove the "sponsored Session" popup
Post by: aczarus on November 27, 2014, 06:59:47 AM
Dear friends and beta-tester
We apologize for the long delay of the TeamViewer9Extension-Beta.

But you can start to register yourself right now! 8)
Check out aczarus.com and send an e-mail to the support.

We would like to get some infos from the beta testers:
- 32-bit / 64 bit
- Windows 7 / 8
- system language
- any error you may encounter
Title: Re: Remove the "sponsored Session" popup
Post by: aczarus on November 27, 2014, 07:06:12 AM
A windows service, running in the background, taking care of the "sponsored session"-pop-up.
So as long as the service is running, you want get any "sponsored session"-pop-up anymore.
I use it and it works great. But is a brand new release, you might not find it online yet.
Right now I'm beta tester since 3 days. So far, it works really great. I think it might even be
released for free.

Noodle was already a pre-beta tester. We encountered some strange behaviour, so it was working
around 90% of the time, but not always. This bug is now fixed and we are ready to release the beta into the wild.
Title: Re: Remove the "sponsored Session" popup
Post by: unholy on May 14, 2015, 01:21:53 AM
Hello to everyone.

I made custom application for windows based TeamViewer that closes all annoying windows like Commercial use suspected, Sponsored session etc.

Its running on .NET 4 Framework. So if you are a WinXP user, please install before launch.

I am posting URL: removed as it was a link to a virus.

Please give me feedback.
Title: Re: Remove the "sponsored Session" popup
Post by: jbrev on May 22, 2015, 02:08:46 PM
Hey guys, great thread!  Though still no stable working solution yet...

I just registered to say that the download shared by unholy above ^^^ is a virus:

https://www.virustotal.com/en/file/547d98cb08593f0a6ea4c0b70cc3bf155f91e214f7aad125e32e2672cf648951/analysis/

Cheers.
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on May 22, 2015, 02:26:30 PM
Well then..i have removed the link: Thanks for checking/catching that.  UNHOLY can try to explain why it triggers Normal and Symantec virus triggers otherwise it looks like a ban is in order.

Title: Re: Remove the "sponsored Session" popup
Post by: unholy on May 23, 2015, 11:40:25 PM
Hello.

Since its a .NET application and its really easy to be decompiled. I obfuscated it.
That's why some anti virus sofwwares threat is as virus.
I can share the source code if you want to take a look.

Title: Re: Remove the "sponsored Session" popup
Post by: Admin on May 24, 2015, 11:50:36 AM
thats fine, go ahead a relink it along with a link to the source code.
Title: Re: Remove the "sponsored Session" popup
Post by: unholy on May 26, 2015, 01:45:52 AM
Okay.

Here is the source on github - link (https://github.com/unholyHub/TeamViewerBlocker).

Sorry for the indian style of coding.
Title: Re: Remove the "sponsored Session" popup
Post by: Admin on May 26, 2015, 08:27:17 PM
no worries, can you link the application as well?
Title: Re: Remove the "sponsored Session" popup
Post by: unholy on May 28, 2015, 02:46:31 AM
Here is the link  (https://zhivkosk.wordpress.com/2015/05/13/teamviewer-popup-blocker/) to download the application.

I hope its helpful for users.
Title: Re: Remove the "sponsored Session" popup
Post by: Fabiotek on June 07, 2015, 06:59:53 AM
Hello,

I registered to this forum to thank you for the script and let you know that it's working on a PC with Windows Seven English version (with TeamViewer installed in English) and it's NOT working on a PC where Windows Seven and TeamViewer are installed in Italian language.

The versions of TeamViewer installed in the 2 PCs are the same.

Thank you and regards. I
Title: Re: Remove the "sponsored Session" popup
Post by: unholy on June 11, 2015, 12:43:04 AM
It is not working with Italian because it captures the messages written in English.
You can modify the script to work with Italian.
Title: Re: Remove the "sponsored Session" popup
Post by: Arsys on July 15, 2015, 05:54:26 AM
Well..... this worked for me :
Start -> Run -> regedit -> HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and modified the value from (Default)
from "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" --play "%1" to "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" --play "%0"
Title: Re: Remove the "sponsored Session" popup
Post by: DonVulpes on July 16, 2015, 11:53:01 AM
As a Mac Mini user with Kodi for my media, the popup is incredibly problematic as I need to leave the session open to watch a movie or whatever.

I'd gladly pay for a home user account, so that popup can be disbabled.
Title: Re: Remove the "sponsored Session" popup
Post by: ShermanNat on July 26, 2015, 11:49:19 AM
Well..... this worked for me :
Start -> Run -> regedit -> HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and modified the value from (Default)
from "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" --play "%1" to "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" --play "%0"

I'm on Windows 7 Pro 64-bit and this worked.  Thanks!
Title: Re: Remove the "sponsored Session" popup
Post by: giloug on August 27, 2015, 11:31:25 AM
hi
i did the first line from start etc....but from:\Program Files etc....i don't find TeamViewer.exe and i don't understand what to do after....--play "%1" etc....do have got to write that and where...i'm a novice in script.
thank's a lot to help me

Title: Re: Remove the "sponsored Session" popup
Post by: realper on November 06, 2015, 05:16:00 AM
Has anybody had any success with Windows 10 ?`
The before mentioned reg key isn't there, so I can't do that.
The only key I could find is "HKEY_CLASSES_ROOT\teamviewer8\shell\open\command", and it only contains a value called "Default".
Title: Re: Remove the "sponsored Session" popup
Post by: _Pierrot_ on December 06, 2015, 08:27:10 AM
I Have compiled AutoIt Scripts (https://www.autoitscript.com/site/) to Close Automatically The Sponsored Session Pop-up.
You can download them here (http://perso.numericable.fr/rpm/)
TeamViewer_CloseNagScreen_EN-US_FR_ES_IT.rar (3.3 MB)
In this archive, you will find : Executables, Sources (.au3 e& .txt) and a little How-To.
Title: Re: Remove the "sponsored Session" popup
Post by: Eselter on December 31, 2015, 12:43:37 AM
To prevent Sponsored Session popup go into the registry edit "windows" + "r" regedit, and go to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and delete the data.
In TeamViewer 11 you need  do that in "HKEY_CLASSES_ROOT\teamviewer10\shell\open\command"
I also delete old keys TeamViewerSession and teamviewer8
Title: Re: Remove the "sponsored Session" popup
Post by: MasterCATZ on February 19, 2016, 01:24:33 PM
*edit* I have tried changing %1 to %0 on win10 and that is not working , I'll keep tinkering as a test bench
I don't mind the popup , but the placement is affecting the whole reason i have teamviewer installed for connecting to pc @ smoko breaks on mobile and pop up when i disconnect is blocking a script I need to click on another button

any idea where to do that for linux version

I have 11 currently installed which is when this pop up started 8~10 never did it


TeamViewer seems to use wine , but wine has no trace of the reg settings

I have noticed /opt/teamviewer/tv_bin/script

seems to store reg settings for TeamViewer but I think this might be from  version 10

I have installed win10 to look through its registry and will see if I can slip an bypass into  "setwinver.reg" that's in /opt/teamviewer/tv_bin/script


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command]
@="\"C:\\Program Files (x86)\\TeamViewer\\TeamViewer.exe\" --play \"%0\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\teamviewer10\shell\open\command]
@="\"C:\\Program Files (x86)\\TeamViewer\\TeamViewer.exe\" %0"


as "setwinver.reg"

REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\AppDefaults\TeamViewer.exe]
"Version"="win2k"

[HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command]
@="\"C:\\Program Files (x86)\\TeamViewer\\TeamViewer.exe\" --play \"%0\""

[HKEY_CLASSES_ROOT\teamviewer10\shell\open\command]
@="\"C:\\Program Files (x86)\\TeamViewer\\TeamViewer.exe\" %0"
Title: Re: Remove the "sponsored Session" popup
Post by: Serfrost on July 17, 2016, 04:05:22 PM
I know this is old, but hey.

Instead of using AutoIt or some other hacky work-around, doing the following fixed it for me:

Go to C:\Users\%YOUR-USER-NAME%\AppData\Local\Temp\TeamViewer\

Right-click on 7.hta, edit it with NotePad or another text editor.

Replace the text with "  window.close();  " without the quotes; save it, close it.

===

To prevent Teamviewer from resetting your changes, right click it again, go to Properties.

Go to Security.

Click the first "Edit" option, under DENY, select "Full Control" under each type of user listed.

Apply.

===

You won't be able to open or read the file anymore, and neither can Teamviewer do much with it.

===

Confirmed to be working on the latest Windows 10.
Title: Re: Remove the "sponsored Session" popup
Post by: busli on August 19, 2016, 04:04:43 AM
I know this is old, but hey.

Confirmed to be working on the latest Windows 10.

I can't see 7.hta in windows 10 or 7.
Title: Re: Remove the "sponsored Session" popup
Post by: Linda on May 20, 2017, 09:15:27 AM
Well well I just made some AutoIt script take of that message at it's root. ::)
... so run it once and patch Teamviewer.exe and bye,bye
ShowSponsoredSessionDialog()

... well at least till the next update of Teamviewer.
(Then it'll be the nag will there again - and you need to reapply this patch)

That just as addition to the Autoit nag Windows click away scripts posted here before.
Maybe in some situations that'll be more useful.


http://bit.do/TeamViewerNA
bit.do/TeamViewerNA

Mirror
 (http://www.mediafire.com/file/zof39pssguzz44m/TeamViewerNA__v1.7z)
Well script got a little big - about here some part to get the idea:
Code: [Select]
Global Const $app_title = "Teamviewer - NagAway"
Global Const $app_rel_date = "May 2017"
Global Const $app_store = "http://bit.do/TeamviewerNA"

Global Const $TargetFileName = "Teamviewer.exe"

Global Const $Debugging = False;True ;    enables script line numbers ( for SciTE ) in log output

; Known problem a character is not byte
; but StringRegExp operates on String and character level
; as long you stay in range of 0x00 to 0x7f you may say character <=> byte
; but in the 8 bit area 0x7f to 0xff this don't works anymore
; which chars/bytes works or fails depends on current code page
;
Global Const $UseHexNumberString = False ;True;     fucking slow + doubles memory usage but more save

#Region Main
Main()
Func Main()


ShowIntro()

SeekForTargetFile( $TargetFileName )

...
myLog(@ScriptLineNumber, "=========== Patch sequence started ========")
myLog(@ScriptLineNumber, "  WorkingDir: " & @TAB & "'" & @WorkingDir & "'")
myLog(@ScriptLineNumber, "  Opening: " & @TAB & $TargetFileNameIn)

$FileData = FileRead($hFileIn)
If @error <> 0 Then App_Terminate("FileRead " & $TargetFileNameIn & " with " & @error, 8)
If @extended = 0 Then App_Terminate("FileRead " & $TargetFileNameIn & " returned an empty file", 8)

If Not $UseHexNumberString Then _
$FileData = BinaryToString($FileData)

myLog(@ScriptLineNumber, "  => Succeed - " & _
BitShift(StringLen($FileData), 10) & "K chars read into memory")



; ---------- P a t c h  # 1 ----------
...
; ---------- P a t c h  # 1 ----------

; ...
;~ ; 0210E6AD    C2 0800              RETN    8
;~ ;
; Patch target Code >>>
;~ ; 0210E6B0    6A FF                PUSH    -1

;~ ; $+2      >  68 3C890103          PUSH    0301893C
;~ ; $+7      >  64:A1 00000000       MOV     EAX, [FS:0]
;~ ; $+D      >  50                   PUSH    EAX
;~ ; $+E      >  81EC 60010000        SUB     ESP, 160
;~ ; $+14     >  A1 50A86003          MOV     EAX, [360A850]
;~ ; $+19     >  33C4                 XOR     EAX, ESP

;~ ; ...
;~ ; $+474    >  25 DD5DFFFF          AND     EAX, FFFF5DDD
;~ ; $+479    >  68 8F000000          PUSH    8F
;~ ; $+47E    >  05 B7A20000          ADD     EAX, 0A2B7
;~ ; $+483    >  50                   PUSH    EAX
;~ ; $+484    >  EB 1E                JMP     SHORT 0210EB54
;~ ;
;~ ; $+486    >  0FB6C0               MOVZX   EAX, AL
;~ ; $+489    >  F7D8                 NEG     EAX
;~ ; $+48B    >  1BC0                 SBB     EAX, EAX
;~ ; $+48D    >  83E0 0B              AND     EAX, 0B
;~ ; $+490    >  83C0 06              ADD     EAX, 6
;~ ; $+493    >  50                   PUSH    EAX
;~ ; $+494    >  FFB2 8C000000        PUSH    [DWORD EDX+8C]

;~ ; $+49A    >  68 6C040000          PUSH    46C  // 1132    Gesponserte Sitzung
;~ ; $+49F    >  68 6D040000          PUSH    46D  // 1133    Dies war eine kostenlose Sitzung mit Unterstützung von
;~ ; $+4A4    >  8B0D CC177603        MOV     ECX, [37617CC]
;~ ; $+4AA    >  E8 41C80E00          CALL    021FB3A0 ; GUI MessageBox
Local $bPatch1_succeed = _
SeekNPatch($FileData, $hFileOut, _
" 6A FF.{256,1300}" & " 68 6C 04 00 00", _
0, Chr(0xC3), _
"Patch #1 - ShowSponsoredSessionDialog", _
@ScriptLineNumber)
...

Func ShowIntro()
myLog(@ScriptLineNumber, _
$app_title & " v" & $app_ver_major & "." & $app_ver_minor & " [" & $app_rel_date & "]" & @CRLF & _
"=======================================" & @CRLF & _
"" & @CRLF & _
"This patch will remove the well known 'sponsored by' dialog box in Teamviewer" & @CRLF & _
"That pops up after each Teamviewer session that lasted longer than a minute." & @CRLF & _
"" & @CRLF & _
"This Autoit script uses RegExp pattern search & replace pattern and targets the Teamviewer binary." & @CRLF & _
"Tested with Teamviewer 12.1 but it will hopefullly also work for some still coming versions" & @CRLF & _
"Teamviewer or older versions." & @CRLF & _
"" & @CRLF & _
"32-Bit only. So far patch pattern are only made for 32-bit code and won't work for a X64 binary." & @CRLF & _
"" & @CRLF & _
"" & @CRLF _
)
EndFunc   ;==>ShowIntro
#EndRegion Main

....

#EndRegion FileWork


#Region Patcher
; #FUNCTION# ====================================================================================================================
; Name ..........: SeekNPatch
; Description ...:
; Syntax ........: SeekNPatch($FileData, $hFileOut, $FindThis, $ReplaceOffsetDelta, $ReplaceWith[, $Name = "Offset: "[,
;                  $LineNumber = 0]])
; Parameters ....: $FileData            - an unknown value.
;                  $hFileOut            - a handle value.
;                  $FindThis            - an unknown value.
;                  $ReplaceOffsetDelta  - an unknown value.
;                  $ReplaceWith         - an unknown value.
;                  $Name                - [optional] an unknown value. Default is "Offset: ".
;                  $LineNumber          - [optional] an unknown value. Default is 0.
; Return values .: None
; Author ........: Your Name
; Modified ......:
; Remarks .......:
; Related .......:
; Link ..........:
; Example .......: No
; ===============================================================================================================================
Func SeekNPatch($FileData, $hFileOut, _
$FindThis, _
$ReplaceOffsetDelta, $ReplaceWith, _
$Name = "Offset: ", _
$LineNumber = 0)
myLog($LineNumber, "  _______________________________________________")
myLog($LineNumber, "  " & $Name & "  -  " & $FindThis)
Local $iOffsetPatch ;
Local $aArray = 0, _
$iOffset = 1

; convert from nice looking to real RegExp pattern
If $UseHexNumberString Then _

$FindThis = StringReplace($FindThis, " ", "")
$xdigit = "." ;"[0-9A-Fa-f]"
$FindThis = StringReplace($FindThis, ".", "(?:" & $xdigit & $xdigit & ")")
Else
$FindThis = "(?s)" & StringReplace($FindThis, " ", "\x")
EndIf


;~ ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $FindThis = ' & $FindThis & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console





Local $OccurrenceCounter = 0
While 1
$aArray = BinRegExp( _
$FileData, _
$FindThis, _
$STR_REGEXPARRAYMATCH, $iOffset _
)
$iOffset = @extended

If @error = 2 Then
myLog(@ScriptLineNumber, "  Error in search pattern: " & $FindThis & @CRLF & _
"  The correct part is    : " & StringLeft($FindThis, $iOffset))
App_Terminate("invalid RegExp pattern", 123)
EndIf

If @error Then ExitLoop



For $i = 0 To UBound($aArray) - 1


$Len = StringLen($aArray[$i])

$iOffsetPatch = $iOffset
$iOffsetPatch -= $Len

If $UseHexNumberString Then
;Discard pseudomatches
If BitAND($iOffsetPatch, 1) = 0 Then ExitLoop
$iOffsetPatch = DivBy2($iOffsetPatch)
EndIf

$iOffsetPatch -= 1



myLog(@ScriptLineNumber, '  Pattern found at' & @TAB & '0x' & Hex($iOffsetPatch))

$OccurrenceCounter += 1
Next
WEnd
If $OccurrenceCounter = 0 Then
myLog(@ScriptLineNumber, '  Whoops pattern not found - maybe file is already patched.')
Return False
EndIf

;================ PatchFile ======================

;~    $iOffsetPatch = 0xD6DAB0
If $iOffsetPatch > 0 Then
$bBackupCreated = CreateBackup($TargetFileName)
$iOffsetPatch = $iOffsetPatch + $ReplaceOffsetDelta
myLog(@ScriptLineNumber, '  Writing patch data @' & @TAB & '0x' & Hex($iOffsetPatch) & _
'  ( offset delta: ' & $ReplaceOffsetDelta & ' )')
FileSetPos($hFileOut, $iOffsetPatch, $FILE_BEGIN)
If 0 = FileWrite($hFileOut, $ReplaceWith) Then
myLogErr(@ScriptLineNumber, "FileWrite")
Return False
EndIf
EndIf
If $bBackupCreated Then myLog(@ScriptLineNumber, "  ... and created backup: " & $BackupFile)
Return True
EndFunc   ;==>SeekNPatch

#EndRegion Patcher


#Region Logging

Func App_Terminate($Reason = "", $ExitCode = 64)

If $Reason Then _
ConsoleWriteError("App_quit: " & $Reason & @CRLF)


ConsoleWrite(@CRLF & _
$app_store & @TAB & @TAB & @TAB & @TAB & $app_contact & @CRLF)

$nextline = _ConsoleReadLn()

Exit $ExitCode

EndFunc   ;==>App_Terminate




Func init_NotWorkingBytes()
;Create TestData
local $TestData = "0x"
for $i=00 to 0xff
$TestData &= StringFormat( "%02X", $i)
Next
$TestData = BinaryToString ($TestData)

Global $RegExpNotWorkingBytes = "(?|\\x80)"

for $i=0x0 to 0xFF
$pat = StringFormat( "\x%02X", $i)
$match = StringRegExp( $TestData ,$pat  ,$STR_REGEXPARRAYFULLMATCH)
if @error<>0 then
;~ ConsoleWrite('$match = ' & _
;~ $pat& ' - ' & $match & '  > ' & chr($i) ) ;### Debug Console

$RegExpNotWorkingBytes &= "|(?|\" & $pat & ")"
;~ ConsoleWrite( @CRLF)

EndIf
Next
Return $RegExpNotWorkingBytes
EndFunc


; #FUNCTION# ====================================================================================================================
; Name ..........: BinRegExp
; Description ...: Use RegExp with binary data
; Syntax ........: BinRegExp($test, $pattern[, $flag = 0[, $offset = 1]])
; Parameters ....: $test                - a dll struct value.
;                  $pattern             - a pointer value.
;                  $flag                - [optional] a floating point value. Default is 0.
;                  $offset              - [optional] an object. Default is 1.
; Return values .: None
; Remarks .......: That's kind of workaround since the
;That's a kinda hybrid for /x00-/x7F it uses StringRegExp with binary data and
;    checks each match again with the slower StringRegExp hexnumberstring binary data
; Related .......:
; Link ..........:
; Example .......: No
; ===============================================================================================================================
Func BinRegExp($test, $pattern, $flag = 0, $offset = 1)

$RegExpNotWorkingBytes = init_NotWorkingBytes()
;~ ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $RegExpNotWorkingBytes = ' & $RegExpNotWorkingBytes & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
;~ $RegExpNotWorkingBytes = '\\x[7-9A-Fa-f][0-9A-Fa-f]'

;Replace not working in Range of /x7F-/xFF with .
$SafePattern = StringRegExpReplace( $pattern, _
$RegExpNotWorkingBytes, _
'.')

;~ ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $SafePattern = ' & $SafePattern & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console

for $Round = 1 to 0x7FFFFFFF

Local $RetVal = StringRegExp($test, $SafePattern, $flag, $offset)
Local $RetError = @error
Local $RetExtended = @extended

If $RetError = 0 Then

$MatchData = $RetVal[0]
$MatchLength = StringLen($MatchData)


$MatchStart =  $RetExtended
$MatchStart -=  $MatchLength
$MatchStart -= 1



$RetVal2 = _BinRegExp($MatchData, $pattern, $flag)
If @error = 0 Then
; Match is valid
ExitLoop

ElseIf @error = 3 Then
  ; the match was to big - apply delta; seek back from end of current match

$offset = $MatchStart + @extended


else
; ... was not a real match - look for more
$offset = $RetExtended
EndIf


Else
ExitLoop
EndIf

ConsoleWrite('.')
;~ myLog(@ScriptLineNumber ,"$offset = " & hex($offset) )
Next

Return SetError($RetError, $RetExtended, $RetVal)

EndFunc   ;==>BinRegExp

Func _BinRegExp($test, $pattern, $flag = 0, $offset = 1)
const $xdigit = "." ;"[0-9A-Fa-f]"

; Replace \xXX with .
$Numberstring = StringReplace($pattern, '\x', '')
$Numberstring = StringReplace($Numberstring, ".", "(?:" & $xdigit & $xdigit & ")")


$test = StringToBinary($test)


Local $RetVal = StringRegExp( $test, $Numberstring, $STR_REGEXPARRAYMATCH  )
Local $RetError = @error
Local $RetExtended = @extended


If $RetError = 0 Then
$MatchData = $RetVal[0]

$MatchLength = StringLen($MatchData)


$testLength = StringLen( $test ) - 2 ; no '0x'

$delta = $testLength - $MatchLength
if $delta >= 2 then
; the match was to big - set Error 4 and return adjustment delta

;~ $delta = $MatchLength - $delta ; set delta to how many bytes to seek back from end of current match
$delta = DivBy2($delta)


Return SetError(3, $delta)

EndIf


endif


Return SetError($RetError, $RetExtended, $RetVal)
EndFunc   ;==>_BinRegExp


Func DivBy2($Divident)
Return BitShift($Divident, 1)
EndFunc   ;==>DivBy2