diff --git a/windows/ogagent.nsi b/windows/ogagent.nsi index 902988f..7aaf027 100644 --- a/windows/ogagent.nsi +++ b/windows/ogagent.nsi @@ -114,13 +114,13 @@ Section -post SEC0001 ExecWait '"$INSTDIR\VC_redist.x64.exe" /passive /norestart' # Add the application to the firewall exception list - All Networks - All IP Version - Enabled # SimpleFC::AddApplication "OpenGnsys Agent Service" "$INSTDIR\OGAgentService.exe" 0 2 "" 1 - # SimpleFC::AdvAddRule [name] [description] [protocol] [direction] - # [status] [profile] [action] [application] [service_name] [icmp_types_and_codes] + # SimpleFC::AdvAddRule [name] [description] [protocol] [direction] + # [status] [profile] [action] [application] [service_name] [icmp_types_and_codes] # [group] [local_ports] [remote_ports] [local_address] [remote_address] # SimpleFC::AdvAddRule "OpenGnsys Agent Firewall rules" "Firewall rules for OpenGnsys Agent interaction with broker." "6" "1" \ "1" "7" "1" "$INSTDIR\OGAgentService.exe" "" "" \ - "" "" "" "" "" + "" "" "" "" "" Pop $0 ; return error(1)/success(0) # Disable fast boot on Windows 10, if registry key exists. ReadRegDWORD $0 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Power" HiberbootEnabled @@ -149,7 +149,7 @@ done${UNSECTION_ID}: Section /o -un.Main UNSEC0000 nsExec::Exec "taskkill /F /IM OGAgentUser.exe /T" nsExec::Exec /OEM "$INSTDIR\OGAgentService.exe stop" # Stops the service prior uninstall - nsExec::Exec /OEM "$INSTDIR\OGAgentService.exe remove" # Removes the service prior uninstall + nsExec::Exec /OEM "$INSTDIR\OGAgentService.exe remove" # Removes the service prior uninstall nsExec::Exec "taskkill /F /IM OGAgentService.exe /T" Delete /REBOOTOK "$INSTDIR\*.*" DeleteRegValue HKLM "${REGKEY}\Components" Main @@ -180,7 +180,7 @@ Function .onInit InitPluginsDir Call GetParameters StrCpy $StartMenuGroup "OpenGnsys Agent" - + !insertmacro MUI_LANGDLL_DISPLAY !insertmacro MULTIUSER_INIT FunctionEnd