Detecting if a program is already installed with NSIS

How about this. I had this in an old NSIS script laying around. ; Check to see if already installed ReadRegStr $R0 HKLM “SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<YOUR-APP-NAME>” “UninstallString” IfFileExists $R0 +1 NotInstalled messagebox::show MB_DEFBUTTON4|MB_TOPMOST “<YOUR-APP-NAME>” \ “0,103” \ “<YOUR-APP-NAME> is already installed.” \ “Launch Uninstall” “Cancel” Pop $R1 StrCmp $R1 2 Quit +1 Exec $R0 Quit: Quit NotInstalled:

Automatically launch app on USB (through autorun?)

First of all, some people choose to disable autorun for security reasons; but Windows computers up to Vista have it enabled. Edit: Apparently the functionality was removed from Windows 7 onwards. Put a file named autorun.inf in the root of your USB flash drive. This is what’s in mine: [Autorun] Open=PStart.exe Action=Start portable apps Icon=diskicon.ico … Read more