Canon EOS Webcam Utility patch guide: Difference between revisions

Formatting fix
m Mingyee moved page Canon EOS Webcam Utility Patch Guide to Canon EOS Webcam Utility patch guide: Misspelled title: Sentence case
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:User guides]]
{{GuideNotice}}


This article will instruct how to remove the subscription requirement from the Canon EOS Webcam Utility.
This article gives instructions for removal of the subscription requirement from the Canon EOS Webcam Utility.


=== Disclaimer ===
===Disclaimer===
'''This method has not been tested thoroughly, and technical expertise may be required.'''
'''This method has not been tested thoroughly, and technical expertise may be required.'''


== For macOS ==
==For macOS==
 
<ol>
# Install the PKG from https://www.usa.canon.com/cameras/eos-webcam-utility
<li> Install the PKG from https://www.usa.canon.com/cameras/eos-webcam-utility </li>
# When finished installing, navigate to <code>/Applications/EOS Webcam Utility/EOS Webcam Utility Pro.app</code>
<li> When finished installing, navigate to <code>/Applications/EOS Webcam Utility/EOS Webcam Utility Pro.app</code></li>
# Right click > "Show package contents"
<li> Right click > "Show package contents"</li>
# Right click "Contents" > "Get info", and give your user read and write permission over the directory (ensure you click "..." > "Apply to enclosed items")
<li> Right click "Contents" > "Get info", and give your user read and write permission over the directory (ensure you click "..." > "Apply to enclosed items")</li>
# Install the <code>asar</code> CLI utility.
<li> Install the <code>asar</code> CLI utility.</li>
# Open a terminal inside of <code>EOS Webcam Utility Pro.app/Contents/Resources</code>
<li> Open a terminal inside of <code>EOS Webcam Utility Pro.app/Contents/Resources</code></li>
# Extract the application by running: <code>asar e app.asar appunpk</code>
<li> Extract the application by running: <code>asar e app.asar appunpk</code></li>
# Open <code>appunpk/eos-webcam-utility/main.<abunchofnumbers>.js</code>
<li> Open <code>appunpk/eos-webcam-utility/main.<abunchofnumbers>.js</code></li>
# Find the constructor for <code>class t</code> by looking for the instance of <code>this.selectMode$</code>
<li> Find the constructor for <code>class t</code> by looking for the instance of <code>this.selectMode$</code></li>
# In the class, define the function <code>getValue()</code> as follows...
<li> In the class, define the function <code>getValue()</code> as follows...
 
 
<pre>
<pre>
class t extends d1 {
class t extends d1 {
Line 49: Line 47:
}
}
</pre>
</pre>
 
<li> Now, search for <code>checkAuthUser() {</code>, and replace the contents of the <code>.subscribe(n => {</code> call such that it looks something like this:
 
11. Now, search for <code>checkAuthUser() {</code>, and replace the contents of the <code>.subscribe(n => {</code> call such that it looks something like this:
 
<pre>
<pre>
this.event$.pipe(ql(2e3)).subscribe(n => {
this.event$.pipe(ql(2e3)).subscribe(n => {
Line 60: Line 55:
// below the above call, there will be code that handles the "get-authen-user" event.
// below the above call, there will be code that handles the "get-authen-user" event.
// replace the ternary expression: h ? e.subscriptionRegister(c, f, m) : e.subscriptionUnregister(), with: e.subscriptionRegister(c, f, m)
// replace the ternary expression: h ? e.subscriptionRegister(c, f, m) : e.subscriptionUnregister(), with: e.subscriptionRegister(c, f, m)
</pre>
</pre></li>
<li>edit <code>appunpk/package.json</code> by removing the line: <code>"eos-addon": "file:./build",</code></li>
<li>Run <code>npm install</code></li>
<li>Reverse the change from step 12.</li>
<li> Ensure you are in the <code>EOS Webcam Utility Pro.app/Contents/Resources</code> directory before running: <code>asar p appunpk app.asar</code></li>
</ol>
You <I>should</I> now have a patched Canon EOS Webcam Utility application that does not require a subscription to use.


12. edit <code>appunpk/package.json</code> by removing the line: <code>"eos-addon": "file:./build",</code>
[[Category:User guides]]
 
13. Run <code>npm install</code>
 
14. Reverse the change from step 12.
 
15. Ensure you are in the <code>EOS Webcam Utility Pro.app/Contents/Resources</code> directory before running: <code>asar p appunpk app.asar</code>
 
You <I>should</I> now have a patched Canon EOS Webcam Utility application that does not require a subscription to use.