Categories
Blog IT @ Home IT Knowledge Software Packaging

Find your IP address

Here some code snippets to find your IP address

IP v4 address in command line or batch files

ipconfig | find "IPv4" | find /i /v "Suffix"

If you prefer it in a batch script for users

@echo off
 echo\
 ipconfig | find "IPv4" | find /i /v "Suffix"
 echo Press any key to close this window.
 pause > nul

Powershell

Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias "Wi-Fi","Ethernet 2"

Unix

hostname -I
Categories
Blog Other IT Stuff Software Packaging

Kill the shortcuts

I’m a big fan of the RuckZuck tool  http://ruckzuck.tools/default.aspx which makes it very easy to download, install or update software.

How does it work

RuckZuck knows the links to the latest versions of Software and the parameters how the software can be installed silently. So if you update or install a software, the tool does download the file(s) from the vendor’s web-site, verifies that the file is valid (based on Hash values) and just triggers a silent install.

ruckzuck.tools (08.09.2018)

My problem

Because the installation is only silent a shortcut will be created. What is something I don’t need for sure. Especially when I set up a computer or I update a long list of applications.

How I fix that

The following code can remove these shortcuts. Just add in the array the name of the shortcut (You don’t have to write the full name but write enough to prevent deleting the wrong shortcut).

$programs =  @("360 Total Sec", "Lenovo", "SHAREit", "PDF24","VLC","Google C","CCleaner") 

foreach($shortcut in $programs){

    $shortcut = "$env:public\Desktop\$shortcut*.lnk" 

     if(Test-Path $shortcut){ 
        rm $shortcut
    } 
}

I run the code after I update my computer. This saves me time because I don’t have to check which links I still need and which I want to delete. I know it sounds super lazy but because of this laziness I learned programing very quickly ;-).

Categories
Blog Software Packaging

TeamViewer Package

If you know how TeamViewer is not that hard to package. Here is a short summary of how you can do that.

  1. Don’t use the exe-file. With a commercial license you can download the MSI-file here 
    https://www.teamviewer.com/en/download/windows/msi/
  2. In addition to the MSI-File(s) you will get a manual which shows you how to export the settings to a reg-file
  3. Unfortunately, you can’t disable the creation of the desktop shortcut. Instead, you have to use a script to remove it.

To export your settings… 
Go to Extras > Options

Options

Do you settings in this part of the menu and continue to Advanced > Show advanced options

Advanced options

Under the advanced options I usually disable the autoupdate. And on the bottom you will see the Export.

Export

Name the generated file TeamViewer_Settings.reg. The only thing you have to do now is to keep it in the same folder as the MSI.

To remove the desktop shortcut you can use powershell

rm “$env:public\Desktop\TeamViewer*.lnk

To sum up, TeamViewer helps packagers a lot with this export options. To bad they don’t give you the option to disable the desktop shortcut. Please consider that this is just a small help. There are still many other settings which you have to do according to the packaging guidelines of your company.