1
0
I am finding a bunch of duplicate error codes when dealing with Autodesk installs and uninstalls. For example
3010 ERROR_SUCCESS_REBOOT_REQUIRED
-2147021886 ERROR_SUCCESS_REBOOT_REQUIRED
and
1618 ERROR_INSTALL_ALREADY_RUNNING
-2147023278 ERROR_INSTALL_ALREADY_RUNNING
I am curious, is one or the other the "newer" approach, or has Microso0ft always had parallel and redundant exit codes? And in either case, is one or the other the preferred approach? I am beginning to build my own installers, and I want to be sure I am using the correct sequence if there is such a thing. If there is no best practice I feel like the positive numbers are better for logs being shorter.
So, for a standard installer for a desktop program (like AutoCAD, or Word, or Photoshop) Win32 seems like the right answer, is that right. Or would some of the components of those programs be considered COM objects while the overall program is Win32? – Gordon – 2019-07-02T18:00:52.627
Use what the function returns and consult MS Docs. – Biswapriyo – 2019-07-02T18:47:43.870
I guess what I mean is, if I was doing my own app, I would use Win32 codes not HRESULT. The latter is "correctly" for use when creating interprocess communication components, not regular desktop apps. – Gordon – 2019-07-02T19:56:14.183
No one restricts you to use anyone of them because both of them convertible to each other. In my opinion, Win32 is better because as a human we understand decimals better :) – Biswapriyo – 2019-07-02T20:13:45.070
I almost wish Microsoft WOULD enforce some standards. Autodesk is totally inconsistent with which flavor they use, which is really the worst option. I agree, for myself I'll stick with Win32, both for positive numbers and smaller numbers. Both are easier to quickly grasp. – Gordon – 2019-07-03T08:44:46.333