Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unstable
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PROINFODATA
unstable
Commits
0e8941a7
Commit
0e8941a7
authored
11 years ago
by
Edileuton Henrique de Oliveira
Browse files
Options
Downloads
Patches
Plain Diff
Fix Windows agent update
Signed-off-by:
Edileuton Henrique de Oliveira
<
eho09@c3sl.ufpr.br
>
parent
ea85d027
No related branches found
No related tags found
1 merge request
!7
Fix Update
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
windows-collect/src/collect.py
+3
-2
3 additions, 2 deletions
windows-collect/src/collect.py
windows-collect/src/proinfodataAgent.py
+6
-6
6 additions, 6 deletions
windows-collect/src/proinfodataAgent.py
windows-installer/src/installer.nsi
+11
-11
11 additions, 11 deletions
windows-installer/src/installer.nsi
with
20 additions
and
19 deletions
windows-collect/src/collect.py
+
3
−
2
View file @
0e8941a7
...
...
@@ -37,11 +37,12 @@ def getRegistryValue(key, subkey, value):
key
=
getattr
(
_winreg
,
key
)
handle
=
_winreg
.
OpenKey
(
key
,
subkey
)
(
value
,
type
)
=
_winreg
.
QueryValueEx
(
handle
,
value
)
return
value
return
value
.
split
(
'
\n
'
)[
0
]
# Return INEP
def
getINEP
():
return
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
INEP
"
)
[:
-
1
]
return
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
INEP
"
)
# Return Windows version
def
getOSInfo
(
key
):
...
...
This diff is collapsed.
Click to expand it.
windows-collect/src/proinfodataAgent.py
+
6
−
6
View file @
0e8941a7
...
...
@@ -104,10 +104,10 @@ def callClient(args):
# Get proxy information from Windows registry
def
getProxyInfo
():
phost
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyHost
"
)
[:
-
1
]
pport
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyPort
"
)
[:
-
1
]
puser
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyUser
"
)
[:
-
1
]
ppass
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyPass
"
)
[:
-
1
]
phost
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyHost
"
)
pport
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyPort
"
)
puser
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyUser
"
)
ppass
=
collect
.
getRegistryValue
(
"
HKEY_LOCAL_MACHINE
"
,
"
SOFTWARE
\\
ProInfoData
"
,
"
ProxyPass
"
)
return
(
phost
,
pport
,
puser
,
ppass
)
# Check for updates
...
...
@@ -295,8 +295,8 @@ if not elapsedTime():
# Collect data
try
:
collectData
=
collect
.
collect
()
except
:
log
.
write
(
"
ERROR(8): Failed to collect data
.
"
)
except
Exception
,
e
:
log
.
write
(
"
ERROR(8): Failed to collect data
:
"
+
str
(
e
)
)
log
.
close
()
sys
.
exit
(
8
)
...
...
This diff is collapsed.
Click to expand it.
windows-installer/src/installer.nsi
+
11
−
11
View file @
0e8941a7
...
...
@@ -121,16 +121,6 @@ Function .onInit
está em execução."
Abort
;Kill proinfodataAgent.exe process
StrCpy $0 "proinfodataAgent.exe"
DetailPrint "Killing all processes called '$0'"
KillProc::KillProcesses
;Kill datasidAgent.exe process
StrCpy $0 "netmon.exe"
DetailPrint "Killing all processes called '$0'"
KillProc::KillProcesses
;Verify if INEP exists in Windows registry
ClearErrors
ReadRegStr $R2 HKLM "SOFTWARE\${PRODUCT_NAME}" "INEP"
...
...
@@ -143,7 +133,17 @@ FunctionEnd
;Main installer section
Section "SeçãoPrincipal" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
SetOverwrite on
;Kill proinfodataAgent.exe process
StrCpy $0 "proinfodataAgent.exe"
DetailPrint "Killing all processes called '$0'"
KillProcDLL::KillProc "proinfodataAgent.exe"
;Kill netmon.exe process
StrCpy $0 "netmon.exe"
DetailPrint "Killing all processes called '$0'"
KillProcDLL::KillProc "netmon.exe"
;Verify INEP in Windows registry. If not exists, creates a new one.
ClearErrors
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment