I created one plugin in lua. now i am making installer for that using NSIS At the time of uninstallation of my plugin i want to check if wireshark is running than donot uninstall it. I got logic todo that from wireshark.nsi(logic is defined in common.nsh) file.But in that logic there is mentioned one GUID Number {9CA78EEA-EA4D-4490-9240-FC01FCEF464B}. The logic of that file is mentioned below
I want to this GUID no is constant for wireshark?I mean is it same for platforms? If it so how it is integrated with Wireshark? Is it mentioned in wireshark source code? asked 15 Jul ‘15, 02:42 ankit |
One Answer:
Yes it's a constant for all versions of Wireshark running on Windows and is defined in wsutil\file_util.c:
arguably it should be in a header so it can be picked up by wireshark.nsi instead of being hard-coded, but it's unlikely to ever change. answered 15 Jul '15, 03:42 grahamb ♦ |
Thanks @grahamb for quick reply.May be my next question to you is not specific to wireshark. but i am just curious to know that how you guys generated this ID and integrated with wireshark? because as far as i know about GUID. it is generated by system itself randomly or by GUIDgen tool
Probably via a tool. The commit message is here.
Generating and using a GUID in this manner is perfectly safe, what's your concern?
Actually we have our own tool which is developed in Qt same as wireshark and it has problem like when the tool is open user can uninstall that but ideally it should not happen. then i have referred wireshark code to implement same logic to generate GUID. that's why i was asking. But now i get idea how to do that from your previous answer. Thanks again @grahamb