ren1986 / transmission-remote-dotnet

Automatically exported from code.google.com/p/transmission-remote-dotnet
GNU General Public License v3.0
0 stars 0 forks source link

Installer option #388

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To prevent launching installer twice or more times consider adding this to 
.onInit

System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPNAME}") i .r1 ?e'
 Pop $R0
 StrCmp $R0 0 +3
  MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
Abort

just before FunctionEnd, this will check if window with appnam is already 
launched, if so it wil show a messagebox with info. Hope this will be included 
:)

Original issue reported on code.google.com by ml.ci...@gmail.com on 10 Apr 2011 at 10:30

GoogleCodeExporter commented 8 years ago
Thx. Added by r751.

Original comment by elso.and...@gmail.com on 12 Apr 2011 at 7:39