Quantcast
Channel: VMware Communities : All Content - VMware® ThinApp®
Viewing all articles
Browse latest Browse all 1382

thinreg.exe /u vs. uninstall.vbs

$
0
0

Hi all,

 

I'm trying to understand how registering/unregistering of ThinApps work best.

Today we use "thinreg.exe" to register a ThinApp during logon with help of a PowerShell scripts that uses group membership of the user.

----------------------------

Start-Process -FilePath \\server\thinapplibraryshare\thinreg.exe -ArgumentList "/q `"\\server\thinapplibraryshare\funnythinapp.exe`"" -Wait

----------------------------

So the logon part works quite nice.

 

 

When it comes to logoff we just unregister all thinapps during logoff using "thinreg /u".

----------------------------

Start-Process -FilePath \\server\thinapplibraryshare\thinreg.exe -ArgumentList "/q /u `"\\server\thinapplibraryshare\funnythinapp.exe`"" -Wait

----------------------------

That also works good in most cases.

 

 

But i recognized that over time some apps doesn't get uninstalled correctly.

To fix that we always ran "%AppData%\Thinstall\Unregister\funnythinappfolder\uninstall.vbs" from inside the users session.

 

Over time and after some more testings i find that using the "uninstall.vbs" seems to be more reliable.

So i decided to just trigger all "uninstall.vbs" at logoff using the following script.

----------------------------

$thinapps = Get-ChildItem -Path $env:appdata\thinstall\unregister -Recurse -Include uninstall.vbs

foreach ($uninstall in $thinapps) {Start-Process $uninstall -Wait}

----------------------------

 

This is not implemented so far cause there is one question left that i'm trying to understand.

----------------------------

What is the difference between doing the unreg with "thinreg /u" and triggering the "uninstall.vbs"?

 

 

Thank you very much for helping me understand this.

 

Best regards

Simon


Viewing all articles
Browse latest Browse all 1382

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>