Save the following code as Launch_Teamviewer.Au3 then compile it to Launch_TeamViewer.exe (Substitute your app name in place of TeamViewer).
Code: Select all
#cs ----------------------------------------------------------------------------
Launch_Teamviewer:
Portable TeamViewer Launcher: Allows you to remotely control PCs even through firewalls.
AutoIt Version: 3.2.2.0
Author: Mickey72
Script Function:
Clear portable session settings from previous session then launch TeamViewer.
#ce ----------------------------------------------------------------------------
; Delete previous temp profile then temp registry.
DirRemove ("TeamViewer\File System\User", 1)
FileDelete("TeamViewer\Registry\TeamViewer_registry.reg")
; Launch JauntPE portable executable.
Run("TeamViewer\TeamViewer_portable.exe")